Re: imagejpeg, imagecreatefromjpeg both choke

From: Date: Sat, 10 Jan 2009 00:45:54 +0000
Subject: Re: imagejpeg, imagecreatefromjpeg both choke
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-285925@lists.php.net to get a copy of this message
On Fri, 2009-01-09 at 09:25 -0800, Brian Dunning wrote: > Same thing, no output at all. I can access the image directly in my > browser and it's fine. > > On Jan 9, 2009, at 7:52 AM, Zechim wrote: > > > try, > > > > header('Content-type: image/jpeg'); > > $image = imagecreatefromjpeg($your_file); > > imagejpeg($image,"", 100); > > imagedestroy($image); > > > > zechim > > Are you sure it's a valid Jpeg that GD can understand? It may be a Jpeg2000, which GD can't yet handle, as it allows for CMYK images and lossless compression. Ash www.ashleysheridan.co.uk

« previous php.general (#285925) next »