try,

   header('Content-type: image/jpeg');
   $image   = imagecreatefromjpeg($your_file);
   imagejpeg($image,"", 100);
   imagedestroy($image);

zechim

Brian Dunning escreveu:
I'm trying a stripped down test just to try to get this work. I have a valid jpeg on disk:

3.jpg    <- 3316x2220, 3.6 MB

And am trying either of the following:

// This does nothing at all
imagejpeg('3.jpg');

// This displays "failed"
$im = imagecreatefromjpeg('3.jpg');
if(!$im) echo 'failed';

phpinfo() shows GD enabled, JPEG functions enabled, memory_limit at 256M, permissions on the file and the enclosing folder are 777. Any suggestions what else I can try to debug this?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to