<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Code The World — Exif thumbnail]]></title>
	<link rel="self" href="https://codetheworld.com/extern.php?action=feed&amp;tid=17&amp;type=atom" />
	<updated>2008-06-15T02:58:48Z</updated>
	<generator>PunBB</generator>
	<id>https://codetheworld.com/viewtopic.php?id=17</id>
		<entry>
			<title type="html"><![CDATA[Exif thumbnail]]></title>
			<link rel="alternate" href="https://codetheworld.com/viewtopic.php?pid=24#p24" />
			<content type="html"><![CDATA[<p>This snippet shows how to extract the EXIF thumbnail of a picture. <br /></p><div class="codebox"><pre><code>// file to read
$file = &#039;test.jpg&#039;;
 
$image = exif_thumbnail($file, $width, $height, $type);
 
// width, height and type get filled with data
// after calling &quot;exif_thumbnail&quot;
 
if ($image) {
    // send header and image data to the browser:
    header(&#039;Content-type: &#039; .image_type_to_mime_type($type));
    print $image;
}
else {
    // there is no thumbnail available, handle the error:
    print &#039;No thumbnail available&#039;;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[hobano]]></name>
				<uri>https://codetheworld.com/profile.php?id=17</uri>
			</author>
			<updated>2008-06-15T02:58:48Z</updated>
			<id>https://codetheworld.com/viewtopic.php?pid=24#p24</id>
		</entry>
</feed>
