Re: imagejpeg() output
| From: | Richard Lynch | Date: | Mon, 17 Jan 2005 03:50:02 +0000 |
| Subject: | Re: imagejpeg() output | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206507@lists.php.net to get a copy of this message | ||
Steven Simmons wrote:
> When I get all done, I want to do something like this:
>
> $tempImageData = imagejpeg( $imageResource, '', 75 );
> $outputHandler -> save ( $tempImageData );
>
> Where the $outputHandler is an object that knows how/where to save the
> file.
> However, I've noticed that imagejpeg() only returns a number 1.
With a blank filename, I think imagejpeg() dumps your JPEG to the browser
and returns true/false for success/failure. http://php.net/imagejpeg
You'd need to use http://php.net/ob_start and friends to
do what you're
trying to do.
--
Like Music?
http://l-i-e.com/artists.htm