Skip to forum content
Code The World
We are a group of graphic designers and web developers trying to create a social network for the people, and not for the commercialization of said social network.
You are not logged in. Please login or register.
Pages 1
You must login or register to post a reply
- hobano
- New member
- Offline
- Registered: 2008-06-15
- Posts: 4
Topic: Exif thumbnail
This snippet shows how to extract the EXIF thumbnail of a picture.
// file to read
$file = 'test.jpg';
$image = exif_thumbnail($file, $width, $height, $type);
// width, height and type get filled with data
// after calling "exif_thumbnail"
if ($image) {
// send header and image data to the browser:
header('Content-type: ' .image_type_to_mime_type($type));
print $image;
}
else {
// there is no thumbnail available, handle the error:
print 'No thumbnail available';
}
Posts: 1
Pages 1
You must login or register to post a reply
Powered by PunBB, supported by Informer Technologies, Inc.
Currently used extensions: pun_admin_manage_extensions_improved, pun_poll, pun_quote, pun_bbcode, pun_repository, pun_tags, pun_admin_add_user, google_analytics, pun_eggdrop, pun_recaptcha.
Copyright © 2007 - 2025 CodeTheWorld