Imagick autorotate fails

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:
{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!

Comments

  • I've found the bug and will have a patch for it tonight.
  • The fix is in SVN so the next nightly version will contain the fix. :)
  • Gurney Member
    Excellent ;)

    Thank you very much !!!
  • Gurney Member
    Works a treat !!!
  • Gurney Member
    Spoke too soon :(

    I still get the following debug messages
    {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
  • Just posted another patch on Trac, it should be in SVN either tonight or tomorrow. I'm 100% sure this will fix it.
  • Gurney Member
    Thanks, I applied the patch manually and it works!
Sign In or Register to comment.