《PHP學(xué)習(xí):PHP獲取Exif縮略圖的方法》要點(diǎn):
本文介紹了PHP學(xué)習(xí):PHP獲取Exif縮略圖的方法,希望對(duì)您有用。如果有疑問,可以聯(lián)系我們。
PHP編程本文實(shí)例講述了PHP獲取Exif縮略圖的辦法.分享給大家供大家參考.具體實(shí)現(xiàn)辦法如下:
PHP編程
// 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';
}
PHP編程希望本文所述對(duì)大家的php程序設(shè)計(jì)有所贊助.
維易PHP培訓(xùn)學(xué)院每天發(fā)布《PHP學(xué)習(xí):PHP獲取Exif縮略圖的方法》等實(shí)戰(zhàn)技能,PHP、MYSQL、LINUX、APP、JS,CSS全面培養(yǎng)人才。
轉(zhuǎn)載請(qǐng)注明本頁網(wǎng)址:
http://www.snjht.com/jiaocheng/9682.html