Code Monkey home page Code Monkey logo

Comments (3)

LeoHsiao1 avatar LeoHsiao1 commented on August 25, 2024

pyexiv2 supports reading and writing Exif, IPTC amd XMP metadata from PNG images.
For example:

leo@Leo:/mnt/d$ python3
Python 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexiv2
>>> img = pyexiv2.Image('1.png')
>>> img.modify_exif({'Exif.Image.Artist': 'TEST'})
>>> img.read_exif()
{'Exif.Image.Artist': 'TEST'}
>>> img.modify_iptc({'Iptc.Application2.ObjectName': 'TEST'})
>>> img.read_iptc()
{'Iptc.Application2.ObjectName': 'TEST'}

You can try to read images with exiv2.

  • If exiftool can read metadata, but exiv2 can't, then it's exiv2's problem.
  • If exiv2 can read metadata, but pyexiv2 can't, then it's pyexiv2's problem.

from pyexiv2.

claudiaximenaro avatar claudiaximenaro commented on August 25, 2024

Thank you. Indeed pyexif2 supports png files, the problem seems to come from the photos that are very dated (2010) and at that time PNG didn't have a formal EXIF chunk, so what I am seeing with exiftool is actually the information coming from the xmp data that was added later.

from pyexiv2.

github-actions avatar github-actions commented on August 25, 2024

This issue has been automatically closed because there has been no activity for a month.

from pyexiv2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.