Pure Daft

Sorting Scanned Images

26 Jan 2013

I’ve been scanning in loads of photos recently. I have a duplex feed scanner, which outputs two images, which is handy for capturing details written on the back of the photos - including the shop’s timestamps and print data.

However, when using digiKam to organise my photos, it is often quite difficult to see the faded shop print. Hence, I need to normalise these images in order to see the stamp more clearly.

Using the following Linux command, it finds all files less than 400kB in the current folder, copies them (in case normalisation happens against an image which I don’t want normalised) and normalises the original.

find *.jpg -size -400k -exec cp {} {}.old \; -exec convert -normalize {} {} \;

Grand.