Announcement

#1 2015-05-13 20:21:50

loupet
Member
2015-04-26
6

Resize after upload disabled due to the use of GD as graphic library

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

 

#2 2015-05-13 20:41:30

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Resize after upload disabled due to the use of GD as graphic library

and with the correct case does it work ?

Code:

$conf['ext_imagick_dir'] = '/usr/bin/';

Offline

 

#3 2015-05-13 20:58:21

loupet
Member
2015-04-26
6

Re: Resize after upload disabled due to the use of GD as graphic library

Oops, yes that was a typo but changing the case still did not fix the problem.

Offline

 

#4 2015-05-13 21:12:10

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Resize after upload disabled due to the use of GD as graphic library

create a php file somewhere with this content and see the result when you browse to it

Code:

<?php
exec('/usr/bin/convert -version', $out);
var_dump($out);

Offline

 

#5 2015-05-14 16:11:44

loupet
Member
2015-04-26
6

Re: Resize after upload disabled due to the use of GD as graphic library

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

 

#6 2015-05-18 05:32:34

loupet
Member
2015-04-26
6

Re: Resize after upload disabled due to the use of GD as graphic library

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

 

#7 2015-05-18 08:08:18

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Resize after upload disabled due to the use of GD as graphic library

So you have IM but can't use it, totally useless.

You have no choice to keep GD.

Offline

 

#8 2015-05-19 03:26:28

loupet
Member
2015-04-26
6

Re: Resize after upload disabled due to the use of GD as graphic library

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

 

#9 2015-05-19 09:27:14

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Resize after upload disabled due to the use of GD as graphic library

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

 

#10 2015-05-20 00:12:58

loupet
Member
2015-04-26
6

Re: Resize after upload disabled due to the use of GD as graphic library

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

 

Board footer

Powered by FluxBB

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