Questions tagged [exif]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
27
votes
5answers
19k 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 ...
16
votes
4answers
9k views

Batch delete exif info

How can I recursively remove the EXIF info from several thousand JPG files?
14
votes
7answers
13k 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 ...
11
votes
5answers
7k 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 ...
10
votes
4answers
4k 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 ...
10
votes
2answers
2k views

change time (date) in or from exif-data

In question Change file created date from JPEG EXIF metadata there are great scripts, to update file-system date, to match date stored in the file. But what if “Date and Time (original)” are bad in ...
8
votes
2answers
4k 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 ...
4
votes
1answer
4k 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?
4
votes
1answer
2k 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 ...
3
votes
4answers
365 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 ...
3
votes
3answers
1k 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:...
3
votes
1answer
9k 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 ...
3
votes
3answers
747 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 ...
3
votes
1answer
168 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 ...
3
votes
1answer
2k 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, ...
2
votes
1answer
540 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: ...
2
votes
0answers
398 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 ...
1
vote
1answer
698 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?
1
vote
2answers
392 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 ...
1
vote
1answer
5k 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", ...
1
vote
1answer
235 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 ...
1
vote
1answer
129 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 ...
0
votes
1answer
630 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" -...
0
votes
2answers
530 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 ...
0
votes
0answers
17 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 ...
0
votes
1answer
288 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....
0
votes
1answer
138 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 ...
0
votes
1answer
77 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 ...