|
Posted by Richard Lynch on 01/17/05 05:50
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
Navigation:
[Reply to this message]
|