Get image create date in PHP GD

我的梦境 提交于 2019-12-11 02:47:39

问题


I have a case: I took a photo. Now I want to read date of the created photo (the shooting photo date) using GD.

Is it possible to get this date created from the image metadata?


回答1:


Use exif_read_data() function instead, you will get everything you'd need :)

http://php.net/manual/en/function.exif-read-data.php

Look for the particular Exif data with a key DateTimeOriginal.

Make sure that the software you are using are not stripping the actual exif. For example if you are using Photoshop, doing a "Save as JPG" retains the exif but "Export for web and devices" does not.



来源:https://stackoverflow.com/questions/19692596/get-image-create-date-in-php-gd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!