Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [exif]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
23 views

EXIF-based CLI renaming/querying tool for video/mp4?

I currently use exiv2 0.28.2 tool to accomplish the same task on my JPEG/TIFF/Raw picture files from the command line. It works really great. Unfortunately it doesn't work reliably on video/mp4 media ...
EnzoR's user avatar
  • 943
1 vote
0 answers
64 views

Where does Digikam store video meta data?

I have configured Digikam to store metadata (such as tags and ratings) in the files themselves (under SETTINGS > CONFIGURE DIGIKAM > METADATA). This seems to have worked well for my photos. I ...
pax10C's user avatar
  • 11
0 votes
1 answer
297 views

Imagemagick, how to print date the photo was taken on the image

Imagemagick 6.9.11-60 on Debian. How to print date & time the photo was taken on the image? (on existing images). I have set this option in camera settings, but it only applies to new photos. The ...
minto's user avatar
  • 525
1 vote
0 answers
27 views

Scrub identifying data from USB stick

I am providing photos related to a legal matter to a lawyer and she is going to give them to law enforcement without giving them my name (under attorney client privilege). I am not sure if she is tech ...
Sean Breheny's user avatar
1 vote
1 answer
119 views

Exiv2: How to print tag values without printing the corresponding filenames

I'm using exiv2 0.27.2. I want to print the tag values of multiple webp files, but without the filename being printed. With the following command: exiv2 -g Exif.Image.Artist -Pv *.webp I get the ...
whitewings's user avatar
  • 2,457
0 votes
1 answer
1k views

how to find all pics in a directory and its subdirectories and run a command on them

how to find all images in a directory and its sub-directories, with types gif, jpg, jpeg, png, ico, and run mogrify -strip your_filename.jpg on them? Can the command mogrify -strip corrupt an image? ...
stacking and exchanging woohoo's user avatar
0 votes
1 answer
888 views

How to change the modification date (The Metadata) of multiple files?

I have a gallery folder with multiple images and videos, some of them has their modification date correct, and some of them has the month wrong. I want to make a script that will change all the files ...
userbash654's user avatar
0 votes
0 answers
519 views

How to transfer photos without losing exif data about date

I need to transfer photos without losing exif data about the creation date and the modify date. Why? Explanation: Using Windows, when I transfer photos from my camera, it preserves the creation date ...
Unix's user avatar
  • 248
0 votes
1 answer
164 views

Removing multiple attributes simultaneously via exiftool

I've been coming up with a script to remove any EXIF/IPTC/XML meta data from a JPEG file that equals 'OLYMPUS DIGITAL CAMERA'. For those who aren't aware, Olympus cameras set this attribute in all ...
willdashwood's user avatar
2 votes
2 answers
2k views

How to batch change exif data for JPEG photo files (wrong date set in camera)?

I have taken 300 photos at an event. Afterwards I noticed that the date was set incorrectly in the camera - one day off. There are lots of EXIF data in the files, not just creation dates. How can I ...
Ned64's user avatar
  • 8,772
0 votes
1 answer
2k views

how can i touch "File Inode Change Date/Time" [duplicate]

i have an mp4 file and running exiftool i can see that the "File Inode Change Date/Time" tag changes when i touch it, but it changes to the current time and not to the date that i have ...
displayName's user avatar
0 votes
1 answer
158 views

get location from drone video with command line tools

How to extract location data from drone video (DJI Mavick Pro 2) by command line? I tried both ffprobe and exiftool, no result. But as for the videos shooted by Android phone all is well.
Untitled's user avatar
2 votes
1 answer
2k views

Add an exif tag to a picture using exiftool

I need to add a tag named "Image Description" to a picture. However, nothing is changed. What am I missing? cd /tmp/ wget https://i.imgur.com/jGwDTpL.jpg pic=jGwDTpL.jpg exiftool -Exif:...
jjk's user avatar
  • 411
1 vote
1 answer
394 views

Exiftool on WSL cannot write

Using exiftool on Windows Subsystem for Linux (WSL, Ubuntu) I can print exif data: # exiftool test.pdf ExifTool Version Number : 10.80 File Name : test.pdf Directory ...
Martin's user avatar
  • 111
2 votes
2 answers
868 views

How to rename a file to its creation date and hash value combined in order to achieve unique filename?

I have bunch of .JPG, .NEF and .MOV files made with my Nikon DSLR, named as DSC_0001.JPG, DSC_0002.JPG and so on. After certain number is reached, new directory is made and number count restarted, ...
Igor V.'s user avatar
  • 321
0 votes
0 answers
366 views

How to list all image files with a certain rating (recorded in XMP data)

