Member
Member
forkboy   2010-04-10, 20:49
#1

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.

Member
Member
sbillard   2010-04-10, 22:38
#2

It is being worked on. Should you wish to participate in the testing please visit http://www.zenphoto.org/trac/ticket/20

Member
Member
forkboy   2010-04-11, 01:43
#3

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

Member
Member
forkboy   2010-04-11, 01:53
#4

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

Member
Member
forkboy   2010-04-11, 02:46
#5

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%2006-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%2006-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...

Administrator
Administrator
acrylian   2010-04-11, 09:38
#6

You have of course to clear the image cache otherwise they are not regenerated using Imagick.

Member
Member
forkboy   2010-04-11, 14:30
#7

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.

Member
Member
kagutsuchi   2010-04-11, 15:55
#8

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

Member
Member
forkboy   2010-04-11, 16:12
#9

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

Administrator
Administrator
acrylian   2010-04-11, 16:34
#10

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.

Member
Member
sbillard   2010-04-11, 23:08
#11

That image is Huge. Maybe Imagick will help, maybe not.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.