Pages: 1 2
This is an old post from 8-11-12, but still getting no help on it:
Seen a few post on this and no one from the team seems to be helping.
Piwigo fails to use ext_magick even when selected.
It had it working on a fresh install, then 3 days later, I went to add more pics and it just went to GD on it's own??
Recently did a whole fresh upgrade, to 2.4.4. Same deal. Have no idea how to force img magick. It always seems to use GD......
•Operating system: FreeBSD
•PHP: 5.2.17 (Show info) [2012-10-02 23:57:13]
•mysql: 5.5.20 [2012-10-02 23:57:13]
•Graphics Library: GD bundled (2.0.34 compatible)
Offline
Hi :-)
External ImageMagick is install on your hosting ?
Offline
yes, it is installed. on my previos install, it used ext magick off the batt, but a few days later switched to GD. Needless to say, when i was able to use ext_magick, everything worked great.
Here is my config file:
<?php
$conf['enable_i_log'] = true;
$conf['show_exif'] = false;
$conf['use_exif'] = false;
// Library used for image resizing. Value could be 'auto', 'imagick',
// 'ext_imagick' or 'gd'. If value is 'auto', library will be choosen in this
// order. If choosen library is not available, another one will be picked up.
$conf['graphics_library'] = 'ext_imagick';
// If library used is external installation of ImageMagick ('ext_imagick'),
// you can define imagemagick directory.
$conf['ext_imagick_dir'] = '/usr/local/bin/convert';
?>
Offline
beamar wrote:
$conf['ext_imagick_dir'] = '/usr/local/bin/convert';
should be
$conf['ext_imagick_dir'] = '/usr/local/bin/';
also make sure identify is in the same dir as convert ...
Offline
I too reported this issue some time ago and had no answer.
I had this reply from my host when I checked if IM was available
ImageMagick is already setup at server end, you do not need to install separately. The path to ImagiMagick is:
/usr/local/ImageMagick
and its binnaries are under /usr/local/ImageMagick/bin.
This is what I have in my config (using Localfiles)
$conf['graphics_library'] = 'ext_imagick';
$conf['ext_imagick_dir'] = ' /usr/local/ImageMagick';
But Piwigo still used GD.
I have another copy of Piwigo in a different directory on the same server, I have NOT modified the config and it reports using IM.
So 2 installations, same server, different results. WHY??
Last edited by pewe (2012-10-03 11:01:14)
Offline
pewe, then you should have:
$conf['ext_imagick_dir'] = ' /usr/local/ImageMagick/bin';
Offline
Thanks PLG.
I tried that first, and that did not work either - I then changed it to drop the /bin.
I have just put /bin back, and it still uses GD not IM.
Offline
plg wrote:
pewe, then you should have:
Code:
$conf['ext_imagick_dir'] = ' /usr/local/ImageMagick/bin';
trailing /
Offline
trailing /
Tried that too - doesn't work :-(
Last edited by pewe (2012-10-03 19:09:35)
Offline
rvelices wrote:
beamar wrote:
$conf['ext_imagick_dir'] = '/usr/local/bin/convert';
should be
$conf['ext_imagick_dir'] = '/usr/local/bin/';
also make sure identify is in the same dir as convert ...
This worked!!!
Hopfully it will stay with IM now!
thanks,
Brian
Offline
Didn't work for me :(
What is more confusing.
I have 3 installations on same server.
Installation 1 by default runs IM
Installation 2 by default runs GD - BUT I have modified the config as described earlier - AND it still runs GD
Installation 3 by default installed running GD BUT with no changes to the config suddenly runs with IM.
What is frustrating - no-one can tell me what is happening!!!!!
Offline
Here too I'm having the same problem.
This is in local config (LocalFilesEditor)
/*$conf['graphics_library'] = 'gd'; */
$conf['graphics_library'] = 'ext_imagick';
$conf['ext_imagick_dir'] = '/usr/bin';
ISP has installed ImageMagick for me on the server and it's located in the directory [/usr/bin].
Still PWG is running in GD mode. I guess I'm missing something.
Offline
EdwinKort wrote:
Here too I'm having the same problem.
This is in local config (LocalFilesEditor)/*$conf['graphics_library'] = 'gd'; */
$conf['graphics_library'] = 'ext_imagick';
$conf['ext_imagick_dir'] = '/usr/bin';ISP has installed ImageMagick for me on the server and it's located in the directory [/usr/bin].
Still PWG is running in GD mode. I guess I'm missing something.
You need to change
$conf['ext_imagick_dir'] = '/usr/bin'; // wrong
to
$conf['ext_imagick_dir'] = '/usr/bin/'; // correct
That is because of the way the PHP code is written in admin/include/image.class.php, for better or for worse.
Hence, the trailing slash "/" is mandatory here, otherwise, Piwigo would be looking for /usr/binconvert, which obviously does not exist.
Offline
Did this work? I have just moved servers with the same host, and each time they have installed ImageMagick for me. On the first occasion it was picked up on 'auto' by Piwigo, yet oddly on the other (current) server, it remains at Graphics Library: GD bundled (2.1.0 compatible) even after amending the file to:
// Library used for image resizing. Value could be 'auto', 'imagick',
// 'ext_imagick' or 'gd'. If value is 'auto', library will be choosen in this
// order. If choosen library is not available, another one will be picked up.
$conf['graphics_library'] = 'ext_imagick';
// If library used is external installation of ImageMagick ('ext_imagick'),
// you can define imagemagick directory.
$conf['ext_imagick_dir'] = '/usr/bin/';
(Also tried removing the / at the end).
I see some other posts have reported the same problem so it would be good to get to the bottom of what causes the inconsistency.
Offline
What's the path to Image magik? That's the real question
Offline
Pages: 1 2