This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
links:photo [2015/12/30 14:29] jdg [Get EXIF and Set Creation DateTime] |
links:photo [2019/03/06 07:33] (current) |
||
---|---|---|---|
Line 28: | Line 28: | ||
==== Get EXIF and Set Creation DateTime ==== | ==== Get EXIF and Set Creation DateTime ==== | ||
- | * use ImageMagick tool to read EXIF in JPG file \\ <code> | + | * use [[http://www.imagemagick.org/Usage/photos/|ImageMagick]] tool to read EXIF in JPG file \\ <code> |
> identify -verbose IMG_8148.JPG | grep DateTimeOriginal | > identify -verbose IMG_8148.JPG | grep DateTimeOriginal | ||
exif:DateTimeOriginal: 2015:11:09 17:18:55 | exif:DateTimeOriginal: 2015:11:09 17:18:55 | ||
</code> | </code> | ||
+ | * [[http://www.sno.phy.queensu.ca/~phil/exiftool/|exiftool]] (not part of ImageMagick) | ||
+ | * {{:links:exiftool.txt|manual}} | ||
+ | * <code> | ||
+ | # example | ||
+ | exiftool "-FileName<CreateDate" -d "%Y%m%d_%H%M%S.%%e" DIR | ||
+ | # keep original filename: | ||
+ | exiftool '-FileName<CreateDate' -d d%Y%m%d-%H%M%S-%%f.%%e DIR | ||
+ | </code> | ||
+ | * http://search.cpan.org/dist/Image-ExifTool/ |