Fixing Photo Metadata with Exiftool

So, I’ve recently been scanning some older photos using an Epson flatbed photo scanner. All of the negatives I scanned had the correct camera make and model included in the EXIF data. However, of the prints I scanned only the TIFFs had the camera EXIF data, while the JPGs didn’t, so Lightroom just showed “Unknown Camera” in the Grid view. This was annoying me and I want to be able to find previously scanned photos in the future (plus whatever other key words I may use).

I did some research and found that it isn’t possible to change this metadata directly in Lightroom. (Only the date/time taken, GPS and location data, keywords and a few others can be changed in Lightroom).

The research did mention Exiftool by Phil Harvey, which is also part of another tool I use, Geosetter. Exiftool is a command line tool however and I felt I would rather use a GUI instead. So I looked for one and found a front-end to it, ExiftoolGUI. But it didn’t work, like it just froze up. I realised… I am a programmer and should be able to use the the command line, it’s not hard…

I was going to write a Windows Batch script but a quick search said that Bash scripting is easier, and works in Cygwin, which comes with Git for Windows anyway. And it’s indeed so simple:

for file in ./*.jpg
	exiftool "$file" -make="SEIKO EPSON CORP." -model="EPSON scanner"

It even picked up exiftool in the Windows PATH which Powershell didn’t for some reason (maybe I wasn’t patient enough for the restarts).

Run the script and it runs exiftool for each JPG in the folder with the given parameters, -make and -model in this case. By default, exiftool makes a backup of the photos before it updates them too, in the same directory.

I’d prefer Powershell since it’s universal on Windows, but .sh scripts work on Linux and Mac and easily enough in Windows with Cygwin or WSL (Windows Subsystem for Linux).

17 replies on “Fixing Photo Metadata with Exiftool”

  1. May I simply just say what a relief to uncover someone
    who really understands what they are talking about on the web.
    You definitely know how to bring a problem to light and
    make it important. More and more people must look at this and understand this side of the story.

    It’s surprising you are not more popular because you definitely have the gift.

  2. Undeniably believe that that you stated. Your favourite reason seemed to be on the web the easiest thing to remember of.
    I say to you, I definitely get irked at the same time as
    other people think about concerns that they plainly
    do not recognise about. You controlled to hit the nail upon the top and defined out the entire thing without having side effect , other
    folks could take a signal. Will likely be again to get more.


  3. Very nice post. I just stumbled upon your blog and
    wished to say that I have truly enjoyed surfing around your blog posts.
    In any case I will be subscribing to your rss feed and I hope you write again soon!

  4. Hello this is kinda of off topic but I was wanting to know if blogs
    use WYSIWYG editors or if you have to manually code with HTML.

    I’m starting a blog soon but have no coding experience so I
    wanted to get guidance from someone with experience. Any help would be
    enormously appreciated!

    1. I removed your link and name, but in case you are not spam, most blogging platforms have WYSIWYG editors, at least for posting and editing posts, and will have themes you can choose without custom writing your own HTML code. But you can edit the post and theme in HTML or PHP or whatever server-side language that platform uses. WordPress, Blogger, Live Journal, Tumbler are famous blogging platforms

Comments are closed.