Masowa zmiana EXIF

Grafika, film, dźwięk.
Awatar użytkownika
ddr
Piegowaty Guziec
Piegowaty Guziec
Posty: 13
Rejestracja: 15 wrz 2007, 00:10
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: GNOME
Architektura: x86

Masowa zmiana EXIF

Post autor: ddr »

Znacie jakiś program do masowej zmiany danych EXIF w plikach zdjęć?
Dokładnie chodzi o przesunięcie czasu wykonania zdjęcia o zadaną wartość (np. 1234 dni 10:54). Zdjęć jest ponad kilkaset, także ręczna zmiana zdecydowanie odpada.
Nie pogardzę też jakimś windowsowym programem.
Awatar użytkownika
karmelek
Przyjaciel
Przyjaciel
Posty: 883
Rejestracja: 10 lut 2007, 17:45
Płeć: Mężczyzna
Wersja Ubuntu: 11.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: Masowa zmiana EXIF

Post autor: karmelek »

Na Windowsa był EXIFer chyba
Wszystkich moderatorów Bóg po śmierci zabiera do nieba, żeby ci dwadzieścia cztery godziny na dobę moderowali modlitwy do niego.
http://karmelek.wordpress.com
inny OS=debian lenny
Awatar użytkownika
Dwimenor
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1260
Rejestracja: 18 mar 2008, 16:14
Płeć: Mężczyzna
Wersja Ubuntu: 13.10
Architektura: x86_64

Odp: Masowa zmiana EXIF

Post autor: Dwimenor »

Zainstaluj exiftool (paczka libimage-exiftool-perl). Program pozwala na manipulację metadanymi plików graficznych. Reszta to puszczenie go w pętli i odczekanie trochę. Nie wiem jak tam u ciebie z znajomością powłoki. Jeżeli nie dasz rady sam napisać skryptu to podeślij jedno zdjęcie i opisz dokładnie co chcesz zrobić. Coś się pokombinuje.

Dokumentacja (man exiftool) jest całkiem bogata i zawiera wiele przykładów, zarówno odczytu jak i zapisu metadanych.
Poniższe zdanie jest fałszywe.
Powyższe zdanie jest prawdziwe.
Awatar użytkownika
ddr
Piegowaty Guziec
Piegowaty Guziec
Posty: 13
Rejestracja: 15 wrz 2007, 00:10
Płeć: Mężczyzna
Wersja Ubuntu: 10.10
Środowisko graficzne: GNOME
Architektura: x86

Odp: Masowa zmiana EXIF

Post autor: ddr »

Exifer próbowałem, ale ma jakieś problemy z działaniem.
Co do exiftoola to zobacze co z nim i spróbuje skrobnać jakiś skrypt.


PS. Exioftool dał radę, nawet bez pisania skryptu. Dzięki za pomoc.
Awatar użytkownika
3miel
Wytworny Kaczor
Wytworny Kaczor
Posty: 311
Rejestracja: 19 kwie 2006, 18:51
Płeć: Mężczyzna
Wersja Ubuntu: 10.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: Masowa zmiana EXIF

Post autor: 3miel »

poszukaj w aptitude/apt-get jhead, ja korzystam z tego głównie, ale kiedyś zmieniałem też czas i datę masowo

Kod: Zaznacz cały

cat .bashrc | grep  jheadautorenamebydate-date 
alias jheadautorenamebydate-date='jhead -autorot -ft -nf%Y.%m.%d_%H.%M.%S *'

Kod: Zaznacz cały

jhead -h
...
DATE / TIME MANIPULATION:
  -ft        Set file modification time to Exif time
  -dsft      Set Exif time to file modification time
  -n[format-string]
             Rename files according to date.  Uses exif date if present, file
             date otherwise.  If the optional format-string is not supplied,
             the format is mmdd-hhmmss.  If a format-string is given, it is
             is passed to the 'strftime' function for formatting
             In addition to strftime format codes:
             '%f' as part of the string will include the original file name
             '%i' will include a sequence number, starting from 1. You can
             You can specify '%03i' for example to get leading zeros.
             This feature is useful for ordering files from multiple digicams to
             sequence of taking.  Only renames files whose names are mostly
             numerical (as assigned by digicam)
             The '.jpg' is automatically added to the end of the name.  If the
             destination name already exists, a letter or digit is added to 
             the end of the name to make it unique.
             The new name may include a path as part of the name.  If this path
             does not exist, it will be created
  -nf[format-string]
             Same as -n, but rename regardless of original name
  -a         (Windows only) Rename files with same name but different extension
             Use together with -n to rename .AVI files from exif in .THM files
             for example
  -ta<+|->h[:mm[:ss]]
             Adjust time by h:mm backwards or forwards.  Useful when having
             taken pictures with the wrong time set on the camera, such as when
             traveling across time zones or DST changes. Dates can be adjusted
             by offsetting by 24 hours or more.  For large date adjustments,
             use the -da option
  -da<date>-<date>
             Adjust date by large amounts.  This is used to fix photos from
             cameras where the date got set back to the default camera date
             by accident or battery removal.
             To deal with different months and years having different numbers of
             days, a simple date-month-year offset would result in unexpected
             results.  Instead, the difference is specified as desired date
             minus original date.  Date is specified as yyyy:mm:dd or as date
             and time in the format yyyy:mm:dd/hh:mm:ss
  -ts<time>  Set the Exif internal time to <time>.  <time> is in the format
             yyyy:mm:dd-hh:mm:ss
  -ds<date>  Set the Exif internal date.  <date> is in the format YYYY:MM:DD
             or YYYY:MM or YYYY
....
najpierw dziele fotki na dzień, z przełącznikiem -da ustawiałem dobrą datę, a potem z -ta przestawiałem czas głównie masowo, z danego dnia
jeśli masz problemy to potrenuj na jakiś kopiach
compal: fl92 gf8600gt m 512mb 1680x1050 - t9300@2500 - 200gb 7200rpm - 2gb+1gb 667 - 4965abg - bt - a4tech xl 750f
ODPOWIEDZ

Wróć do „Muzyka, filmy, zdjęcia, grafika”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 9 gości