note 104402 added to function.imagegd2
| From: | Nick at osu1 dot php dot net | Date: | Mon, 13 Jun 2011 19:49:41 +0000 |
| Subject: | note 104402 added to function.imagegd2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180495@lists.php.net to get a copy of this message | ||
You can use this function in combination with imagecreatefromstring() to clone the gd resource with
minimum fuss (no writing to tmp file):
<?php
function cloneGd($gd)
{
ob_start();
imagegd2($gd);
return imagecreatefromstring(ob_get_clean());
}
?>
----
Server IP: 92.48.74.199
Probable Submitter: 94.196.6.58
----
Manual Page -- http://www.php.net/manual/en/function.imagegd2.php
Edit -- https://master.php.net/note/edit/104402
Del: integrated -- https://master.php.net/note/delete/104402/integrated
Del: useless -- https://master.php.net/note/delete/104402/useless
Del: bad code -- https://master.php.net/note/delete/104402/bad+code
Del: spam -- https://master.php.net/note/delete/104402/spam
Del: non-english -- https://master.php.net/note/delete/104402/non-english
Del: in docs -- https://master.php.net/note/delete/104402/in+docs
Del: other reasons-- https://master.php.net/note/delete/104402
Reject -- https://master.php.net/note/reject/104402
Search -- https://master.php.net/manage/user-notes.php