时时商务社区

标题: PHP获取Exif缩略图的方法 [打印本页]

作者: 阿情    时间: 2018-2-14 05:44

            本文实例讲述了PHP获取Exif缩略图的方法。分享给大家供大家参考。具体实现方法如下:
// 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程序设计有所帮助。
            
            
您可能感兴趣的文章:
  • flex压缩图片exif信息(作者/相机)丢失问题解决
  • Python读取图片EXIF信息类库介绍和使用实例
  • PHP实现显示照片exif信息的方法
  • PHP exif扩展方法开启详解
  • python通过pil模块获得图片exif信息的方法
  • python用来获得图片exif信息的库实例分析
  • Java读取图片EXIF信息的方法
  • iOS开发中用imageIO渐进加载图片及获取exif的方法
  • Android开发之使用ExifInterface获取拍照后的图片属性
  • Android下的EXIF是什么
            




    欢迎光临 时时商务社区 (http://bbs.4435.cn/) Powered by Discuz! X3.2