Image Scripts

The links on this page are to scripts that modify or display image files. Most (if not all) use exiftool), a perl package and command line tool for reading and changing EXIF headers in image files.

earth_image - A script to generage a KML file from the longitude/latidue info from the EXIF headers of a geotagged image and pass the KML file to googleearth (uses exiftool). If the image passed is not geotagged, an error page is opened in Firefox, but you will need to change the URL to something on your system.

map_image - A script to open a Google maps web page with a teardrop on your geotagged image location. (uses exiftool). If the image passed is not geotagged, an error page is opened in Firefox, but you will need to change the URL to something on your system.

rotate_image - rotates an image without modifying the file's modification time. Uses the mogrify command from the ImageMagick package and the jhead command to rotate the embedded thumbnail, if it exists.

geeqie_edit_menu_entries.zip - Zip file containing the .desktop entries for using the above three scripts in Geeqie. Put the above scripts in /usr/local/bin and unzip this file into ~/.config/geequi/applications and you will find entries on your Edit menu to rotate, map or earth an image.

time_touch - Sets the file modification time using the touch command to the same time as the creation date in the image's EXIF header. If file does not contain EXIF headers and the filename is of the form YYYYMMDDHHMM, file date will be derived from filname. (uses exiftool)

time_rename - Renames the file as YYYY_MM_DD_HH_MM_SS_ORIGINALNAME.jpg from the creation date in the image's EXIF header. (uses exiftool)

thumbnailer.php - PHP script to dynamically generate (and cache) thumbnails for all images in current directory. Thumbnail size can be set using a form on the page and is stored in a cookie. Script calls itself to display the generated thumbnail and can be used to generate a single thumbnail. Pass f=filename, x=xsize, y=ysize, scale=percent, and/or ss=1 to specify thumbnail attributes (ss=1 means write file size on the thumbnail, requires arial.ttf to be in the same directory). A Map link is added next to any geotagged image that will open a Google Maps page with a teardrop at the image's location.

make_kml - Generate a KML file (for opening in google earth) from geo-tagged images. cd to a directory full of geo-tagged images and run make_kml. It assumes the directory is on a server named mass that runs a web server. The directory is assumed to be in the root of the web server. pwd is replaced with http://mass/pwd in the generated links. Adjust accordingly for your own environment.

make_gpx - Generate a GPX file (for opening in google earth or other map-based program) from geo-tagged images. cd to a directory full of geo-tagged images and run make_gpx. The GPX file, when opened by the mapping program, will show the location of all images, as though the points were generated by a GPS device.