Hi,
I've been trying to use ImageMagick instead of GD in my installation. The ImageMagick extension is enabled and available to php, but when I disable the GD extension in php, I get an error that the GD libraries are missing, and I am not able to upload any more images. I assume that this means that it's still trying to use GD? Any help would be appreciated.
Piwigo version: 2.9.3
PHP version: 7.0
MySQL version: 5.5.59-MariaDB not mySQL
Piwigo URL: http://joe.ambrosino.studio
Offline
Hello
do you resize on upload?
Offline
Piwigo generates all of the various size images automatically, square, thumbnail, small, etc., if that's what you are asking. I don't proactively do any resizing.
I've not been using Piwigo log enough to understand why that is significant. I thought GD and ImageMagick did roughly the same things, but ImageMagick does it better and more efficiently.
Offline
I know how Piwigo works ^^
so "GD enabled in PHP"+"ImageMagick set in Piwigo", does what ?
From what you are saying it's not clear if you change the Piwigo config with the corect path or if you used Imagick etc
Offline
I did change the path, but that's where the documentation isn't clear.
If ImageMagick is compiled into php, and the imagick.so file is referenced & enabled in the php configuration, I assume that's NOT an external installation of ImageMagick, is that correct?
If the piwigo config is set to "$conf['graphics_library'] = 'auto';" it should try using php's ImageMagick before an external installation of ImageMagick and GD, so a path wouldn't be necessary, correct?
I know that php can access ImageMagick:
"php -i | grep imagick" returns:
imagick
imagick module => enabled
imagick module version => 3.4.3
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.skip_version_check => 0 => 0
So what am I missing?
Offline
perfectly right
Piwigo check in that order imagick>imagemagik>gd
But you can also force it by setting "imagick" instead of auto, and Piwigo updates the result in admin.php?page=maintenance
Offline
Hi again,
So, we were both correct.
The admin page shows that ImageMagick is being used. I guess problem solved. I didn't know to look there.
I guess what threw me off was the fact that Piwigo throws an error if GD isn't present/disabled, even if ImageMagick is in use.
Thank you for your help.
Offline