Page 2 of 2

Re: Background keeps black black black (-background blue)

Posted: 2010-07-08T12:21:38-07:00
by fmw42
In a terminal, try

which convert

and see how many it finds and where they are.

Re: Background keeps black black black (-background blue)

Posted: 2010-07-08T13:20:21-07:00
by lsteamgeo
Re,

When i do this command on an SSH console :

Code: Select all

 convert -list configure
i've this response :

Code: Select all

Path: /usr/local/lib/ImageMagick-6.6.3/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99 -std=gnu99
CFLAGS        -fopenmp -g -O2 -Wall -pthread
CONFIGURE     ./configure
COPYRIGHT     Copyright (C) 1999-2010 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fontconfig freetype jpeg jng lcms png tiff x11 xml zlib
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-perl=no
EXEC-PREFIX   /usr/local
HOST          i686-pc-linux-gnu
LDFLAGS       -L/usr/local/lib
LIB_VERSION   0x663
LIB_VERSION_NUMBER 6,6,3,0
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread
NAME          ImageMagick
PCFLAGS       -fopenmp
PREFIX        /usr/local
QuantumDepth  16
RELEASE_DATE  2010-07-08
VERSION       6.6.3
WEBSITE       http://www.imagemagick.org

Path: [built-in]

Name          Value
-------------------------------------------------------------------------------
NAME          ImageMagick

BUT when i execute the same commande in a exec in PHP i've this response :

Code: Select all

[0] => Version: ImageMagick 6.2.8 04/17/08 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
    [1] => Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
    [2] => 
    [3] => 
    [4] => Path: /usr/lib/ImageMagick-6.2.8/config/configure.xml
    [5] => 
    [6] => Name          Value
    [7] => -------------------------------------------------------------------------------
    [8] => CC            gcc
    [9] => CFLAGS        -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Wall -pthread
    [10] => CONFIGURE     ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --with-modules --with-perl --with-x --with-threads --with-magick_plus_plus --with-gslib --with-wmf --with-lcms --with-rsvg --with-xml --with-perl-options=INSTALLDIRS=vendor CC='gcc -L/builddir/build/BUILD/ImageMagick-6.2.8/magick/.libs' LDDLFLAGS='-shared -L/builddir/build/BUILD/ImageMagick-6.2.8/magick/.libs' --with-windows-font-dir=/usr/share/fonts/default/TrueType --without-dps
    [11] => COPYRIGHT     Copyright (C) 1999-2005 ImageMagick Studio LLC
    [12] => CPPFLAGS      -I/usr/include
    [13] => CXX           g++
    [14] => CXXFLAGS      -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -pthread
    [15] => DEFS          -DHAVE_CONFIG_H
    [16] => DISTCHECK_CONFIG_FLAGS 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables'  --with-quantum-depth=16  --with-dps=no  --with-fpx=no  --with-fontpath=  --with-windows-font-dir==/usr/share/fonts/default/TrueType
    [17] => EXEC-PREFIX   /usr
    [18] => HOST          i686-redhat-linux-gnu
    [19] => LDFLAGS       -L/usr/lib -lfreetype -L/usr/lib
    [20] => LIB_VERSION   0x628
    [21] => LIB_VERSION_NUMBER 6,2,8,0
    [22] => LIBS          -lMagick -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread
    [23] => NAME          ImageMagick
    [24] => PCFLAGS
    [25] => PREFIX        /usr
    [26] => QuantumDepth  16
    [27] => RELEASE_DATE  04/17/08
    [28] => VERSION       6.2.8
    [29] => WEBSITE       http://www.imagemagick.org
)
Why it not use the same ImageMagick ?

Thank you

Re: Background keeps black black black (-background blue)

Posted: 2010-07-08T14:54:14-07:00
by fmw42
Because they are in two different locations and your ISP has linked PHP to the one. Call your ISP and inquire about using the more current version.

Path: /usr/local/lib/ImageMagick-6.6.3/config/configure.xml

vs PHP

Path: /usr/lib/ImageMagick-6.2.8/config/configure.xml

Re: Background keeps black black black (-background blue)

Posted: 2010-07-08T23:12:23-07:00
by lsteamgeo
Hello,

It's my own server, how i can change the path for PHP ?

Thanks

Re: Background keeps black black black (-background blue)

Posted: 2010-07-09T08:56:32-07:00
by fmw42
what did you get from

which convert


you should be able to get PHP exec to get the current version by providing the full path to IM, which appears to be /usr/local/bin

<?php
exec("/usr/local/bin/convert -version",$out,$returnval);
print_r($out[0]);
?>


Otherwise, I would suggest removing all versions of IM and reinstalling from scratch. But I am not a unix guru nor really a PHP expert. So hopefully one of the PHP experts can help further.