Hi
We just changed servers and on our old server, our script using ImageMagick worked fine, but on the new server we are getting errors which seem to have to do with resizing when we download them, not sure though.
The error is:
Exception in Imagick: Unsupported marker type 0x5c `/tmp/magick-XXJMYeFc' @ jpeg.c/EmitMessage/232
It's certainly possible, even likely, that we dont have it installed the same way on the new server, i didn't set it up myself either time.
Any ideas how to troubleshoot and solve this?
Thanks
Imagick Error
Re: Imagick Error
In the PHP.ini file I see:
;extension="imagick.so"
[PHP]
Do I also need magicwand installed? It seems that we used one or the other or both in the previous version of the server but I don't know and am not sure how to know?
;extension="imagick.so"
[PHP]
Do I also need magicwand installed? It seems that we used one or the other or both in the previous version of the server but I don't know and am not sure how to know?
Re: Imagick Error
The exception you received is thrown by the JPEG delegate library from within ImageMagick. It means the JPEG image your script is reading is corrupt or has a marker not support by your version of JPEG. It probably should just be a warning rather than an error exception. Post a URL to the JPEG image so we can download and inspect it.
Re: Imagick Error
Thanks for your reply. This is the error
SELECT source_image_path FROM hotel_images WHERE hotel_id = '315347' AND source_image_path = 'http://static1.easytobook.com/images/89 ... g1-400.jpg' ORDER BY display_order DESC LIMIT 0,1
Downloading image from http://static1.easytobook.com/images/89 ... g1-400.jpg
Saved to /home/juicyhot/public_html/images/google_images/tmp/img-20110601123040.jpg
Saving image /home/juicyhot/public_html/images/google_images/tmp/img-20110601123040.jpg to folder ES_hotel_nerja_club
Exception in Imagick: Unsupported marker type 0x5c `/tmp/magick-XXJMYeFc' @ jpeg.c/EmitMessage/232
And my programmer says:
SELECT source_image_path FROM hotel_images WHERE hotel_id = '315347' AND source_image_path = 'http://static1.easytobook.com/images/89 ... g1-400.jpg' ORDER BY display_order DESC LIMIT 0,1
Downloading image from http://static1.easytobook.com/images/89 ... g1-400.jpg
Saved to /home/juicyhot/public_html/images/google_images/tmp/img-20110601123040.jpg
Saving image /home/juicyhot/public_html/images/google_images/tmp/img-20110601123040.jpg to folder ES_hotel_nerja_club
Exception in Imagick: Unsupported marker type 0x5c `/tmp/magick-XXJMYeFc' @ jpeg.c/EmitMessage/232
And my programmer says:
Does that tell you what you need to know?it goes out gets the images, even downloads the images, but hangs every time on the resize.
Re: Imagick Error
Also...this script goes out and gets many images, and was working fine before we had to move to the new server...so it seems like a problem with the new server to me...perhaps imagemagick not installed properly or a module not installed or something?
Re: Imagick Error
Any help please? We're stuck.
Thanks in advance...
Thanks in advance...
Re: Imagick Error
Does this tell you anything?
root@vps [~/ImageMagick-6.7.0-3]# identify logo.gif
logo.gif GIF 640x480 640x480+0+0 8-bit PseudoClass 256c 31.7KB 0.000u 0:00.000
root@vps [~/ImageMagick-6.7.0-3]# display logo.gif
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
root@vps [~/ImageMagick-6.7.0-3]#
root@vps [~/ImageMagick-6.7.0-3]# identify logo.gif
logo.gif GIF 640x480 640x480+0+0 8-bit PseudoClass 256c 31.7KB 0.000u 0:00.000
root@vps [~/ImageMagick-6.7.0-3]# display logo.gif
display: unable to open X server `' @ error/display.c/DisplayImageCommand/428.
root@vps [~/ImageMagick-6.7.0-3]#