Ha utólag vesszük észre, hogy a kameránk órája rosszul jár...

szimszon küldte be h, 2006-05-15 11:57 időpontban

nem kell elkeseredni, mert létezik egy okos kis eszköz, melynek neve:

exiftags

http://johnst.org/sw/exiftags/

Csak egy példa a http://johnst.org/sw/exiftags/exiftime.1.html oldalról:

exiftime -v+5d -v-7M -fw -tg *.jpg

Ez a parancs átállítja a dátumot +5 nappal és az időt visszaállítja 7 perccel, és az új értékeket visszaírja az Elkészült (Generated) mezőbe, mindezt kérdés nélkül teszi azokon a fájlokon amire illeszkedik a *.jpg.

A kimenet így néz ki:

[geshifilter-code]
example1.jpg:
Image Generated: 2003:09:12 17:05:37 -> 2003:09:17 16:58:37

example2.jpg:
Image Generated: 2004:01:22 17:07:02 -> 2004:01:27 17:00:02
[/geshifilter-code]

kecsi küldte be h, 2006-05-15 12:12 időpontban

Permalink

1x is, köszi a cikket.
Én is láttam már hasonló eszközt emlékeim szerint:
[geshifilter-code]
[2.][kecsi@flatbox]:~> apt-cache search exif
...
exif - command-line utility to show EXIF information in JPEG files
exifprobe - Read metadata from digital pictures
exiftags - Utility to read Exif tags from a digital camera JPEG file
exiftran - transform digital camera jpeg images
exiv2 - EXIF/IPTC metadata manipulation tool
imageindex - generate static HTML galleries from images
jhead - manipulate the non-image part of Exif compliant JPEG files
...
[3.][kecsi@flatbox]:~> apt-cache show exiftran
Package: exiftran
Priority: optional
Section: universe/graphics
Installed-Size: 84
Maintainer: Gerd Knorr <kraxel@debian.org>
Architecture: i386
Source: fbi
Version: 2.01-1.4ubuntu1
Depends: libc6 (>= 2.3.4-1), libexif12, libjpeg62
Filename: pool/universe/f/fbi/exiftran_2.01-1.4ubuntu1_i386.deb
Size: 23170
MD5sum: 731ce79e55c36fee5eef7210394720b5
Description: transform digital camera jpeg images
exiftran is a command line utility to transform digital image jpeg
images. It can do lossless rotations like jpegtran, but unlike
jpegtran it cares about the EXIF data: It can rotate images
automatically by checking the exif orientation tag, it updates the
exif informaton if needed (image dimension, orientation), it also
rotates the exif thumbnail. It can process multiple images at once.
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
[4.][kecsi@flatbox]:~> apt-cache show exiv2
Package: exiv2
Priority: optional
Section: universe/graphics
Installed-Size: 164
Maintainer: KELEMEN Peter <fuji@debian.org>
Architecture: i386
Version: 0.7-9.1ubuntu1
Depends: libc6 (>= 2.3.4-1), libexiv2c2a (= 0.7-9.1ubuntu1), libgcc1 (>= 1:4.0.2), libstdc++6 (>= 4.0.2-4)
Filename: pool/universe/e/exiv2/exiv2_0.7-9.1ubuntu1_i386.deb
Size: 49560
MD5sum: 4c19d7db6ee662aa4900013baeabf65a
Description: EXIF/IPTC metadata manipulation tool
Exiv2 can:
* print the EXIF metadata of JPEG images as summary info, interpreted values,
or the plain data for each tag (here is a sample)
* print the IPTC metadata of JPEG images
* print the JPEG comment of JPEG images
* set, add and delete EXIF and IPTC metadata of JPEG images
* adjust the EXIF timestamp (that's how it all started...)
* rename EXIF image files according to the EXIF timestamp
* extract EXIF metadata, IPTC metadata and JPEG comments from image files and
insert it again
* extract the thumbnail image embedded in the EXIF metadata
* delete the thumbnail or the complete EXIF metadata from an image
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
[/geshifilter-code]
Ez az Exiv2 tud hasonló dolgokat. (Magyar karbantartóval!)

Persze van exiftags ubuntu csomag is:
[geshifilter-code]
[6.][kecsi@flatbox]:~> apt-cache show exiftags
Package: exiftags
Priority: optional
Section: universe/graphics
Installed-Size: 172
Maintainer: Mike Mattice <mattice@debian.org>
Architecture: i386
Version: 0.98-1
Depends: libc6 (>= 2.3.2.ds1-4)
Filename: pool/universe/e/exiftags/exiftags_0.98-1_i386.deb
Size: 51336
MD5sum: cbb386d62a2de0fdbd7fa1d9f3d30dca
Description: Utility to read Exif tags from a digital camera JPEG file
The exiftags utility parses a specified JPEG file or, by default, its
standard input, looking for a JPEG APP1 section containing Exif
(Exchangeable Image File) data. The properties contained in these
data are then printed to the standard output. Digital cameras typically
add Exif data to the image files they produce, containing information
about the camera and digitized image.
Bugs: mailto:ubuntu-users@lists.ubuntu.com
Origin: Ubuntu
[/geshifilter-code]