SDL2 IMG_Load "unsupported image format" error message? - sdl-2

I'm trying to load a png image. libsdl2-dev and libsdl2-image-dev packages have been installed and I'm including SDL2/SDL_image.h. IMG_Init is working without error, but IMG_Load errors.
On my desktop PC (Ubuntu) it works (loads png into SDL_Surface), but it looks like my laptop (also Ubuntu) is not linking the required png library.
ldd (Desktop) libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007ff58db3c000)
ldd (laptop) No libpng lib
Even though both these machines have this library in the same location.
How can I figure out why it is not getting linked?
Edit: IMAGE_Init(IMG_INIT_PNG) is causing error "PNG Images are not supported"

After removing libpng, libsdl2-dev, and libsdl2-image-dev I was able to re-install them and it works.

Related

TYPO3 can't read or create pdf thumbnails with imagemagick or graphicsmagick

I'm using TYPO3 CMS 7.6 with PHP 5.5.2 on a Windows Server 2012 (IIS), my Server administrator installed ghostscript, graphicsmagick 1.3.25 and imagemagick. Now I use graphicsmagick:
C:/GraphicsMagick/gm.exe
It works, test all graphic manipulation on install tool: Convert image formats to jpg or scaling or combining images ... only PDF Thumbnails or convert PDF to JPG isn't working.
Screenshot:
Error:
Read pdf
Image generation failed
ImageMagick / GraphicsMagick handling is enabled, but the execute command returned an error. Please check your settings, especially ['GFX']['im_path'] and ['GFX']['im_path_lzw'] and ensure Ghostscript is installed on your server.
The path to gm or im is correct, because the other formats are working fine.
[GFX][im_path] = C:/GraphicsMagick/
[GFX][im_path_lzw] = C:/GraphicsMagick/
Me and my system admin don't know why TYPO3 can't create PDF Thumbnails in backend and frontend. Maybe there's something with ghostscript .. but he can create pdfs via windows command line?!? So that's a TYPO3 Problem?!
Thanks for your help or hints. ..
No PDF Thumbnails , see backend
with installing GraphicsMagick also install Ghostscript on window Server. You can download Ghostscript from here https://www.ghostscript.com/download/gsdnld.html. Before downloading please check also the window is 64 bit or 32 bit.Then again check Environment>image Processing and Test Image. Then in "Image processing" everything is loaded successfully also "Read pdf" and "Read ai"
I have still the same problem. My TYPO3 7.6.24 LTS will not convert PDF- and AI-files to jpg. All other files are working.
Today I've update ghostscript 9.22 and graphicsMagic 1.3.23 on my windows server (IIS). Everything runs with 64bit now.
Successfully, I also tested GraphicsMagick to convert the pdf to jpg via command line cmd.exe, f.e.
"c:\Program Files\GraphicsMagick\gm.exe" -convert -geometry 160x130 c:\temp\test.pdf c:\temp\test123.jpg
But it won't work with TYPO3, see error on initial post ... now I've no idea anymore ..?! anyone else?
Have you also set the path of GraphicsMagick in TYPO3 admin panel settings>Configuration Presets>Image handling settings>write a path or select a path it should be like this screenshot as below

Getting error, ImageMagick/GraphicsMagick is not installed. windows

