使用 gthumb 更改照片的 exif 日期

使用 gthumb 更改照片的 exif 日期

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

我在 gThumb 3.8.0 版中找不到此选项。能否以某种方式更改使用 gThumb 拍摄的照片的 exif 日期?

答案1

要修改图像文件的 Exif(可交换图像文件格式),您可以使用 jhead。

从终端运行以下命令进行安装:

 sudo apt-get install jhead

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

概要

 jhead [ options ] [ file... ]

常规元数据选项

-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 

约会时间

 -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

答案2

看来您可以使用以下内容:

  1. 选择一张照片/照片
  2. 点击“工具”图标
  3. 点击“更改日期”
  4. 标记“评论日期”,并将所需日期填入“以下日期”字段

它在 gThumb 2.13.0 中对我有用

相关内容