如何在python中更改图像捕获日期? [英] How to Change image captured date in python?
问题描述
我有超过500张图像(png/jpg)由于相机日期设置错误而具有错误的拍摄日期(拍摄日期).我将照片移到移动设备上,并且移动画廊根据拍摄日期"对照片进行排序.我希望所有照片按顺序显示.
I have over 500 images (png /jpg) having wrong captured date (Date taken) because of wrong camera date settings. I moved photos to mobile and mobile gallery sorts photos on the basis of 'Date Taken'. I want all photos to be displayed in order.
那么如何使用python脚本更改捕获日期(拍摄日期)?
So how can I change captured date (Date taken) using python script?
推荐答案
无需真正编写Python,您可以使用jhead
在终端中的一行中完成此操作.例如,将所有EXIF时间向前调整1小时
No real need to write Python, you can do it in one line in the Terminal using jhead
. For example, adjust all EXIF times forward by 1 hour
jhead -ta+1:00 *.jpg
复制文件并首先对其进行测试!
Make a COPY of your files and test it out on that first!
从此处下载.
这篇关于如何在python中更改图像捕获日期?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!