ZenphotoCMS Forum
Imagick autorotate fails - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Imagick autorotate fails (/thread-7117.html)



Imagick autorotate fails - Gurney - 2010-05-29

Hello ZenPhoto!

I was wondering if anyone noticed that autorotation fails when using imagick?

I am running ubuntu 9.10 with a fixed gd library and imagick, and when the latter is ticked all the picture that needs rotation are replaced by an exclamation mark ,and I get the following debug line in the log:

Quote:{Sat, 29 May 2010 07:45:17 GMT}
Loading PHP Imagick library 2.1.1-rc1ImageMagick 6.5.1-0 2009-08-27 Q16 OpenMP http://www.imagemagick.org
{Sat, 29 May 2010 07:45:17 GMT}
i.php(Divers, IMG_0687.JPG): $size=595, $width=, $height=, $cw=, $ch=, $cx=, $cy=, $quality=85, $thumb=, $crop=, $thumbstandin=, $passedWM=, $adminrequest=, $gray=0
{Sat, 29 May 2010 07:45:17 GMT}
cacheImage($imgfile=IMG_0687.JPG, $newfilename=/Divers/IMG_0687_595.jpg, $allow_watermark=1, $force_cache=, $theme=default) $size=595, $width=, $height=, $cw=, $ch=, $cx=NULL, $cy=NULL, $quality=85, $thumb=, $crop= $image_use_side=longest; $upscale=0;
{Sat, 29 May 2010 07:45:18 GMT}
cacheImage(/Divers/IMG_0687_595.jpg) exception: Invalid parameter provided
Cheers!




Imagick autorotate fails - kagutsuchi - 2010-05-29

I've found the bug and will have a patch for it tonight.




Imagick autorotate fails - kagutsuchi - 2010-05-29

The fix is in SVN so the next nightly version will contain the fix.




Imagick autorotate fails - Gurney - 2010-05-29

Excellent

Thank you very much !!!




Imagick autorotate fails - Gurney - 2010-05-29

Works a treat !!!




Imagick autorotate fails - Gurney - 2010-05-30

Spoke too soon

I still get the following debug messages

Quote:{Sun, 30 May 2010 04:48:36 GMT}
Zenphoto v1.3[5483]
{Sun, 30 May 2010 04:48:36 GMT}
Loading PHP Imagick library 2.1.1-rc1ImageMagick 6.5.1-0 2009-08-27 Q16 OpenMP http://www.imagemagick.org
{Sun, 30 May 2010 04:48:36 GMT}
i.php(2010.01.27-31 Dubai, IMG_2780.JPG): $size=595, $width=, $height=, $cw=, $ch=, $cx=, $cy=, $quality=85, $thumb=, $crop=, $thumbstandin=, $passedWM=, $adminrequest=, $gray=0
{Sun, 30 May 2010 04:48:36 GMT}
cacheImage($imgfile=IMG_2780.JPG, $newfilename=/2010.01.27-31 Dubai/IMG_2780_595.jpg, $allow_watermark=1, $force_cache=, $theme=default) $size=595, $width=, $height=, $cw=, $ch=, $cx=NULL, $cy=NULL, $quality=85, $thumb=, $crop= $image_use_side=longest; $upscale=0;
{Sun, 30 May 2010 04:48:37 GMT}
cacheImage(/2010.01.27-31 Dubai/IMG_2780_595.jpg) exception: Invalid parameter provided




Imagick autorotate fails - kagutsuchi - 2010-05-30

Just posted another patch on Trac, it should be in SVN either tonight or tomorrow. I'm 100% sure this will fix it.




Imagick autorotate fails - Gurney - 2010-05-30

Thanks, I applied the patch manually and it works!