欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

PHP獲取Exif縮略圖的方法

 更新時(shí)間:2015年07月13日 15:01:59   作者:不吃皮蛋  
這篇文章主要介紹了PHP獲取Exif縮略圖的方法,實(shí)例分析了php針對(duì)圖片的讀取及返回MIME類型的相關(guān)技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了PHP獲取Exif縮略圖的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:

// 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';
}

希望本文所述對(duì)大家的php程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論