Skip to content

Releases: LeoHsiao1/pyexiv2

v2.7.1

27 Oct 14:53
Compare
Choose a tag to compare
  • Add releases for Python3.10

v2.7.0

24 Aug 13:00
Compare
Choose a tag to compare

Add four features:

  • Convert XMP tag of type LangAlt to a dict.
    Old version:

    >>> img.read_xmp()['Xmp.dc.title']
    'lang="x-default" test-中文-, lang="de-DE" Hallo, Welt'

    Now:

    >>> img.read_xmp()['Xmp.dc.title']
    {'lang="x-default"': 'test-中文-', 'lang="de-DE"': 'Hallo, Welt'}
  • Add Image.get_mime_type()

    >>> img.get_mime_type()
    'image/jpeg'
  • Add Image.get_access_mode()

    >>> img.get_access_mode()
    {'exif': 'read+write', 'iptc': 'read+write', 'xmp': 'read+write', 'comment': 'read+write'}
  • Add registerNs()

    >>> img.modify_xmp({'Xmp.test.mytag1': 'Hello'})
    RuntimeError: No namespace info available for XMP prefix `test'
    >>> pyexiv2.registerNs('a namespace for test', 'Ns1')
    >>> img.modify_xmp({'Xmp.Ns1.mytag1': 'Hello'})
    >>> img.read_xmp()['Xmp.Ns1.mytag1']
    'Hello'

See the Tutorial for details.

v2.6.4

05 Aug 14:07
Compare
Choose a tag to compare
  • Add two variables to get the version. ( Issue #80 )
    >>> import pyexiv2
    >>> pyexiv2.__version__
    '2.6.4'
    >>> pyexiv2.__exiv2_version__
    '0.27.4'

v2.6.3

10 Jul 08:46
5c3e8d6
Compare
Choose a tag to compare
  • [Fix #74] Recompile the library on win_amd64 platform to support enableBMFF().

v2.6.2

26 Jun 14:04
a065eaf
Compare
Choose a tag to compare

Changes from v2.5.0:

  • Add API:
    pyexiv2.Image.modify_raw_xmp()
    pyexiv2.enableBMFF()
    See the Tutorial for details.
  • Change the way to delete a tag.
    Previously, it was assigning an empty string. For example:
    img.modify_xmp({"Xmp.xmp.Rating": ""})
    Now, assign None instead. For example:
    img.modify_xmp({"Xmp.xmp.Rating": None})
  • Upgrade the exiv2 version used by pyexiv2 to 0.27.4.
    So compatibility with Linux and MacOS has changed. See the Tutorial for details.

v2.5.0

16 Feb 09:22
d9d6b3a
Compare
Choose a tag to compare
  • Automatically convert some EXIF tags from UCS2 encoding to UTF-8 encoding.

    Affected Tags

    For example, the previous effect:

    >>> img.read_exif()['Exif.Image.XPKeywords']
    '116 0 101 0 115 0 116 0 0 0'

    The current effect:

    >>> img.read_exif()['Exif.Image.XPKeywords']
    'test\x00'
  • Automatically convert some IPTC tags to List type, even if they do not have multiple values.

    Affected Tags

    For example, the previous effect:

    >>> img.modify_iptc({'Iptc.Application2.Keywords': 'tag1'})
    >>> img.read_iptc()['Iptc.Application2.Keywords']
    'tag1'

    The current effect:

    >>> img.read_iptc()['Iptc.Application2.Keywords']
    ['tag1']

v2.4.1

15 Jan 12:38
16348e9
Compare
Choose a tag to compare
  • Add APIs to handle comment embedded in images: read_comment(), modify_comment(), clear_comment()
  • Add APIs to handle ICC Profile embedded in images: read_icc(), modify_icc(), clear_icc()
  • Make test cases more rigorous.
  • Make the wheel package for different platforms separately.

v2.3.2

02 Dec 16:01
Compare
Choose a tag to compare
  • This is a patched version.
  • Update documents
  • Add compiled files for python3.9

v2.3.1

03 Jul 15:13
Compare
Choose a tag to compare
  • This is a patched version.
  • Add libexiv2.dylib to the .whl package.
    I forgot to do this in v2.3.0, which made it impossible to run pyexiv2 on MacOS.

v2.3.0

08 Jun 11:55
ef8fe8d
Compare
Choose a tag to compare
  • This is a backward compatible version.
  • Add class ImageData. It is used to open an image from bytes data.
  • Enable running on MacOS.