首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用g姆指更改exif照片日期

用g姆指更改exif照片日期
EN

Ask Ubuntu用户
提问于 2020-11-19 14:06:25
回答 2查看 916关注 0票数 2

根据Gnome中的g拇指帮助部分,应该可以更改拍摄照片的日期( DateTimeOriginal ):“要更改文件修改时间、注释日期或多个文件的Exif DateTimeOriginal标记,请在浏览器视图中选择文件。然后单击主工具栏上的Tools按钮,然后选择Tools▸change date。”

我在gThumb 3.8.0版中找不到这个选项。是否有可能以某种方式更改与gThumb合影的exif日期?

EN

回答 2

Ask Ubuntu用户

发布于 2020-11-19 16:03:08

若要修改图像文件的Exif、可替换图像文件格式,可以使用jhead。

在终端中,通过运行命令安装它:

代码语言:javascript
复制
 sudo apt-get install jhead

jhead用于显示和操作来自数码相机的JPEG图像的Exif头中包含的数据。

提要

代码语言:javascript
复制
 jhead [ options ] [ file... ]

一般元数据选项

代码语言:javascript
复制
-te file --- Transplant Exif header from a JPEG (with Exif header) in file into the image that is manipulated. 
-dc --- Delete comment field from the JPEG header. 
-de --- Delete the Exif header entirely. 
-di --- Delete the IPTC section, if present. 
-dx --- Delete the XMP section, if present. 
-du --- Delete sections of jpeg that are not Exif, not comment, and otherwise not contributing to the image either.
-purejpg --- Delete all JPEG sections that aren't necessary for rendering the image. 
-mkexif ---  Creates minimal exif header. Exif header contains date/time, and empty thumbnail fields only. Date/time set to file time by default. the exif header this way. 
-ce --- Edit the JPEG header comment field.
-cs file --- Save comment section to a file 
-ci file ---  Replace comment with text from file 
-cl string ---  Replace comment with specified string from command line file 

日期/时间

代码语言:javascript
复制
 -ft --- Sets the file's system time stamp to what is stored in the Exif header.
 -dsft --- Sets the Exif timestamp to the file's timestamp. Requires an Exif header to pre-exist. Use -mkexif option to create one if needed.
 -n[format_string] ---  This option causes files to be renamed and/ or mmoved using the date information from the Exif header "DateTimeOriginal" field. 
If the format_string is omitted, the file will be renamed to MMDD-HHMMSS. 
If a format_string is provided, it will be passed to the strftime function as the format string. In addition, if the format string contains '%f', this will substitute the original name of the file (minus extension). '%i' will substitute a sequence number. Leading zeros can be specified like with printf - i.e. '%04i' pads the number to 4 digits using leading zeros.
If the name includes '/', this is interpreted as a new path for the file. If the new path does not exist, the path will be created.
If the target name already exists, the name will be appended with "a", "b", "c", etc, unless the name ends with a letter, in which case it will be appended with "0", "1", "2", etc.
This feature is especially useful if more than one digital camera was used to take pictures of an event. By renaming them to a scheme according to date, they will automatically appear in order of taking in most directory listings and image browsers. Alternatively, if your image browser supports listing by file time, you can use the -ft option to set the file time to the time the photo was taken.

Some of the more useful arguments for strftime are:

%H Hour in 24-hour format (00 - 23)
%j Day of year as decimal number (001 - 366)
%m Month as decimal number (01 - 12)
%M Minute as decimal number (00 - 59)
%S Second as decimal number (00 - 59)
%w Weekday as decimal number (0 - 6; Sunday is 0)
%y Year without century, as decimal number (00 - 99)
%Y Year with century, as decimal number

更多信息:https://linux.die.net/man/1/jhead

票数 0
EN

Ask Ubuntu用户

发布于 2022-07-14 19:11:47

看来您可以使用以下方法:

  1. 选择照片/照片
  2. 点击“工具”图标
  3. 点击“更改日期”
  4. 标记“注释日期”,并将所需日期输入“下一个日期”字段。

在gThumb 2.13.0中,它适用于我

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1293637

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档