I'm developing the image converting server with imageMagick library,
MagickCore, MagickWand on the resin.
Here's the installation process.
I installed ImageMagick 6.2.4, libpng-1.2.8 on HP-UX.
There's no problem to convert png, gif, bmp except jpg encoding and
decoding.
I tried to find some information in ImageMagick Studio. It said that execute
"identify -list format" to check.
Given result is as follows.
identify -list format | grep JPEG
see part 5 which describes the image encoding (RLE, JPEG, JPEG-LS),
and supplement 61 which adds JPEG-2000 encoding.
JNG* PNG rw- JPEG Network Graphics
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format
PJPEG* JPEG rw- Progessive Joint Photographic Experts Group JFIF
I don't know this is related, but I checked that jpeg library is under the
install directory.
/usr/local/lib/ImageMagick-6.2.4/modules-Q16/coders] ls -al jpeg*
-rw-r--r-- 1 root sys 37042 Aug 17 00:54 jpeg.a
-rw-r--r-- 1 root sys 1035 Aug 17 00:54 jpeg.la
-r-xr-xr-x 1 root sys 49152 Aug 17 00:54 jpeg.sl
However, if I execute below code when source content is jpeg, program is
terminated without any messages.
images = BlobToImage?(imageInfo, request->srcContent,
request->srcContentLen, &exception);
As I said before, no problem in converting png, gif, bmp.
In case of jpeg, cgi error happened like this.
javax.servlet.ServletException?: CGI execution failed. Exit code 139
I set the shared library path like SHLIB_PATH=.:/usr/lib:/lib:/usr/local/lib
Do I need any other requirements?
What I really can't understand is converting jpeg in command line is OK.
How can I do to convert jpeg in source code?
Please help me...
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users