How to get EXIF thumbnails in PHP to get EXIF thumbnail images
In this paper, we describe the method of obtaining EXIF thumbnail in PHP. Share to everyone for your reference. The implementation method is as follows:
File to Read$file = ' test.jpg '; $image = Exif_thumbnail ($file, $width, $height, $type);//width, height and type get fil LED 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 ';}
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1031488.html www.bkjia.com true http://www.bkjia.com/PHPjc/1031488.html techarticle php Get Exif thumbnail method, get EXIF thumbnail This article describes how PHP gets the exif thumbnail image. Share to everyone for your reference. The specific implementation method is as follows://file to ...