Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exiftool recipes #313

Open
ablwr opened this issue Mar 28, 2018 · 18 comments
Open

Exiftool recipes #313

ablwr opened this issue Mar 28, 2018 · 18 comments

Comments

@ablwr
Copy link
Member

ablwr commented Mar 28, 2018

As discussed in #310 and #309, we'd like to add an Exiftool section to ffmprovisr, but we need recipes! Please share small scripts here!

@kieranjol
Copy link
Collaborator

kieranjol commented Mar 28, 2018

exiftool -j input - json output
exiftool -X input rdf output
exiftool -v# input where # is a number between 0 and 5 levels of verbosity, 0 being simple, 5 being trace level.

@kieranjol
Copy link
Collaborator

Getting a specific value, such as ImageWidth:

$ exiftool -s3 -Imagewidth out.jpg 
320

The -s3 gives you the value only, which i need sometimes. Using -s1 or -s2 gives element names as well.

using

$ exiftool -s out.jpg 

Will display the element names that you can use with this option for a particular file.

@ablwr
Copy link
Member Author

ablwr commented Mar 28, 2018

Ahhhhh great thank you yes yes yes

@kieranjol
Copy link
Collaborator

kieranjol commented Mar 28, 2018 via email

@ablwr
Copy link
Member Author

ablwr commented Mar 28, 2018

A good start. I think it's more about practical use and not knowing what is actually possible to do with a tool.

@JonnyTech
Copy link

I know that you guys are into preservation, but I use it to scrub all metadata from my images when sharing:

exiftool -all= image.ext

@ablwr
Copy link
Member Author

ablwr commented Mar 28, 2018

Aw hell yeah @JonnyTech!!!

@JonnyTech
Copy link

To work on images in recursive subfolders:

exiftool -r -ext jpg -all= foldername

@JonnyTech
Copy link

Rename files to datetime stored in exif tag:

exiftool '-FileName<DateTimeOriginal' -d "%Y-%m-%d_%H.%M.%S%%-c.%%e" .

The output filename will be appended with -x where x is a counter number if multiple files have the same timestamp, i.e. multi burst camera photos.

@JonnyTech
Copy link

Staying with timestamps, set to specific one supplied for all files:

exiftool '-DateTimeOriginal=2018:03:28 12:00:00' .

@JonnyTech
Copy link

When the date of my camera is wrong, I shift the timestamps of the images:

Add one hour exiftool "-AllDates+=0:0:0 1" .
Subtract one hour exiftool "-AllDates-=0:0:0 1" .

Format is Y:M:D h:m:s

Please note that everything is from memory and notes as I am not at work now, so please double check before publishing.

@ablwr
Copy link
Member Author

ablwr commented Mar 28, 2018

Damn thanks so much though!!!!! I'll test all before writing them up

@JonnyTech
Copy link

Just remembered, find files with missing exif timestamp in folders:

exiftool -filename -r -if '(not $datetimeoriginal)' folderpath/

You can probably tell that I have a thing about times!

@ablwr
Copy link
Member Author

ablwr commented Mar 29, 2018

@kieranjol Like I just did to Andrew... Could I possibly task you with writing a summary/introduction to sox and why people might find it useful? But I understand if you don't have the time! (Unlike @privatezero 😜)

@kieranjol
Copy link
Collaborator

kieranjol commented Mar 29, 2018 via email

@ablwr
Copy link
Member Author

ablwr commented Mar 29, 2018

Bahahaha yes. I copy-pasted!

@JonnyTech
Copy link

echo "Could I possibly task you with writing a summary/introduction to sox and why people might find it useful?" | sed "s/sox/exiftool/gI"

@ablwr
Copy link
Member Author

ablwr commented Mar 29, 2018

lololololol @JonnyTech practical applications of sed have been on my mind lately!!! 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants