Open main menu

Gramps β

Changes

Addon:Image Metadata Gramplet

730 bytes added, 22:23, 29 March 2010
Added examples for using pyexiv2
<hr>
[[Image:Image_Metadata_Gramplet.gifpng|thumb|right|150px|Fig. Image Metadata Gramplet]]
'''Special Note: Before being able to use this gramplet/ addon, you will need to download and install pyexiv2 from its [ [http://tilloy.net/dev/pyexiv2/ websitepyexiv2] or install pyexiv2 from your local Linux repository. Windows user, there is an installer for you. Ubuntu, use the Universe repository to find pyexiv2.'''<br>
The Image Metadata Gramplet offers an easy interface to add, edit, and remove Image Exif Metadata from your images (*.jpg, *.png. *.tiff, *.exv, *.nef, *.psd, *.pgf).
Once you have installed pyexiv2, see above for directions to download and install this addon...<br>
Pyexiv2 can be used from the command line interface (cli) as well, and from within a python script:<br> # import the pyexiv2 library<br>from pyexiv2 import ImageMetadata, ExifTag<br> # specify your image<br>image = ImageMetadata("/home/user/image.jpg")<br> # read the image<br>image.read()<br> Exif, IPTC, XMP metadata reference tags can be found [http://www.exiv2.org/metadata.html here]:<br> Example:<hr>image["Exif.Image.Artist"] # Artist<br>Smith and Johnson's Photography Studio<br> image["Exif.Image.DateTime"] # DateTime<br>1826 Apr 12 14:00:00<br> image["Exif.Image.DateTime"] = datetime.datetime.now() # Add DateTime<br> image.write() # write the Metadata<br> '''My perferred way to use this addon is:'''<br>
1) install pyexiv2<br>
2) Install this addon<br>
71
edits