ZenphotoCMS Forum
zenphoto on windows with Imagick - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: zenphoto on windows with Imagick (/thread-11114.html)



zenphoto on windows with Imagick - jlmontero - 2013-06-07

Hi,

I'm currently running Zenphoto in windows with a simple wamp server installation. All is Ok, but thumnail generation is a little bit slow... I'm trying to switch to Imagemagick to see if it helps, but I can't. Admin option to activate is disabled because it seems that zenphoto requires Imagick php extension version 3.0.0 or newer.

In fact I think I'm running a newer version, but as I'm in windows, I need windows binary dll extension, which I found here:

http://valokuva.org/

Problem: this windows compilation doesn't provide correct version information, so when you ask phpinfo, you get this:

"@PACKAGE_VERSION@"

...insted of actual dll version...

Sooooo: would it be possible to bypass this zenphoto check? I'll try to find the check in all php files inside zp-core... but if anyone knows, it would be great and save me from parsing all that files...

Thanks a lot.




zenphoto on windows with Imagick - jlmontero - 2013-06-07

Oh man... 2 minutes after writing all that I found it... So simple as going to /zp-core/lib-imagick.php and change this line:

$_imagick_version = phpversion('imagick');

to, for example, this:

$_imagick_version = '3.0.0';

All is working now, and yes, thumnail generation is noticeable faster.

bye!




zenphoto on windows with Imagick - kagutsuchi - 2013-06-13

Glad to hear it's working for you

I haven't tested the lib on Windows, but that DLL version issue sounds like a bug. You might consider filing a bug report on Imagick's PECL page.