I am trying to use ImageMagick to manipulate photos in my rails app but when I upload the photo and post it I get this error,
"Picture Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed"
Also when I try do,
irb
require 'mini_magick'
filename = '/Users/me/tmp/testfile.jpg'
image = MiniMagick::Image.open(filename)
it gives error "gives error...MiniMagick::Invalid: ImageMagick/GraphicsMagick is not installed"
ImageMagick is added to the system path, and installed successfully, I can open imagemagick through the cmd line and bring up the interface, wondering if anyone can offer some help.
correct versions are installed of ImageMagick for my operating system.
Also vcomp120.dll is installed as well.
EDIT: This is just on the development sever, not, in production.
To answer, my own question, on the ImageMagick website binaries download section, windows x64 I used and there it has a list of three commands
magick logo: "logo.gif"
magick identify "logo.gif"
magick display "logo.gif"
I was getting error display: delegate library support not built-in '' (X11) # error/display.c/DisplayImageCommand/1888. with this. I then installed GraphicsMagick as per #Bonzo comment. Still had problems and read that alot of people were having trouble with converting images and installing the legacy utilities in the windows installer corrected this adding, convert.exe, mogrify, etc. I was then getting a error ...Wrong JPEG library version: library is 90, caller expects 62... I then searched and found that other peoples were having trouble with this error, and to remove the program that is having the conflicting "libjpeg" file, for me this was GraphicsMagic, I uninstalled and displaying images is fine now.
Also check your delegates configuration magick convert -list configure and make sure jpeg or whatever format is in there you are wanting to use.

OBD-II Simulator on OS-X

Has somebody installed OBD-II simulator on mac? I tried downloading it from this site - http://icculus.org/obdgpslogger/obdsim.html for OS-X.
After installation and opening ObdGPSLogger, I can see GPS logger window and different parameter gauges. However, after selecting Logfile, and device there is nothing happening.
In the Raw output, below is the error displayed under StdErr:
Dyld: Library not loaded: /Users/chunky/gpsd//lib/libgps.18.dylib
Referenced from: /Applications/OBD GPS Logger.app/Contents/Resources/bin/obdgpslogger
Reason: image not found
Let me know if you guys know the cause
I had the same issue here, but I got it working on a Mac downloading the obdgpslogger-0.16.tar.gz version (in the Tarball section) from this link.
You need to navigate to the downloaded folder and then run the commands:
mkdir build
cd build
cmake ..
make
make install # optional

xCode and ImageMagick not working? Linking to project bundle

I made project with ImageMagick included. I installed it through macPorts, linked libraries and headers to my project. Everything worked. But when I try to launch my builded app on other computer, where ImageMagick is not installed, it doesn't even opens my app. Says that Os X version is incompatible. If I install ImageMagick to that computer, then app works OK. What should I do to make it working on computers where users does't have ImageMagick? I guess I have somehow to include headers and libraries to my project bundle. But how to do it in correct way to get working? I tried to copy headers and libraries to my project's bundle but then when I try to build it it says that Magick++.h is not found. Can somebody help me?
I added ImageMagick files from where macports installed it (/opt/local/lib/ and /opt/local/include) to my created folder named ImageMagick, then moved that folder to my project and added ImageMagick/** to Library Search Paths and Header Search Paths. Then removed ImageMagick through macports. Project builds successfully, but doesn't runs. It shows error in console:
dyld: Library not loaded: /opt/local/lib/libMagick++.5.dylib
Referenced from: /Users/development/Library/Developer/Xcode/DerivedData/OGL-cahltqazoqxhrthkxztsqyvvodge/Build/Products/Debug/OGL.app/Contents/MacOS/OGL
Reason: image not found
(lldb)
Libs added to Linked Frameworks and Libraries list is in my app's folder and added to my project. Why it searches for it in /opt/local/lib?

how do get leptonica image library working on mac OS X

Has anyone had any success with the leptonica image libary on mac os x?
I have installed using mac ports but I can't seem to get the libpng and other image libraries to work.
For example, I get the following kind of error, which I assume is linked to libpng
% ./lineremoval dave-orig.png
Error in pixReadStreamPng: function not present
Error in pixReadStream: png: no pix returned
Error in pixRead: pix not read
Error in lineremoval: pix not made
thanks!
i had the same issue. I solved it by rebuilding leptonica after putting this
#ifdef HAVE_LIBZ
#include "zlib.h"
#endif
in line 111 of pngio.c.
You can find the details and also a patch file here:
http://code.google.com/p/leptonica/issues/detail?id=56

Resources