P
P
Pavel Osipov2011-03-19 23:00:13
PHP
Pavel Osipov, 2011-03-19 23:00:13

Make PHP friends with GraphicsMagick under Ubuntu?

A question. I'm trying to use graphicsmagick
on a local Apache server on Ubuntu 10.10 I downloaded it, compiled it, it works in the console , then I installed the PHP extension sudo pecl install gmagick-beta phpinfo () shows that everything is OK gmagick version 1.0.8b1 And the code
gm -convert -scale 200 big_img.JPG out.jpg

$image = new Gmagick();<br/>
$file = 'big_img.JPG';<br/>
$image-&gt;readImage($file);

Gives an error:
Wrong JPEG library version: library is 62, caller expects 80
Installed jpegsrc.v8c.tar.gz from here , nothing changed, although libjpeg.so.8.3.0 appeared in /usr/local/lib/.
And the question is how to specify which one to use?
PS I found a note but the solution did not help.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
YourChief, 2011-03-20
@YourChief

when rebuilding ImageMagick, do not just clean, but distclean and reconfigure. if it doesn't help, try replacing the 62nd lib with a symlink for 83rd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question