您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP获取Exif缩略图的方法_PHP

2025/7/20 5:21:23发布25次查看
本文实例讲述了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_thumbnailif ($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程序设计有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product