note 77792 added to function.imagecreatefromstring
| From: | Blizzke at gmail dot com | Date: | Thu, 13 Sep 2007 09:21:14 +0000 |
| Subject: | note 77792 added to function.imagecreatefromstring | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-130450@lists.php.net to get a copy of this message | ||
I use dynamically generated images that require a little touch-up before being displayed. So
essentially I do some base work, then store the images in a memory cache (APC), reload the images
again from the cache later on "into" GD, do final processing and then display the image.
Since I wanted to avoid a lot of disc access I used the output buffering functions:
<?php
// Do your image processing stuff
// Start buffering
ob_start ( );
ImageGD ( $hImage );
$sImage = ob_get_contents ( );
ob_end_clean ( );
// Put stuff into cache
// Reload from cache and recreate image
$hImage = imagecreatefromstring ( $sImage );
// Do final editing stuff and output image
?>
Of course this is a condensed example but I just wanted to share the idea.
----
Server IP: 87.238.162.147
Probable Submitter: 81.165.148.200
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromstring.php
Edit -- https://master.php.net/note/edit/77792
Del: integrated -- https://master.php.net/note/delete/77792/integrated
Del: useless -- https://master.php.net/note/delete/77792/useless
Del: bad code -- https://master.php.net/note/delete/77792/bad+code
Del: spam -- https://master.php.net/note/delete/77792/spam
Del: non-english -- https://master.php.net/note/delete/77792/non-english
Del: in docs -- https://master.php.net/note/delete/77792/in+docs
Del: other reasons-- https://master.php.net/note/delete/77792
Reject -- https://master.php.net/note/reject/77792
Search -- https://master.php.net/manage/user-notes.php