Addon:Edit Image Exif Metadata

From Gramps
Gramps-notes.png
This is a Third-party Addon. The Addon/Plugin system is controlled by the Plugin Manager.

Please use carefully on data that is backed up, and help make it better by reporting any issues to the bug tracker.
Unless otherwise stated on this page, you can download this addon by following these instructions.
Please note that some Addons have prerequisites that need to be installed before they can be used.

Edit Exif Metadata Gramplet - detached example

The Edit Exif Metadata Gramplet offers an easy interface to add, edit, and remove Image Exif (Exchangeable image file format) Metadata from your images (*.jpg, *.png. *.tiff, *.exv, *.nef, *.psd, *.pgf).

See also the builtin:

Usage

  • Add the gramplet to the Media List View category, either on bottom bar or on the side bar. Click Views from the Menu bar, and select Media Views
  • Select Edit Exif Metadata Gramplet

General usage

  • Select an image from the MediaMedia List View to edit its Exif Metadata using the Edit Exif Metadata Gramplets Edit button.

The interface

The Edit Exif Metadata Gramplet will initially display a summary of the images metadata.

Edit Exif Metadata Gramplet

Summary section
The top section displays a summary of the selected media object. Typically the filename, file type and image dimensions.

Button section

  • Thumbnail - will produce a popup showing the thumbnail.
  • <-- Image Types --> V - Select from a drop- down box the image file type that you would like to convert your non- GExiv2 compatible media object to.
  • Convert - If your image is not of an image type that can have Exif metadata read/written to/from, convert it to a type that can?
  • Help - brings your to this page.
  • Edit - This will open up the Edit dialog to allow you to edit/modify this images's Exif metadata.
  • Clear GPS - coordinates
  • Delete - WARNING: This will completely erase all Exif metadata from this image! Are you sure you want to do this?

Exif metadata list

Shows a list of the images existing Exif metadata.


Edit dialog

Edit Exif Metadata Gramplet - Edit dialog example

This Edit dialog allow you to be able to Edit and Save the modified metadata.

  • Save - Will write the metadata to the image, and convert latitude/longitude if it is in decimal format.
  • Clear - Will clear all data fields
  • Copy
  • Close

Exif Data Fields


Media Object Title

media Title



General Data

Description
Type in something about the image, the people in it or the location of the image. Non-latin characters are NOT allowed. ASCII characters only...
Artist
The name of the person or company taking the image
Copyright
Can be anything that you please...
e.g.: (C) 2010 Smith and Wesson

Date/Time

Select Date
Will bring up a calendar, and double-click on a date. The time will be filled in as the current time<
Date
The Date/Time needs to be typed in as a very specific format:
Year Mon Day 24Hour:Minutes:Seconds
e.g.: 1826 Apr 12 14:06:00

Latitude/Longitude
Latitude/Longitude data can be entered in one of two ways:
  1. Degrees Minutes Seconds
    e.g.: 83 59 14
    In this format, you will need to select cardinal direction Latitudinal reference, and longitudinal reference
    If the Latitude begins with a negative number, select 'S' (South) as Latitudinal Reference or 'N' (North) if a positive number. If the Longitude begins with a negative number, select 'W' (West) as the Longitudinal Reference or 'E' (East) if a positive number.
  2. Decimal
    e.g.: -34.15954
    In this format, the Latitude and Longitude reference will be selected for you after you click Convert GPS Coordinates or press the Save button. For foreign countries that might use a ", " instead of a ".", please use the "."
    Altitude:

Prerequisites

Tango-Dialog-information.png
Special Note

Before being able to use this Gramplet/Addon, you will need to download and install gexiv2
or install gexiv2 from your local Linux repository.
MS-Windows users, this is depends on which installer you used.
Ubuntu, use the Universe repository to find gexiv2.
Also see GExiv2 for Image metadata


Once you have installed gexiv2, see above for directions to download and install this addon...


Gramps-notes.png

This article's content is incomplete or a placeholder stub.
Please update or expand this section.


Gramps-notes.png
Special Note:

Before being able to use this addon gramplet, you will need to download and install pyexiv2 or install pyexiv2 from your local Linux repository. Windows user, there is an installer for you. Ubuntu, use the Universe repository to find python-pyexiv2.

Once you have installed pyexiv2, see above for directions to download and install this addon...

Pyexiv2 can be used from the command line interface (cli) as well, and from within a python script:

  1. import the pyexiv2 library
    from pyexiv2 import ImageMetadata, ExifTag
  2. specify your image
    image = ImageMetadata("/home/user/image.jpg")
  3. read the image
    image.read()

Exif, IPTC, XMP metadata reference tags can be found here.

Example:


image["Exif.Image.Artist"] # Artist
Smith and Johnson's Photography Studio

image["Exif.Image.DateTime"] # DateTime
1826 Apr 12 14:00:00

image["Exif.Image.DateTime"] = datetime.datetime.now() # Add DateTime

image.write() # write the Metadata

History

Gramps-notes.png
Edit Exif Metadata

was originally included in Gramps 3.4.x and earlier

Issues

Report to bug tracker if any.

See also