[magick-users] strange prob with convert and php as frontend

cuongvt freebsd at vuhanhnhu.com
Sat Dec 20 18:22:58 PST 2008



cuongvt wrote:
> 
> I'm in freebsd 7.0, imagemagick 6.4.7, php 5.2.8.
> If I execute below very simple php script (named 'convert.php') from
> web-base: http://localhost/convert.php, it not converted image at all,
> but if I execute from shell: 'php convert.php', it converted original
> image for me.
> Very strange. Could anyone tell me where's I'm wrong?
> Below is my simple php script:
> <?php
>  $im_path="/usr/local/bin";
> system("$im_path/convert image.JPG hello.jpg ");
> ?>
> 
I tried in In centos 5.2 with default installed php 5.1.6, imagemagick 6.2
also.
this script converted image well.
And in freebsd, If I slightly modofied as followed, IM can displayed
converted image on the web:
<?php
header('Content-Type: image/jpeg');
$im_path="/usr/local/bin";
system("$im_path/convert image.JPG jpg:- ");
?>

But below script still not converted/produced image at all :(
<?php
$im_path="/usr/local/bin";
system("$im_path/convert image.JPG hello.jpg ");
?>
Could anyone know do I missed something?
regards
-- 
View this message in context: http://www.nabble.com/strange-prob-with-convert-and-php-as-frontend-tp21110912p21111310.html
Sent from the Magick-users mailing list archive at Nabble.com.



More information about the Magick-users mailing list