note 78357 added to function.exif-thumbnail
| From: | MiguelVitorino at osu1 dot php dot net | Date: | Mon, 08 Oct 2007 13:37:28 +0000 |
| Subject: | note 78357 added to function.exif-thumbnail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131226@lists.php.net to get a copy of this message | ||
use this if you want to embed a thumbnail directly on the HTML page without writing it first to a
file:
<?php
$image = exif_thumbnail($file, $width, $height, $type);
echo "<img width='$width' height='$height'
src='data:image/gif;base64,".base64_encode($image)."'>";
?>
----
Server IP: 194.8.30.16
Probable Submitter: 81.193.184.223
----
Manual Page -- http://www.php.net/manual/en/function.exif-thumbnail.php
Edit -- https://master.php.net/note/edit/78357
Del: integrated -- https://master.php.net/note/delete/78357/integrated
Del: useless -- https://master.php.net/note/delete/78357/useless
Del: bad code -- https://master.php.net/note/delete/78357/bad+code
Del: spam -- https://master.php.net/note/delete/78357/spam
Del: non-english -- https://master.php.net/note/delete/78357/non-english
Del: in docs -- https://master.php.net/note/delete/78357/in+docs
Del: other reasons-- https://master.php.net/note/delete/78357
Reject -- https://master.php.net/note/reject/78357
Search -- https://master.php.net/manage/user-notes.php