From c991f19c79d156184c00c4ebf98f883e4d88845c Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 16 Aug 2002 16:43:45 +0000 Subject: [PATCH] example with image_type_to_mime_type git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@92295 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/exif-thumbnail.xml | 37 +++++++++++++++++--- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/reference/image/functions/exif-thumbnail.xml b/reference/image/functions/exif-thumbnail.xml index 692d148f16..8bccbc4460 100644 --- a/reference/image/functions/exif-thumbnail.xml +++ b/reference/image/functions/exif-thumbnail.xml @@ -1,5 +1,5 @@ - + @@ -13,6 +13,7 @@ stringfilename int&width int&height + int&imagetype exif_thumbnail reads the embedded thumbnail of @@ -20,12 +21,40 @@ will be returned. - Both parameters width and height are - available since PHP 4.3 and return the size of the thumbnail. It is possible that + The parameters width, height and + imagetype are available since PHP 4.3 and return the size + of the thumbnail as well as its type. It is possible that exif_thumbnail cannot create an image but determine its size. In this case the return value is &false; but width and height are set. + + If you want to deliver thumbnails through this function you should send the + mimetype information using header function. The following + example demonstrates this: + + <function>exif_thumbnail</function> example + + +]]> + + + Starting from version PHP 4.3 the function exif_thumbnail can return thumbnails in TIFF format. @@ -41,7 +70,7 @@ This function does not require the GD image library. - See also exif_read_data. + See also exif_read_data and image_type_to_mime_type.