Hello
Well I have no idea really if there is any interest for this, I do things my way and it works for me - but I have added a pretty decent amount of hours all together in writing this script so I mind as well share it with you guys, since I love open source too
I think you need to be a little bit of a geek to do add exif to scanned files, and a even bigger geek to try this out
To the point....
Lots of stuff in this script has been re-written a bunch of times, and not all that perfect and a lot of it can be written far better I am sure.
My view of it is that I want to run it in a terminal, easy edited, pretty simple in all.
I found the best way (for me) to not need to re-do all exif-data on each file if I need to, so simply create a small script-file to each image that contains everything; these files looks like this:
exiv2 -M"del Exif.Photo.DateTimeOriginal" ./160_infrared_05.???
exiv2 -M"set Exif.Photo.DateTimeOriginal 2015:03:24 16:27" ./160_infrared_05.???
exiv2 -M"del Exif.Photo.ExposureProgram" ./160_infrared_05.???
exiv2 -M"set Exif.Photo.ExposureProgram 1" ./160_infrared_05.???
exiv2 -M"del Exif.Photo.FNumber" modify ./160_infrared_05.???
exiv2 -M"add Exif.Photo.FNumber Rational 8/1" modify ./160_infrared_05.???
exiv2 -M"del Exif.Photo.ExposureTime Rational" modify ./160_infrared_05.???
exiv2 -M"add Exif.Photo.ExposureTime Rational 1/250" modify ./160_infrared_05.???
exiv2 -M"del Exif.Photo.FocalLength Rational" modify ./160_infrared_05.???
exiv2 -M"set Exif.Photo.FocalLength Rational 80/1" modify ./160_infrared_05.???
exiv2 -M"del Exif.Photo.ISOSpeedRatings" ./160_infrared_05.???
exiv2 -M"set Exif.Photo.ISOSpeedRatings 400" ./160_infrared_05.???
exiv2 -M"add Exif.Photo.UserComment Rollei Infrared" modify ./160_infrared_05.???
exiv2 -M"add Exif.Photo.UserComment Home developed using Rodinal/r09" modify ./160_infrared_05.???
exiv2 -M"add Exif.Photo.UserComment Roll-id 160" modify ./160_infrared_05.???
exiv2 -M"del Exif.Image.Model" modify ./160_infrared_05.???
exiv2 -M"del Exif.Image.Make" modify ./160_infrared_05.???
exiv2 -M"add Exif.Image.Model Mat" modify ./160_infrared_05.???
exiv2 -M"add Exif.Image.Make Yashica" modify ./160_infrared_05.???
exiv2 -M"del Exif.Image.Software" modify ./160_infrared_05.???
exiv2 -M"set Exif.Image.Software Gimp 2.8" modify ./160_infrared_05.???
exiv2 -M"add Exif.Photo.UserComment Scanned with: Epson Perfection V700" modify ./160_infrared_05.???
exiv2 -M"del Exif.Image.Artist" ./160_infrared_05.???
exiv2 -M"set Exif.Image.Artist whateveryourmailis@gmail.com" ./160_infrared_05.???
exiv2 -M"set Exif.Image.Copyright whateveryourmailis@gmail.com" modify ./160_infrared_05.???
And they can be executed like for example
sh script.160_infrared_05.outIt works like this:
Execute the script wherever you may have downloaded it to like,
sh /home/johan/scripts/add_exif.sh
if you have some nessesary tools available, like
'dialog' and 'exiv2' (standard in Ubuntu I think) in your system, then you will see this:
Here you can edit the parameter to find files available, simple enough it creates a list, and sends that information to a temporary file in your home directory.
Choose thatever information you whish to add to your file:
The "Add a film" section looks like this (I added a fairly big bunch)
To remove any unwanted data from your pictures you can type like this for example:
(I like to remove any xmp-data from editing software anyway)
exiv2 rm filename.jpg
To run all exif-script files outside of the main script, do it like this to run 'em all.
for X in $(ls script.*); do sh $X; done
Check the imprinted exif-data like this:
exiv2 -Pkyct filename.jpg
Download the script as it looks right now:
https://dl.dropboxusercontent.com/u/197380473/other/add_exif.shYou can (should) run it as your usual user.
I have tried it on a mac too, but it was a few "versions" ago, but I think it should run just fine, given that exiv2 and dialog are installed.
I would suggest that you look it through before you runt it, and please try it out first by creating a temporary folder and add at least one image there to experiment with.
If you have any input, please share or ask!