Rename iPhone images to use date/time

Charles Roth, 4 Oct 2017       (Techblog top)

I. Introduction
It's incredibly DUMB that the iPhone camera app names its images IMG_0001, 0002, etc.  But what else can one expect from the Most Walled Garden in the world?

II. A Hack
I save our best iPhone and Android photos to an on-line gallery based on ZenPhoto.  So I wrote a tiny shell script to extract the date and time from the image meta-data, and rename the image files accordingly. 

This script should work on MacOS, Windows with Cygwin, or (of course) Linux.

You can download the script makeIphoneImagenamesSensible and do whatever you like with it (just keep the attribution).  Feedback and improvements are welcome.