Re: imagejpeg() output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux