note 23103 added to function.imagejpeg

From: Date: Tue, 09 Jul 2002 15:52:12 +0000
Subject: note 23103 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-32801@lists.php.net to get a copy of this message
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! -- http://www.php.net/manual/en/function.imagejpeg.php http://master.php.net/manage/user-notes.php?action=edit+23103 http://master.php.net/manage/user-notes.php?action=delete+23103 http://master.php.net/manage/user-notes.php?action=reject+23103

« previous php.notes (#32801) next »