Lately, I've been working on an Imagick library for zenphoto. As of now, it is just acrylian and myself testing the library; however, I feel that the library has become mature enough that it's ready to be publicly tested.
If you're interested in helping to test the new Imagick library, you must meet these requirements:
- PHP >= 5.0.0
- Imagick >= 2.1.0
To be able to use some of the newer functions in the library:
- ImageMagick >= 6.3.8
- Imagick >= 2.3.0
It would help to have some testers testing the older functions and some test the newer. Any help/contribution is appreciated
The latest version of the library can be downloaded from the Trac ticket here:
http://www.zenphoto.org/trac/ticket/20 (the newest attachment is the latest version)Known issues:
- CAPTCHA generation is not yet working
Comments
I've been thinking/waiting/looking at/for imagemagick support intermittently for a long while as well, but I completely missed this latest work till now because there was no mention on http://www.zenphoto.org/trac/timeline.
(Slightly off topic: any idea why http://www.zenphoto.org/trac/timeline doesn't include any of the updates to ticket #20? )
The end result should be that images generated from GD and Imagick are the same.
I'm not sure why the ticket wouldn't be included in the timeline, but my guess is that the timeline only includes major changes to tickets (such as being opened, closed, or reopened) and not comments.
CAPTCHAs are still not working completely correctly and there's another bug with cropping/scaling that I have yet to fix.
I was excited to read that Imagick support is on the way, so I gave it a try. (Debian root server, PHP 5.2.6-1, Imagick 2.1.1-rc1, ImageMagick 6.3.7, zenphoto-2010-01-12-trunk, lib-Imagick.13.php, default theme, no cropping, originals 2400 px max.)
1. The cached images show only a small fraction from the top left corner of the original image. Generation of cache images takes very long, with heavy disk activity (i/o wait) - the original seems to be resampled to ~3000 % and then cropped to the correct size. When I deselect Imagick, all works well - so it seems to be a problem with either my Imagick version or lib-Imagick.
2. There are no color profiles embedded in cached images. It would be nice if color profiles of original images were preserved.
For what it's worth, at present I use ImageMagick's convert command in a shell script to generate cached images (convert original-image -quality 85 -resize 100x100 -unsharp 0x0.3+0.4+0 cached-image).
I would like to use ZenPhoto to make a stereoscopic Anaglyph Gallery. But the libGD resizing process modify too much colors and the anaglyph not work fine when resized or watermarked by libGD.
You could read this recent topic on the forum :
http://www.zenphoto.org/support/topic.php?id=6807
Could you test this source JPEG sRGB file anaglyph with your ImageMagick ZenPhoto server (my service provider work with zenphoto 1.2.7, graphic support PHP GD) ?
http://www.stereauvergne.fr/3D/Anaglyphes/FouillesArcheoCorent/DRomeuf-anag-033-CorentFouillesArcheoCaveTaverne-l1280.jpg
Ghosts on amphora appears with your ImageMagick version (resizing process) ?
David.
`
Zenphoto core files [Some files are missing or seem out of variance]
Warning!
Perhaps there was a problem with the upload. You should check the following files:
zp-core/lib-Imagick.php
`
This would naturally be the case if you have uploaded a different version of the file than was distributed with the release. Naturally, you have done this otherwise you could no test the new library.
Warnings are just that, warnings. If you know what is going on and understand why you are getting the warning you can safely ignore it.
I'm aware of #1 but haven't found the offending function yet. Chances are that it's something small that I just haven't noticed yet, but I hope to have this fixed in the next version of the script.
I have a decent idea of why #2 might be happening but I'll have to figure out how to fix it.
dromeuf: I saw that you got your image working from your other thread. Glad to hear it
http://www.zenphoto.org/trac/wiki/Imagick
The new version allows for user-defined memory limits. If you find that the image library is working too slowly or having errors, try changing the limit higher or lower.
The library should now retain color profiles and cached images should be generated at the correct size. However, there is a problem with color distortions that I haven't figured out yet. Other current issues are on the wiki page.
Please report new issues either on the Trac ticket (#20) or on the wiki page. Thanks!