I have a directory with a large list of image files (JPG). Some of them have a specific rating, which is recorded as XMP data. An example would be XMP Exif > xmp:Rating = 5 (for a file that has 5 ...
user's user avatar
  • 1,005
0 votes
1 answer
1k views

how to i create new exiftool tag for pdf files as using exiftool config file on gnu/linux?

There is no subtitle meta tag for pdf in exiftool. Therefore I want to add new exif tag for pdf files, it's name must be PdfSubTitle. To do this, exiftool has a guide page. But I don't understand ...
rojen's user avatar
  • 184
3 votes
1 answer
2k views

How to present a slideshow with 'feh' with datestamp displayed on the photographs?

I want to show my photos in a slideshow and have the date displayed for each photograph. I tried it with feh, which is compiled with exif=1 I found --info and --drawexif but can't get it to work. feh ...
Katarina's user avatar
0 votes
1 answer
300 views

How to I set document ID or ID to PDF file via terminal?

Hello I am writing a bash script, this script must give ID to pdf file. How do I solve the this, is there a way? Example as using bash shell. Document ID is: $ exiftool example.pdf | grep 'Document ID'...
rojen's user avatar
  • 184
0 votes
1 answer
206 views

How can I quickly synchronize changed Exif tags of photos?

I have a big collection of raw photo files. On most of them I have changed the Exif Data for Dates and Time Zones. Now I want to synchronize these changes to a remote location. I tried to use rsync. ...
Dakes's user avatar
  • 1
3 votes
3 answers
500 views

List all mp3 files having over 320 kbps bitrate using bash

I'd like to get a list of all mp3 files with >320 bitrate. I'm not sure, how to apply the regular expression to the output of exiftool -AudioBitrate command. find . -type f -name '*.mp3' -print0 | ...
macaque33's user avatar
3 votes
2 answers
2k views

Batch set MP4 create date metadata from filename

On a Linux system, I have a bunch of MP4 files named like 20190228_155905.mp4 but with no metadata. I've previously had a similar problem with some jpg's which I solved manually with exiv2 -M"set ...
Sergey Kasmy's user avatar
1 vote
1 answer
2k views

why does mediainfo not give metadata of an image like exiftool does?

I have been scratching my head on this for quite some time now. Let's see what mediainfo says on an image - $ mediainfo ZQs3vcsHiGY.jpg General Complete name : ZQs3vcsHiGY....
shirish's user avatar
  • 12.4k
0 votes
1 answer
831 views

Rename to exif date: Unique filenames without creating duplicate files

I recently posted a question about how to rename image filenames in a stable way to the exif date: Exiv2 rename: Make unique filenames This is a follow up question to it: How can I additionally ...
student's user avatar
  • 18.4k
26 votes
4 answers
20k views

Rename images to exif time: Make unique filenames

If I rename images via exiv to the exif date time, I do the following: find . -iname \*jpg -exec exiv2 -v -t -r '%Y_%m_%d__%H_%M_%S' rename {} \; Now it might happen that pictures have exactly the ...
student's user avatar
  • 18.4k
2 votes
1 answer
3k views

Find images with same exif timestamp

How can I find all groups of images which have the same exif timestamp in a given directory from the command line in linux?
student's user avatar
  • 18.4k
2 votes
1 answer
1k views

How to adjust the Exif timestamp of a photo using the date in its name

I'm trying to get the filename of a screenshot on an Android phone (which contains the date it was taken) as a string and add it to the Exif timestamp of that screenshot (which doesn't seem to have ...
PyGeek03's user avatar
3 votes
1 answer
538 views

Shell script to add different GPS data to series of photos

I have a drone that I used to make a flight movie, and I am going to use this footage to build a DEM (digital elevation model) of the topography I was filming. I can extract frames from the movie ...
brendanvolc's user avatar
2 votes
0 answers
740 views

rename mov/mts files with exif data

I am trying to rename mov/mts files with their exif data. I have checked various ways with shotwell, gthumb, etc. Although gthumb does recognise the data, it will not rename (only jpg). I also looked ...
Smokeyone's user avatar
0 votes
2 answers
1k views

Why exif Orientation does not force image horizontal? [duplicate]

I am trying to have some stability in image orientations but they differ in Debian image viewer/LaTeX and with image viewers. I do but it does not have an effect on the orientation of wrongly ...
Léo Léopold Hertz 준영's user avatar
1 vote
1 answer
582 views

use `exivtool` to rename Photos by location

This is how you can rename all Jpegs in a folder by geolocation and date: exiftool '-filename<${gpslatitude;} ${gpslongitude} ${datetimeoriginal}' -d "%Y-%m-%d %H.%M.%S%%-c.%%e" *.JPG this ...
rubo77's user avatar
  • 29.2k
5 votes
1 answer
7k views

Extract latitude/longitude from an image using curl

curl -s -v -X HEAD http://sitename.com/123.jpg 2>&1 | grep '^< Last-Modified:' gets me a date. Any way I can retrieve gps coordinates of an image? Any other metadata?
Renox92's user avatar
  • 69
52 votes
7 answers
54k views

How to strip metadata from image files

[EDIT #1 by OP: Turns out this question is quite well answered by exiftool creator/maintainer Phil Harvey in a duplicate thread on the ExifTool Forum] [EDIT #2 by OP: From ExifTool FAQ: ExifTool is ...
Jeff's user avatar
  • 731
3 votes
1 answer
4k views

Add a new custom metadata tag

I know how to change a tag value, and how to extract tag values of a file from its metadata, and yes we have great tools like id3tag, exiftool, ffmpeg and etc. But I need to add a completely new tag, ...
Parsa Samet's user avatar
0 votes
1 answer
120 views

exiv2 piped to grep - random inconsistent behavior

For a bunch of jpg photos, I have this (simplified) script to be able to extract the original date when the photo was taken (if different of 0000:00:00, not relevant for this case) for f in *.jpg; do ...
Luis's user avatar
  • 2,518
3 votes
3 answers
2k views

Extract last line of multiline string

The output from exif looks like this: ExifMnoteCanon: Loading entry 0xcf27 ('(null)')... ExifMnoteCanon: Loading entry 0x3ca8 ('(null)')... ExifMnoteCanon: Loading entry 0xf88a ('(null)')... 2013:08:...
Big McLargeHuge's user avatar
3 votes
4 answers
456 views

Bash script condition always passing even when grep should return nothing

I am having issues when trying to return the one image file that fits the parameters. $1 is the search parameter, in this incident it is "real" which is a tag on one of the images (not two) in the ...
soulkingbrook's user avatar
1 vote
2 answers
544 views

Copy EXIF meta data from the Keywords to the Description on a huge amount of photos in sub folders

I have over 80,000 photos that have been given proper EXIF keywords but Google Drive requires data in the Description for it to be searchable in their online app. I need to copy the contents of the ...
snowliondev's user avatar
2 votes
1 answer
1k views

How to extract comment from ppm file?

I have ppm file X.ppm with comment : xxd X.ppm|head -10 0000000: 5036 0a23 206d 6967 6874 796d 616e 6465 P6.# mightymande 0000010: 6c20 2d32 2e38 3034 3132 3232 3037 3833 l -2.80412220783 0000020: ...
Adam's user avatar
  • 989
23 votes
4 answers
13k views

Change time (date) in or from exif data

In the question Change file created date from JPEG EXIF metadata there are great scripts to update the file system date and to match date stored in the file. But what if the “Date and Time (original)” ...
Werner's user avatar
  • 231
1 vote
1 answer
6k views

Using EXIFTool to add EXIF data from filenames

There is a set of photos with timestamps in their filenames like these: Photo on 3-09-12 at 9.24 PM #2.jpg Photo on 3-09-12 at 9.24 PM #1.jpg Photo on 3-09-12 at 8.23 PM.jpg etc. ("3-09-12", ...
iceequal's user avatar
3 votes
1 answer
11k views

How to change camera info in Exif using command line

I have analog camera and I give a film to the lab where they scan it, I wanted to upload it to flickr but want to change info about camera. Right now it's NORITSU KOKI QSS-32_33 and I wanted it to be ...
jcubic's user avatar
  • 9,972
4 votes
3 answers
2k views

Collect EXIF data of a directory

Is there a way to extract EXIF information of all images within a directory (into an output file)? Preferably I also need GPS data but this is not essential. I only ask, as I have a number of ...
davidbain's user avatar
  • 143
56 votes
6 answers
40k views

Change file created date from JPEG EXIF metadata

When uploading to an ftp site, the original file create date seems to be lost, and I get the upload date instead. However, the Exif data in the file is correct. Is there a tool to batch change the ...
Finn Ove's user avatar
  • 561
0 votes
1 answer
1k views

Removing all tags from images [duplicate]

Possible Duplicate: Batch delete exif info How can I remove all tags from images under a directory (using Linux)? I can find all files with something like find pictures -type f -iname "*jpg" -...
teo's user avatar
  • 3
4 votes
1 answer
3k views

How to rename all files and add image size to file name

I can't make this work. I have a lot of images and i want to rename his name and append image size to name using exiv2 exiv2 pr * prints all info about file # exiv2 pr 9b523e5a002268fe5067a928 File ...
SimpleSpawn's user avatar
21 votes
4 answers
15k views

Batch delete exif info

How can I recursively remove the EXIF info from several thousand JPG files?
LanceBaynes's user avatar
  • 40.4k
9 votes
2 answers
5k views

Print specific Exif image data values with exiv2

How do I print the image Exif date with a tool like exiv2? My goal is to write the image year and month into separate variables. Do I really have to parse the output with regex or is there a ...
apparat's user avatar
  • 622
17 votes
8 answers
19k views

How can I rename photos, given the EXIF data?

Let's say I have a bunch of photos, all with correct EXIF information, and the photos are randomly named (because of a problem I had). I have a little program called jhead which gives me the below ...
Tomas's user avatar
  • 1,034