A
alxf1
Guest
I have a problem with ImageMagick and PHP on Plesk
when i'm trying to resize an image from shell (as root) it works perfectly ----- /usr/bin/convert -resize 120x90 source target.jpg
but when I'm trying to make the same through a PHP script it's not working!!!
/usr/bin/convert -version
if I'm trying to execute command above through a php script (web) it will work and return version info... but if i'm trying to resize an image it's not working....
open_basedir is set to none in vhost.conf for the httpdocs directory correctly... and that's seen when you run /usr/bin/convert -version from php...
I had the same problem with newer version of ImageMagick...
----------------------------------
# /usr/bin/convert -version
Version: ImageMagick 6.0.7 05/26/05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
when i'm trying to resize an image from shell (as root) it works perfectly ----- /usr/bin/convert -resize 120x90 source target.jpg
but when I'm trying to make the same through a PHP script it's not working!!!
/usr/bin/convert -version
if I'm trying to execute command above through a php script (web) it will work and return version info... but if i'm trying to resize an image it's not working....
open_basedir is set to none in vhost.conf for the httpdocs directory correctly... and that's seen when you run /usr/bin/convert -version from php...
I had the same problem with newer version of ImageMagick...
----------------------------------
# /usr/bin/convert -version
Version: ImageMagick 6.0.7 05/26/05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC