如何在python中更改图像捕获日期? [英] How to Change image captured date in python?

查看:93
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