ExifTool is a platform-independent Perl library and command-line application for reading, writing and editing meta information in a wide variety of files.
Questions tagged [exiftool]
375 questions
1
vote
1 answer
OSError exception '[Errno 2] No such file or directory' when using subprocess.check_output()
I am trying to read meta information from a jpg file using subprocess to execute an ExifTool read command.
The function that calls get_dimensions() first creates the file, stores its file path in file_name--I double-checked and it does indeed exist…

axatokae
- 11
- 1
1
vote
1 answer
Why some tags I can not edit them with exiftool
With exiftool I could not edit some tags like the result after when I put this line
exiftool logo.jpg -"Photoshop Quality"=""
I get this message
Warning: Sorry, Photoshop is not writable
Nothing to do.
My question . why ? how can i fix this…

BadGuy
- 45
- 4
1
vote
1 answer
splitting and rejoining PDFs with Poppler results in larger file? (despite stripping metadata)
If I have a multi page PDF, and split it into separate pages using the excellent poppler package (installed on macOS using brew install poppler) like this:
pdfseparate foo.pdf bar-%04d.pdf
and then rejoin the resulting bar-####.pdf files, like…

RocketNuts
- 9,958
- 11
- 47
- 88
1
vote
1 answer
Executing an exiftool command inside a .bat file
I found the following command line expression for exiftool here: Extract thumbnail from jpeg file
exiftool -a -b -W %d%f_%t%-c.%s -preview:all YourFileOrDirectory
The command works great on the command line, but when ran in the following batch…

NoWhizKid
- 78
- 1
- 11
1
vote
1 answer
Exiftool get ImageInfo
I'm trying to extract image metadata in my Objective-C project via Exiftool C++ interface.
Code:
const char *fileName = "/Users/bbb/Desktop/photos/thumb1.jpg";
TagInfo *info = _tool->ImageInfo(fileName, NULL, 5);
NSLog(@"%@", info);
After some…

Bohdan Savych
- 3,310
- 4
- 28
- 47
1
vote
2 answers
Writing exif data to the exif header using PyExifTool
Looking over a post from 2015 link on how to use PyExifTool to write to the Exif header. I gave it a try:
import exiftool
fileno=r'DSC00001.JPG
with exiftool.ExifTool() as et:
et.execute("EXIF:GPSLongitude=100",fileno)
…

icypy
- 3,062
- 5
- 25
- 27
1
vote
1 answer
Using variable in exiftool -if condition
I am trying to reorganise images based on keywords that are found in the IPTC metadata. More specifically, I need sort images into directories based on the species name in the subject pseudo tag of exiftool.
To do this, I have compiled the keywords…

Philipp HB
- 169
- 1
- 14
1
vote
2 answers
Moving images based on IPTC metadata in bash
I am trying to reorganise images based on the species that is within an image. Among other information, the species name can be found in the IPTC metadata (see link to the Inspector image). I am attempting to do this in bash on macOS and have tried…

Philipp HB
- 169
- 1
- 14
1
vote
1 answer
Powershell, System.Diagnostics.Process & exiftool stop working when dealing with hundreds of commands
I created a tool (to be precise: a Powershell script) that helps me with converting pictures in folders, i.e. it looks for all files of a certain ending (say, *.TIF) and converts them to JPEGs via ImageMagick. It then transfers some EXIF, IPTC and…

flolilo
- 194
- 1
- 12
1
vote
1 answer
Proper cmd line for ExifTool for pdf meta tagging
I'm having issues getting exiftools to write custom meta tags for my pdf files. In MacOS terminal with exiftools installed. Here's a sample command.
exiftool -overwrite_original -config
new.config -XMP::pdfx:document_id=”7A 2017 091 d”…

Dean
- 211
- 2
- 16
1
vote
1 answer
Mass remove exif from pictures
I have a folder with many directories that have pictures and I need to remove the EXIF file.
I used this code and it seems to work but my file size grow for no reason
find /Users/justinbarrilleaux/Downloads/2015 -type f -name '*.JPG' -exec…

Justin
- 111
- 1
- 9
1
vote
0 answers
Different behaviour of working shell script when called from crontab
I created a script to automatically transfer images from an SD card to my NAS which works like a charm when executing it from the shell:
#!/bin/sh …

H0ttenburg
- 53
- 1
- 3
1
vote
1 answer
ExifTool Perl Library Module: How to separate keyword- from subject-values
I am using ExifToolVersion : 9.13 to read out metainformations of a pdf-file to formfields, where users can edit the values.
With a second perl-script I write these changed values back to the file.
That works fine with the exception, that…

ast
- 11
- 2
1
vote
0 answers
Exiftool batch update not working
There are two folders with images in them and the filenames of the images are identical.
I'd like to copy the exif data of the images from one folder to another. Exiftool seems to be the perfect tool to do this job. According to the documentation…

Phil
- 340
- 3
- 9
1
vote
2 answers
Exiftool command in Bash for-loop not working
I'm trying to write and overwrite jpg metadata with exiftool in a bash for-loop, but a specific command won't work in the loop. I want to overwrite the gpstimestamp with the datetimeoriginal data, this works if executed on the commandline, but not…

upgrd
- 720
- 7
- 16