note 23103 deleted from function.imagejpeg by cece
| From: | cece@php.net | Date: | Sat, 16 Aug 2003 20:46:55 +0000 |
| Subject: | note 23103 deleted from function.imagejpeg by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-54459@lists.php.net to get a copy of this message | ||
Note Submitter: TimHyde@C21Technology.com-nospm.com
----
You are the second person today asking about this - its something I tried to do a few months ago but
have only just worked out how to do.
At the point you use ImageJPEG or whatever put:
ob_start(); //Start capturing stdout.
ImageJPEG($imageid); //As though you were going to send to the browser.
$myimage=ob_get_contents(); //Save bit of stdout we want for later.
ob_end_clean(); //Dump the stdout so it does not screw any of the other output we have done.
Now you have your image in $myimage, and can do what you want.
Thats it!