Изменить дату фотографии в формате exif с помощью gthumb

Согласно разделу справки gthumb в Gnome Help, должна быть возможность изменить дату съемки фотографии (DateTimeOriginal):" Чтобы изменить время модификации файла, даты комментариев или теги Exif DateTimeOriginal для нескольких файлов, выбрать файлы в представлении браузера. Затем нажмите кнопку «Инструменты» на главной панели инструментов и выберите «Инструменты» ▸ «Изменить дату». "

Я не могу найти эту опцию в gThumb версии 3.8.0. Можно ли каким-то образом изменить дату exif, когда фотография была сделана с помощью gThumb ?

1
задан 19 November 2020 в 17:06

1 ответ

Чтобы изменить формат Exif, Exchangeable image file, файла изображения, вы можете использовать jhead.

Из терминала установите его, выполнив команду:

 sudo apt-get install jhead

jhead используется для отображения и управления данными, содержащимися в заголовке Exif изображений JPEG с цифровых камер.

Краткий обзор

 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

0
ответ дан 19 November 2020 в 16:03

Другие вопросы по тегам:

Похожие вопросы: