Pages: 1
Hello/Hi/Greetings,
Photo resize is not working.
Using the local file editor I entered the following under the "Local Config" tab.
$conf['graphics_library'] = 'ext_imagick';
$conf['Ext_imagick_dir'] = '/usr/bin/';
I also tried the following.
$conf['graphics_library'] = 'imagick';
$conf['imagick_dir'] = '/usr/bin/';
My host provider confirmed ImageMagick is installed and located in /usr/bin/ and
other customers are using ImageMagick on a daily basis
Piwigo version: 2.7.4
PHP version: 5.3
MySQL version: 5.5.40-cll Protoclo Version 10
Piwigo URL: http://phototopics.net/skp/piwigo2
This is virgin installation installed for test purposes......Any advice would be greatly appreciated.
Offline
and with the correct case does it work ?
$conf['ext_imagick_dir'] = '/usr/bin/';
Offline
Oops, yes that was a typo but changing the case still did not fix the problem.
Offline
create a php file somewhere with this content and see the result when you browse to it
<?php exec('/usr/bin/convert -version', $out); var_dump($out);
Offline
That returned the following error message:
Warning: exec() has been disabled for security reasons in /home/photsnet/public_html/skp/piwigo2/test_imagick.php on line 2
NULL
It looks to me like it is server problem but just in case I disabled the firewall and antivirus which did not change the result.
Offline
More info....
Here is a message from my web host.
The "error" is clear... our server has exec disabled for security reasons (as most hosts do). It just means the way they gave you to check the version of imagick is not going to work.
You can SSH into the server and do the same command and it will work fine. I just did it for you (and you can give them this)
photsnet@phototopics.net [~]# /usr/bin/convert -version
Version: ImageMagick 6.7.1-7 2012-05-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
photsnet@phototopics.net [~]#
Offline
So you have IM but can't use it, totally useless.
You have no choice to keep GD.
Offline
From my web host:
The question is: Is the PHP exec() function required for their program to use ImageMagick? That is a yes or no question that we need answered. I do not yet understand or have been told what the problem is with their script using ImageMagick, versus everyone else using it.
Offline
there is only two ways to use IM with PHP (and Piwigo supports both of them) :
- the native classes if PHP has been compiled with imagick extension (which is not the case because otherwise Piwigo would have detected it when $conf['graphics_library'] = 'auto', it's the default config)
- directly call the binary with exec()
if they don't allow exec() then I don't understand how everyone else is using it
Offline
Finally...Problem resolved!
A note from my web host:
"I didn't realize that on this particular server, imagemagick was not compiled into PHP"
Offline
Pages: 1