Questions tagged [exif]

46 questions
53
votes
6 answers

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 created date from the Exif date?
Finn Ove
  • 531
  • 1
  • 4
  • 3
48
votes
7 answers

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 not guaranteed to remove metadata completely from a…
Jeff
  • 681
  • 1
  • 5
  • 8
25
votes
4 answers

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 same timestamp (including seconds). How can I make…
student
  • 17,875
  • 31
  • 103
  • 169
22
votes
4 answers

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)” value is bad in the Exif data (because of an…
Werner
  • 221
  • 1
  • 2
  • 3
21
votes
4 answers

Batch delete exif info

How can I recursively remove the EXIF info from several thousand JPG files?
LanceBaynes
  • 39,295
  • 97
  • 250
  • 349
18
votes
8 answers

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 output: $ jhead IMG_9563.JPG File name :…
Tomas
  • 1,014
  • 2
  • 12
  • 18
9
votes
2 answers

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 alternative to something like this: exiv2 DSC_01234.NEF…
apparat
  • 622
  • 1
  • 5
  • 14
5
votes
1 answer

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
  • 69
  • 2
  • 4
4
votes
1 answer

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 name : 9b523e5a002268fe5067a928 File size …
SimpleSpawn
  • 143
  • 1
  • 5
4
votes
3 answers

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 directories with a large number of image files within, so…
davidbain
  • 143
  • 4
3
votes
1 answer

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 -d --draw-exif '-Directory'…
Katarina
  • 31
  • 3
3
votes
3 answers

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 | while IFS= read -r -d '' i; do BITRATE=echo…
macaque33
  • 43
  • 2
3
votes
1 answer

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 easily enough, but the method (ffmpeg) does not give…
3
votes
1 answer

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, not change an existing one. For example, consider…
Parsa Samet
  • 767
  • 1
  • 7
  • 20
3
votes
3 answers

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:22 18:01:16 In my bash script, I store this in a…
Big McLargeHuge
  • 3,044
  • 11
  • 35
  • 49
1
2 3 4