Exiv2

Материал из Xgu.ru

Перейти к: навигация, поиск


Exiv2 — библиотека C++ и, использующая её программа, которая позволяет читать и изменять метаданные в файлах изображений, а также аудио и видео файлах.


Основные возможности Exiv2 [1]:

The Exiv2 library provides

    * fast read and write access to the Exif, IPTC, and XMP metadata of an image through Exiv2 keys and standard C++ iterators. 
      Examples: read Exif; add, modify, delete Exif; read IPTC; set IPTC; set XMP
    * an easy to use and well documented API
    * conversions of Exif and IPTC metadata to XMP and vice versa
    * a smart IPTC implementation that does not affect data that programs like Photoshop store in the same image segment
    * Exif MakerNote support:
          o MakerNote tags can be accessed just like any other Exif metadata
          o a sophisticated write algorithm avoids corrupting the MakerNote
    * extract and delete methods for Exif thumbnails (both, JPEG and TIFF thumbnails)
    * set methods for Exif thumbnails (JPEG only, TIFF thumbnails can be set from individual tags)

Exiv2 is also a command line utility to

    * print the Exif metadata of JPEG, TIFF and several RAW image formats as summary info, interpreted values, 
      or the plain data for each tag (a sample is here)
    * print IPTC and XMP metadata
    * print, set and delete the JPEG comment of JPEG images
    * set, add and delete Exif, IPTC and XMP metadata of JPEG images
    * adjust the Exif timestamp (that's how it all started...)
    * rename Exif image files according to the Exif timestamp
    * extract, insert and delete Exif, IPTC and XMP metadata and JPEG comments
    * extract, insert and delete the thumbnail image embedded in the Exif metadata
    * fix the Exif ISO setting of picture taken with Nikon cameras

С помощью exiv2 можно внедрять в фотографии GPS-теги. Например, как описано в [2].

[править] См. также

Источник — «http://xgu.ru/wiki/Exiv2»
На других языках