Re: imagejpeg, imagecreatefromjpeg both choke

From: Date: Fri, 09 Jan 2009 15:52:26 +0000
Subject: Re: imagejpeg, imagecreatefromjpeg both choke
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-285841@lists.php.net to get a copy of this message
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?


« previous php.general (#285841) next »