Questions tagged [exiftool]
ExifTool is a platform-independent library & CLI application for reading/writing metadata in a wide variety of file types. Most notably, ExifTool can modify EXIF tags in digital images, and ID3 tags in songs.
76
questions
3
votes
1
answer
7k
views
Changing the DPI in a JPEG without re-encoding? with ImageMagick or something else
Sometimes I have image files which I want to contain a certain DPI setting. Note that I mean just the DPI value, i.e. just the value in the image's metadata. I don't want to resize the actual image. ...
-2
votes
1
answer
78
views
Video to geotagged images using powershell
I have an MP4 from a GoPro with a gpstrack included. Now I am trying to extract a geotagged image sequence from that video.
For that I am currently using FFmpeg and exiftool; I'm open to better ...
1
vote
2
answers
188
views
Is it possible to change tags that are not writable by exiftool?
I have a (Dolby Vision) video file test.mp4 but has hev1 in video track Codec ID (ffmpeg) or Compressor ID (exiftool)
exiftool -CompatibleBrands -CompressorID test.mp4
Compatible Brands :...
5
votes
1
answer
6k
views
What is the difference between the EXIF tags CreateDate, CreationDate, etc.?
When using exiftool to analyze some videos that I have, I noticed many date tags inherent to the creation of the video itself (so not dates like the last access or modification dates). Namely, here ...
1
vote
1
answer
202
views
Safely strip metadata from images in a folder, add a value to some tags
I have a directory structure that contains a lot of JPEG/JPG, PNG, SVG, and WEBP images in several subdirectories. I want to strip all metadata from these images except anything that would be ...
13
votes
2
answers
5k
views
How to prevent recovering metadata when using ExifTool?
When using exiftool -all:all= file.pdf this message appears:
ExifTool PDF edits are reversible. Deleted tags may be recovered!
Can tag recovery be prevented when ExifTool is used? Can it just wipe/...
1
vote
2
answers
6k
views
How to change mp4 windows file creation date to create date from QuickTime
I have seen many similar questions to this, but can't sus out this exact problem:
I take a lot of GoPro videos during my motorcycle adventures. While on the road I will upload video files to a cloud ...
0
votes
0
answers
100
views
Geotag with exiftool failed
After looking at examples in man exiftool, it seemed the right command would be
exiftool -geotag dir-1/…175814.gpx -geosync=-3600 dir-2
All 36 photos (.jpg) and videos (.mp4) were taken with the ...
1
vote
2
answers
611
views
Run command for multiple directories?
I have a list of directories in a text file for which I want to run an exiftool command. Is there a built-in way in exiftool to do so or do I have to use shell scripting for that?
3
votes
3
answers
6k
views
How to set an image's date and time with timezone with exiftool?
ExifTool is a powerful tool for modifying meta data on images. What is the simple command line to specify the date and time for an image?
4
votes
2
answers
7k
views
Author of the document a pdf was created from?
I teach in a college, and a wee while ago I had some fun spotting students who copied other students work by simply taking their word file and "paraphrasing" the sentences. So student A would ...
3
votes
1
answer
5k
views
exiftool width and height of resized images not match the new sizes
$ convert original.jpg -resize 50% test.jpg
$ exiftool test.jpg
...
Exif Image Width : 1200
Exif Image Height : 1600
Image Width : 600
Image Height ...
1
vote
1
answer
518
views
Using REGEX only, copy last (delimited) word to every comma separated value?
I have a series of lines with arbitrary number of comma separated values, and then a hash marked comment. The challenge is, using only PCRE2 regex for use in PERL, to do the following:
Store the ...
0
votes
1
answer
335
views
How to set the location of an image with exiftool?
ExifTool is a powerful tool for modifying meta data on images. What is the simple command line to specify the location for an image?
0
votes
1
answer
52
views
exiftool rename if autofocus is off
unfortunately I have created a small problem during my vacation. I did not notice that the autofocus was turned off on a camera lens. This, of course, I created some possibly blurred images. Well ...
1
vote
1
answer
204
views
Formatting Lat/Long via an exiftool format file
I used
exiftool -c "%.6f" -p ~/bin/gpx.fmt (dir) > (file).gpx
to create a GPX file for all ages in the directory.
I copied ~/bin/gpx.fmt from GitHub
With the syntax I used, -c is ignored ...
1
vote
3
answers
2k
views
delete one specific tag in metadata completely
A photo has many tags and values, one of which is:
Contrast : Normal
As a test to remove a tag, I ran the following:
exiftool -Contrast= -overwrite_original myfile.jpg
...but ...
2
votes
1
answer
413
views
Check whether output is smaller than input? (ffmpeg conversion with batch)
I've made a batch file that's able to compress many png files (with ffmpeg) as well as remove any unneeded metadata (using exiftool).
@echo off
title Compress png to png
color 08
FOR %%a IN (*.png) ...
0
votes
0
answers
147
views
Calling exiftool on a huge number of recovered images from photorec
I am trying to recover images of the last 20 years from a friend.
She moved all recent files to trash, then emptied the trash.
Those images were lying on the system partition, so photorec found a huge ...
0
votes
1
answer
835
views
How to extract the filename without the extension and write that to a tag using ExifTool?
I'm using ExifTool on Linux and am working with some MP4 video files. I want to add each file's respective filename as a metadata comment (using the -Comment tag). For example, suppose I have a file ...
25
votes
3
answers
28k
views
Change rotation flag in MP4 video (without losing metadata)
I just want to change the rotation flag in a .mp4 video file.
Many similar questions exist, most answers suggest using
ffmpeg -i input.mp4 -map_metadata 0 -metadata:s:v rotate=90 -codec copy output....
0
votes
1
answer
472
views
Why does exiftool make the current date and time shift?
When I try to shift the date and time using exiftool on both OS X and Windows I get the same outcome: the current date and time changed instead of adding 2m 18d 11hr 14m 0s.
exe file and command run ...
2
votes
1
answer
1k
views
How to append a string to a tag with exiftool
Doing exiftool -Comment='This is a new comment' dst.jpg replaces any comment already present. How can I add the string instead?
0
votes
1
answer
435
views
Format the ExifTool output of a filename list from an -if statement
I am running this command to display a list of files with a value of "rotate" contained in the -Orientation tag:
exiftool -if "$orientation =~ /rotate/i" -orientation *.jpg
The ...
0
votes
1
answer
256
views
EXIFTOOL set MP4 to earliest date recursive - Can it be done?
I've been wrangling nearly 40TBs of videos that were recovered from 2 crashed RAIDs. Nearly all files have correct EncodeDate, TrackCreateDate and/or MediaCreateDate, but I'm biff'd on a mass rename ...
0
votes
0
answers
30
views
Move every picture taken outside of interval to a subfolder
I am trying to figure out a solution for moving every picture taken outside of a interval (let's say every 2 seconds) into a new subfolder.
Example:
I have 5 pictures with the following meta info:
...
15
votes
5
answers
12k
views
How to automatically rotate images based on EXIF data?
I know how to do it manually. Now I would like to automate that based on EXIF data.
I already have exiftool installed, but looks like it can only read the data, but can not rotate the image.
There is ...
0
votes
0
answers
69
views
Bulk exif tags bat script not working peoperly
I have a batch script to set XMP:Subject Exif tags on pictures in bulk.
tags.txt has all links of the pages and the tags. Links and Tags are separated by =.
This script should divide the URL and Tags ...
5
votes
4
answers
17k
views
Changing dates on mp4 metadata
I've been trying to change the metadata dates in mp4 files using exiftool. I can only get it to change the "Date" (whatever that is) and "Media created" fields as displayed in Windows file explorer. ...
0
votes
1
answer
396
views
make exiftool error if input file is not an image
I just tried to get the embedded color profile of a csv file, which returns no input
$ exiftool -a -S -G0 -ColorSpace -InteropIndex -WhitePoint -PrimaryChromaticities -Gamma -ICC_Profile:all my_data....
1
vote
0
answers
50
views
Bash script whitespace compliant
I have an huge amount of file to organize, they are a JPG files in an absurd folders structure.
I need to move all files from its actual position to an organized folder structure, saving its actually ...
24
votes
3
answers
27k
views
How can I modify the EXIF orientation tag of an image?
I want to change the EXIF orientation tag in my JPEG images but without actual rotating of them. I want to do this to use them as a test case for an application I made.
How I can do that in Linux? ...
0
votes
1
answer
714
views
Using exiftool to append text to a filename after it's completed
I have long used wonderful exiftool to strip out exif data from images. Up to now, I've always done that in the same directory. Now I'd like to make it place the exif-stripped file in a different ...
0
votes
2
answers
372
views
Removing PDF Subject Tag with Exiftool
Can someone help me understand why the following command will overwrite the Title tag, but not delete the subject tag of my PDF file?
exiftool -Title="My Title" -Subject= myfile.pdf
Thanks!
R.
1
vote
1
answer
113
views
Remove Page Range Metadata from PDF
I've merged multiple PDFs that were generated with Latex. These PDFs contain page ranges, meaning "real page" 40 and "real page 41" are simple transitions - e.g. adding an item to a bullet list. So ...
5
votes
2
answers
9k
views
Edit "Media Duration" metadata on MP4 file
I have some video files which were converted to MP4, but not quite correctly. When I examine one with exiftool, I see these metadata values:
Duration : 0:11:23
Track Duration ...
2
votes
1
answer
3k
views
ExifTool command for batch copying .mp4 metadata from files to files?
I was surfing the web for a solution, but no thread was working for me.
I've compressed multiple mp4 videoclips using HandBrake, thus loosing dateModified etc.
What I would want to have is a command ...
1
vote
2
answers
842
views
Copying unknown tags with ExifTool
I have some images which I edited in GIMP, which lost some EXIF metadata in the process (and some EXIF tags added, too), so when I'm done I copy all the metadata from the original image into the ...
1
vote
2
answers
1k
views
Can I get exiftool to list which types of metadata each file has?
Some types of files can have more than one type of metadata. For instance, a single JPEG file could have Exif, IPTC, and XMP metadata.
Exiftool seems to be the most powerful metadata extraction and ...
0
votes
1
answer
1k
views
How do you remove a specific line/key of metadata from a pdf
I have read in multiple forums that the Universal PDF portion of the metadata of pdf books are malformed and cause errors when trying to read from it. How do you remove a specific key and value from ...
1
vote
1
answer
332
views
What information is needed within an XMP tag value?
I'm adding XMP metadata to a large number of TIFF files. Initially I was doing this with GIMP, but upon searching for a more efficient way to edit the metadata I found ExifTool. Looking at the tags ...
0
votes
1
answer
997
views
Is there a way to get Exiftool to recursively scan the metadata of files embedded within files?
Certain media formats can contain other entire media formats fully embedded.
I believe some image formats contain thumbnail images which are themselves full image files rather than just the bitmaps. ...
4
votes
2
answers
3k
views
How to add missing file extensions for multiple files using ExifTool in Windows
I lost only the file extensions at the end of the file names for a few thousand .docx and .pdf files. So how do I attach them in one batch at the end of the existing FileName using ExifTool ?
Note 1. ...
0
votes
1
answer
123
views
Unable to access config'd custom xmp namespace in exiftool
Though some form of me just not really getting it, I am unable to write this custom XMP namespace I've made in my config file. Below is the file.
%Image::Exiftool::UserDefined = (
'Image::ExifTool::...
0
votes
0
answers
766
views
exiftool DPI disagrees with image properties on Windows 10 and the file linux command
I'm trying to use the exiftool to set the DPI on a set of images to 300
I'm using the following command:
./exiftool -jfif:Xresolution=300 -jfif:Yresolution=300 filename.jpg
I've also tried:
./...
1
vote
1
answer
4k
views
Adding custom metadata tags to mp4
I have modified the sound track of a 360 video using openshot.
The output has lost the 360 metadata tags. I am trying to use ffmpeg to replace them with the following command
ffmpeg.exe -i input.mp4 -...
2
votes
1
answer
1k
views
How to leverage exiftool to write metadata in a .xmp back into .jpg file?
Given a .xmp file as the below, how to leverage exiftool to write the edited metadata in the .xmp back into the associated .jpg file?
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-...
0
votes
1
answer
3k
views
Why is Windows 10 showing wrong file media create date?
Totally stumped on this. Copied some mp4 files off my phone, that I need to show a correct date for. Checked the file properties and found an empty "media created" date field. The date should've read ...
0
votes
1
answer
817
views
MP4 date on windows 10 explorer
I have several MP4 videos.
On windows explorer, under the column "Date", I see the wrong time stamp, it is always 3 hours LATER than the EXIF fields:
QuickTime:CreateDate
QuickTime:ModifyDate
...
0
votes
2
answers
230
views
Is there such a thing as expiration date in EXIF datas?
In the EXIF data, we have such fields as the time the picture was taken, the location it was taken,..
My company use large quantities of photographies. Due to regulations about private data's, those ...