1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Python Updated PhotoLab script with modified borders and save metadata in JPGs. 0.1

Add Borders and Copyright information in Gimp

  1. Average Joe
    Add Borders and Copyright information in Gimp
    I modified the batch processing plug-in for Gimp called PhotoLab to add a border that I liked better than the original. I also added copyright information that is written on the border. The biggest hurdle though was Gimp itself -- the built-in jpg save functions lose all the metadata, including the photo-taken timestamp that I use to sort the photos and the photo captions.

    To rectify this problem, I called the executable version of exiftools from within the python script. A better way would have been to code it directly into the plug-in, but I ran out of patience for that. Hopefully the upcoming Gimp version 2.8 will fix this problem.

    It is not particularly robust, but these items are essential:
    *Gimp python script capability must be installed (http://www.gimpusers.com/tutorials/install-python-for-gimp-2-6-windows.html)
    *exiftool.exe needs to be on your path (http://www.sno.phy.queensu.ca/~phil/exiftool/)

    1. The "base" of the script was batch processing for adding borders and title information from the PhotoLab suite of Gimp tools. http://registry.gimp.org/node/157

    List of changes:
    Changed the "title" feature to be a copyright feature
    Placed the copyright information on the border (size scales with border so it always fits).
    Replaced the border with one I liked better (see #2 below)
    Used exiftool to preserve metadata (see #3 below)
    Note: I have not renamed the script from the PhotoLab original.
    Note: The script is now limited to JPG images (mostly to preserve metadata)

    2. I replaced the border with a modified version of the border implemented in the two_color_borders.py script.http://registry.gimp.org/node/24635
    Changed the script so that the border overlays the edges of the current image in order to maintain the original aspect ratio. A quick code change can switch it back (I meant to make this an option, but ran out of time).

    3. In order to "preserve" metadata, I used ExifTool (http://www.sno.phy.queensu.ca/~phil/exiftool/) to copy the metadata from the original JPG to the new JPG.
    Note: ExifTool.exe must reside on your path.
    GIMP Version: