exiftool¶
How i edit, manipulates, injecting and writing and everything yuo can imagine about metadata will be found here with Phil Harvey's exiftool
written in perl
Replace existing keyword list with two new keywords ("EXIF" and "editor").¶
Copy a source image to a new file, and add a keyword ("word") to the current list of keywords.¶
Delete Credit information from all files in a ${PATH}ectory where the Credit value was "xxx".¶
Write alternate language for XMP:Description, using HTML character escaping to input special characters.¶
Delete all meta information from an image.¶
!!! Note: "You should NOT do this to RAW images (except DNG) since proprietary RAW image formats often contain information in the makernotes that is necessary for converting the image"
Delete all meta information from an image and add a comment back in.¶
Note that the order is important: -comment=
lonely-all=
would also delete the new comment.
Delete all meta information except JFIF group from an image.¶
Delete Photoshop meta information from an image (note that the Photoshop information also includes IPTC).¶
Adjust original date/time of all images in directory " ${PATH}" by subtracting one hour and 30 minutes.¶
- This is equivalent to "-DateTimeOriginal-=1.5". See Image::ExifTool::Shift.pl for details.
Add 3 hours to the CreateDate and ModifyDate timestamps of two images.¶
Shift the values of DateTimeOriginal, CreateDate and ModifyDate¶
- Forward by 1 hour and 30 minutes for all Canon images in a ${PATH}ectory.
- (The AllDates tag is provided as a shortcut for these three tags, allowing them to be accessed via a single tag.)
Set all dates to 2012¶
Create xmp files¶
Set City¶
Print Megapixels¶
Print GPS info¶
Remove all gps info¶
remove ALL metadata run both¶
Include some cool info¶
$gpsPosition = $(exiftool -s -s -s -Composite:GPSPosition TestPic.jpg)
echo "This picture was taken at $gpsPosition"
Timeshift Photos by One Year¶
Rename files to datestamp¶
Display all compoisites¶
Print values by alphanet sorted¶
Rename Files to With Milliseconds¶
exiftool -v '-Filename<${datetimeoriginal}${subsectimeoriginal;$_.=0 x(3-length)}.%e' -d %Y%m%d_%H%M%S ${PATH}
Set Date/Time Original date:¶
Edit File Modification Date/Time to same date as "date/time original"¶
List all dates¶
Update any photo that doesn't have DateTimeOriginal to have it based on file modify date¶
exiftool '-datetimeoriginal<filemodifydate' -if '(not $datetimeoriginal or \
($datetimeoriginal eq "0000:00:00 00:00:00")) and ($filetype eq "JPEG")' ${PATH}
The command alone will put the full filename in the comments.¶
- If you want to add the filename without the extension, add the example exiftool config file found here
find "${PATH} -name "*.jpg" | while read filename; do
exiftool "-AllDates=1986:11:05 12:00:00" "${FILENAME}";
done
Set File Modification Date/Time¶
exiftool "-FileModifyDate<XMP:DateTimeOriginal" \
"-FileModifyDate<EXIF:CreateDate" \
"-FileModifyDate<XMP:CreateDate" \
"-FileModifyDate<$IPTC:DateCreated $IPTC:TimeCreated" \
"-FileModifyDate<EXIF:DateTimeOriginal" ${FILENAME}
Last update: August 10, 2022
Created: August 10, 2022
Created: August 10, 2022