Member
Member
kagutsuchi   2009-11-28, 22:40
#1

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:

[list]
[][b]PHP >= 5.0.0[/b]
[
][b]Imagick >= 2.1.0[/b]
[/list]
To be able to use some of the newer functions in the library:

[list]
[][b]ImageMagick >= 6.3.8[/b]
[
][b]Imagick >= 2.3.0[/b]
[/list]
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 [i](the newest attachment is the latest version)[/i]

[b]Known issues:[/b]

[list]
[*]CAPTCHA generation is not yet working
[/list]

Member
Member
kagutsuchi   2009-11-28, 23:30
#2

I should also mention that in order to test the library, the nightly build is necessary. Simply replace the placeholder zp-core/lib-Imagick.php and run the setup.php script. Then, in the Gallery tab of the Options menu, select Use Imagick to activate the library. (The option will only appear if Imagick is available on your server)

Member
Member
jlang   2009-11-30, 17:06
#3

I'll give it a try. (PHP 5.2.5, Imagick 2.1.1-rc1, Imagemagick 6.2.8 on my shared hosting. Not sure what I've got on the XAMPP on my test setup on my machine at home.) I presume a successful end state will be that I would be able to switch graphics library without any visible effect beyond performance issues?

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? )

Member
Member
kagutsuchi   2009-11-30, 17:25
#4

Thanks for giving it a try

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.

Administrator
Administrator
acrylian   2009-11-30, 17:31
#5

Yep, that's it, it is still open as ever since it has been created long time ago..;-)

Member
Member
kagutsuchi   2009-11-30, 18:35
#6

Btw, I've uploaded a new version that should fix the bug with sized images.

Administrator
Administrator
acrylian   2009-11-30, 19:01
#7

I will test tomorrow, my host is moving the server my webspace is on today.

Member
Member
kagutsuchi   2009-12-03, 06:06
#8

There's a new version available for download that should be working better than before

Member
Member
kagutsuchi   2009-12-17, 19:11
#9

There's another new version available. The library should now be faster.

CAPTCHAs are still not working completely correctly and there's another bug with cropping/scaling that I have yet to fix.

Junior Member
Junior Member
tumesch   2010-01-14, 23:43
#10

Is this the right place for test feedback? I mean, is that all? Anyway, here it goes.

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).

Administrator
Administrator
acrylian   2010-01-15, 11:10
#11

Thanks for the feedback, hopefully that info will be usefull to kagutsuchi. You can also comment on the ticket itself. As you can read there it does not work on my server at all.

Member
Member
dromeuf   2010-01-20, 11:03
#12

Hi Kagutsuchi,

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.

Member
Member
kagutsuchi   2010-01-20, 16:25
#13

I'll certainly give it a try when I have a chance.

Member
Member
kamil   2010-01-22, 16:49
#14

i tried to run zenphoto installer with Imagick lib (http://www.zenphoto.org/trac/raw-attachment/ticket/20/lib-Imagick.13.php),but with no result:

`
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
`

Member
Member
sbillard   2010-01-22, 19:35
#15

This is a direct result of your test. As you can see, it is a warning. It is saying that possibly the lib-Imagick.php file is missing or has a different timestame than expected.

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, [b]warnings[/b]. If you know what is going on and understand why you are getting the warning you can safely ignore it.

Member
Member
kagutsuchi   2010-01-27, 23:59
#16

[b]tumesch[/b]: Thanks for giving it a try

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.

[b]dromeuf[/b]: I saw that you got your image working from your other thread. Glad to hear it

Member
Member
kagutsuchi   2010-02-15, 23:42
#17

I've updated the Imagick library again and created a new wiki page for keeping track of things.

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!

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