根据Gnome中的g拇指帮助部分,应该可以更改拍摄照片的日期( DateTimeOriginal ):“要更改文件修改时间、注释日期或多个文件的Exif DateTimeOriginal标记,请在浏览器视图中选择文件。然后单击主工具栏上的Tools按钮,然后选择Tools▸change date。”
我在gThumb 3.8.0版中找不到这个选项。是否有可能以某种方式更改与gThumb合影的exif日期?
发布于 2020-11-19 16:03:08
若要修改图像文件的Exif、可替换图像文件格式,可以使用jhead。
在终端中,通过运行命令安装它:
sudo apt-get install jheadjhead用于显示和操作来自数码相机的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发布于 2022-07-14 19:11:47
看来您可以使用以下方法:
在gThumb 2.13.0中,它适用于我
https://askubuntu.com/questions/1293637
复制相似问题