PHP获取Exif缩略图的方法
发布时间:2020-12-13 02:45:18 所属栏目:PHP教程 来源:网络整理
导读:《:PHP获取Exif缩略图的方法》要点: 本文介绍了:PHP获取Exif缩略图的方法,希望对您有用。如果有疑问,可以联系我们。 PHP编程 本篇章节讲解PHP获取Exif缩略图的办法.供大家参考研究.具体实现办法如下: PHP编程 // file to read$file = 'test.jp
《:PHP获取Exif缩略图的方法》要点: PHP编程本篇章节讲解PHP获取Exif缩略图的办法.分享给大家供大家参考.具体实现办法如下: 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编程希望本文所述对大家的php程序设计有所赞助. 编程之家培训学院每天发布《:PHP获取Exif缩略图的方法》等实战技能,PHP、MYSQL、LINUX、APP、JS,CSS全面培养人才。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |