exif_thumbnail
Retrieve the embedded thumbnail of a TIFF or JPEG image
&reftitle.description;
stringexif_thumbnail
stringfilename
intwidth
intheight
intimagetype
exif_thumbnail reads the embedded thumbnail of a
TIFF or JPEG image.
If you want to deliver thumbnails through this function, you should send
the mimetype information using the header function.
It is possible that exif_thumbnail cannot create an
image but can determine its size. In this case, the return value is
&false; but width and height
are set.
&reftitle.parameters;
filename
The name of the image file being read. This image contains an
embedded thumbnail.
width
The return width of the returned thumbnail.
height
The returned height of the returned thumbnail.
imagetype
The returned image type of the returned thumbnail. This is either
TIFF or JPEG.
&reftitle.returnvalues;
Returns the embedded thumbnail, or &false; if the image contains no
thumbnail.
&reftitle.changelog;
&Version;
&Description;
4.3.0
The optional parameters width,
height, and imagetype
all became available.
4.3.0
May return thumbnails in the TIFF format.
&reftitle.examples;
exif_thumbnail example
]]>
&reftitle.seealso;
exif_read_data
image_type_to_mime_type