ImageMagick Ever Coming??

Curious if there are still plans to incorporate ImageMagick? Zenphoto is my favorite of the various photo gallery platforms, but the lack of ImageMagick is deal killer since Zenphoto currently won't process thumbnails for large images. ImageMagick seems to get around the PHP memory limitations much better.

Comments

  • It is being worked on. Should you wish to participate in the testing please visit http://www.zenphoto.org/trac/ticket/20
  • Thanks for update. Great to see that it's being worked on. I read through the ticket comments, way over my head :) Looks like a lot of work.

    Sorry if this is dumb question and feel free to blow me off it's too much trouble to explain, but how exactly would I test it? I installed latest nightly build and downloaded lib-Imagick.24.php. I renamed it to lib-Imagick.php and replaced the file of the same name under zp-core. That didn't work at all, so I'm guessing I'm missing a step or two or three.

    ImageMagick extensions are already installed by my host.

    Matt
  • Nevermind.....I figured it out....so far looks like it's working. I'll play around with it a bit. Thanks again.

    For anyone else following along that wants to try it, here's how to do it. Not sure if you must first install latest nightly build or not from (http://www.zenphoto.org/files/nightly/). I did.

    1) Go to http://www.zenphoto.org/trac/ticket/20

    2) Download the latest version of lib-Imagick.XX.php (I had to click on the link to the PHP file, then scroll to the bottom of the next page and click on the link that says "Original Format" at the very bottom to get the php file. It should be about 18k. If it's 150+ kilobytes you made same mistake as me.

    3) Go to your zp-core folder. Rename lib-Imagick.php to lib-Imagick.php.orig so you can revert back if needed.

    4) Upload the file you downloaded previously to the zp-core folder and rename it lib-Imagick.php

    5) Go to Image tab under Options in Administration and tick the box at the top to turn it on.

    6) Click on Overview Tab to make sure it's working. Should see.

    Graphics support: PHP Imagick library 2.3.0
    ImageMagick 6.3.9 12/10/08 Q16 http://www.imagemagick.org

    Matt
  • Zenphoto with ImageMagick still won't create thumbnails for the same exact images that GD would choke on. I've always assumed it was PHP memory issue, but now I'm wondering if something else going on.

    For example,

    This image is 2592x3888 and 3.9 MB. Thumbnails get created no problem.
    http://photos.fox-clan.com/albums/2009-T-Ball/2009-03-26 06-11-33.jpg

    This image is same exact resolution and only 2.7 MB. Thumbnails don't get created.
    http://photos.fox-clan.com/albums/2009-T-Ball/2009-03-26 06-33-32.jpg

    It seems to have something to do with the orientation of the photograph and perhaps even something to do with the orientation flag set in the EXIF. Images with Orientation flag of "Right Upper" seem to be the ones that fail on thumbnail creation. It the Orientation flag says "Upper Left", it works.

    Not sure if this is related to Zenphoto or graphics processor. Either way, hoping I can just change the EXIF flag and get thumbnails... :)
  • acrylian Administrator, Developer
    You have of course to clear the image cache otherwise they are not regenerated using Imagick.
  • Yes, I did clear image cache. For some reason neither GD or ImageMagick will create thumbnails if the EXIF Orientation flag begins with "Right" or "Left". Seems ZenPhoto is looking for it to begin with "Upper" or "Lower". Since the same thing happens with both GD and ImageMagick, makes me think might be issue with ZenPhoto itself.

    Not a huge issue since easy enough to fix the source photos, but I went ahead and created a ticket.
  • I've responded to your ticket.

    Also, fyi, there's a wiki article for Imagick that details how to install it. Feel free to edit it if you feel it could be improved. :)http://www.zenphoto.org/trac/wiki/Imagick
  • Sorry...I guess I shouldn't have fixed the broken photos on my server...duh. Here's one that should fail on thumbnail creation.

    www.gelib.com/temp/nothumb.jpg

    Thanks for link to Wiki article...I missed that. I obviously don't spend enough time looking through the Wiki :)

    Matt
  • acrylian Administrator, Developer
    Well, the wiki is not really in use except for this so there is no need to look there...:-) All important info is on the site.
  • That image is Huge. Maybe Imagick will help, maybe not.
Sign In or Register to comment.