Imagick Error

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
raindance
Posts: 20
Joined: 2010-10-24T11:17:34-07:00
Authentication code: 8675308

Imagick Error

Post by raindance »

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
raindance
Posts: 20
Joined: 2010-10-24T11:17:34-07:00
Authentication code: 8675308

Re: Imagick Error

Post by raindance »

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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Imagick Error

Post by magick »

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.
raindance
Posts: 20
Joined: 2010-10-24T11:17:34-07:00
Authentication code: 8675308

Re: Imagick Error

Post by raindance »

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:
it goes out gets the images, even downloads the images, but hangs every time on the resize.
Does that tell you what you need to know?
raindance
Posts: 20
Joined: 2010-10-24T11:17:34-07:00
Authentication code: 8675308

Re: Imagick Error

Post by raindance »

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?
raindance
Posts: 20
Joined: 2010-10-24T11:17:34-07:00
Authentication code: 8675308

Re: Imagick Error

Post by raindance »

Any help please? We're stuck.
Thanks in advance...
raindance
Posts: 20
Joined: 2010-10-24T11:17:34-07:00
Authentication code: 8675308

Re: Imagick Error

Post by raindance »

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]#
Post Reply