exiftool: One small gimmick

I have a list of tools that are veritable Swiss Army knives — things that can do so much that I could probably dedicate an entire week on how to use them.

On the other hand, they don’t have much of an interface, which makes them only vaguely interesting to me as console applications.

But they’re great things to have on hand. Today I’ve got exiftool to show, which is really clever if you lean toward obsessive-compulsiveness, like I do.

Let me explain. I like personal photos and wallpaper and so forth — lists of image files — to show their dimensions in their file name. I.e.,


Maybe I’m not alone on that. But without some way of pulling the dimension information from the file and appending it to the name, it becomes a hideous chore.

exiftool can do this in one fell swoop, like this:

exiftool -ext 'jpg' '-filename<%f_${ImageSize}.${FileType}' .

One command, and the entire folder gets manhandled in seconds. Change the extension as you like, or just use a splat to attack everything.

The downside, if you can call it that, is there’s nothing to show while exiftool does its thing. There’s no interface, no navigation boxes, no confirmation or onscreen help.

It just does what it’s told, and shuts up. Which is an admirable trait, I suppose. … 😐

P.S.: Bonus! Latest update only days ago! 😀

4 thoughts on “exiftool: One small gimmick

  1. Rhino Jockey

    Take a peek at exiv2 also. A part of my photo handling script says: exiv2 -F rename *.jpg. It renames the image to the time it was taken, so img_1234.jpg becomes 20130330_145349.jpg. Very useful to keep them in order, becomes easy to handle them via scripts if need be, and invaluable when compiling timelapse movies from your images 🙂

    For arch: https://www.archlinux.org/packages/extra/i686/exiv2/

    And thanks for the blog. I usually read it while waiting for the morning coffee to kick in 🙂

  2. Pingback: renameutils: Underappreciated tools | Inconsolation

  3. Pingback: jhead: exif data, again | Inconsolation

  4. Pingback: Bonus: K.Mandla’s order of battle | Inconsolation

Comments are closed.