Announcement

#1 2018-05-08 16:25:29

josephambrosino
Member
2018-05-08
5

ImageMagick not being recognized

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

 

#2 2018-05-08 23:18:50

flop25
Piwigo Team
2006-07-06
7037

Re: ImageMagick not being recognized

Hello
do you resize on upload?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2018-05-09 15:05:08

josephambrosino
Member
2018-05-08
5

Re: ImageMagick not being recognized

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

 

#4 2018-05-09 16:23:57

flop25
Piwigo Team
2006-07-06
7037

Re: ImageMagick not being recognized

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2018-05-09 16:35:34

josephambrosino
Member
2018-05-08
5

Re: ImageMagick not being recognized

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

 

#6 2018-05-09 16:52:26

flop25
Piwigo Team
2006-07-06
7037

Re: ImageMagick not being recognized

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#7 2018-05-09 17:00:38

josephambrosino
Member
2018-05-08
5

Re: ImageMagick not being recognized

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

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact