Announcement

#1 2012-10-03 06:55:49

beamar
Member
2012-07-20
16

Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#2 2012-10-03 07:01:53

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

Hi :-)

External ImageMagick is install on your hosting ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2012-10-03 07:04:57

beamar
Member
2012-07-20
16

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#4 2012-10-03 10:23:23

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#5 2012-10-03 10:59:51

pewe
Member
2012-03-16
439

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#6 2012-10-03 11:05:52

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

pewe, then you should have:

Code:

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

Offline

 

#7 2012-10-03 11:17:53

pewe
Member
2012-03-16
439

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#8 2012-10-03 16:29:40

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

plg wrote:

pewe, then you should have:

Code:

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

trailing /

Offline

 

#9 2012-10-03 19:09:03

pewe
Member
2012-03-16
439

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

trailing /

Tried that too - doesn't work :-(

Last edited by pewe (2012-10-03 19:09:35)

Offline

 

#10 2012-10-08 01:20:46

beamar
Member
2012-07-20
16

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#11 2012-10-08 20:00:43

pewe
Member
2012-03-16
439

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#12 2012-10-13 18:26:15

EdwinKort
Translation Team
Rhoon, the Netherlands
1970-01-01
95

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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.


My Gallery
Hosted with: Surpass Hosting since 2004

Offline

 

#13 2013-07-16 22:33:14

Anthony Fok
Member
2013-07-16
1

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

Code:

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

to

Code:

$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

 

#14 2013-08-16 23:05:14

martinis
Member
2013-07-02
32

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

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

 

#15 2013-08-16 23:12:44

flop25
Piwigo Team
2006-07-06
7037

Re: Piwigo WILL NOT let me use ext magick, no matter what i do.

What's the path to Image magik? That's the real question


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

 

Board footer

Powered by FluxBB

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