Code Monkey home page Code Monkey logo

Comments (7)

LeoHsiao1 avatar LeoHsiao1 commented on August 25, 2024

Please show me the full error information.
If you send that picture to my email, [email protected], I can try it.

from pyexiv2.

djotaku avatar djotaku commented on August 25, 2024

Full stack trace is:
Traceback (most recent call last):
File "/home/ermesa/Programming Projects/python/photo_stats/photostats/main.py", line 24, in
main()
File "/home/ermesa/Programming Projects/python/photo_stats/photostats/main.py", line 18, in main
exif = get_exif.get_exif(photos)
File "/home/ermesa/Programming Projects/python/photo_stats/photostats/get_exif.py", line 48, in get_exif
this_image_exif = this_image.read_exif()
File "/home/ermesa/Programming Projects/python/photo_stats/venv/lib64/python3.7/site-packages/pyexiv2/core.py", line 37, in read_exif
return self._parse(self._exif, encoding)
File "/home/ermesa/Programming Projects/python/photo_stats/venv/lib64/python3.7/site-packages/pyexiv2/core.py", line 64, in _parse
decoded_line = [i.decode(encoding) for i in line]
File "/home/ermesa/Programming Projects/python/photo_stats/venv/lib64/python3.7/site-packages/pyexiv2/core.py", line 64, in
decoded_line = [i.decode(encoding) for i in line]
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xea in position 6: invalid continuation byte

photo can be downloaded from: https://www.dropbox.com/s/81ppdbk02on1iok/2020%20Tet%20Family%20Portrait.jpg?dl=0

from pyexiv2.

LeoHsiao1 avatar LeoHsiao1 commented on August 25, 2024

When you upload an image through www.dropbox.com, Iit will delete all the metadata of the image to protect your privacy, so I can't try to read it.

Based on your error message, I suggest you try different encoding formats, like this:

this_image.read_exif(encoding='utf-8')
this_image.read_exif(encoding='iso-8859-1')

from pyexiv2.

LeoHsiao1 avatar LeoHsiao1 commented on August 25, 2024

Does that solve your problem?

from pyexiv2.

djotaku avatar djotaku commented on August 25, 2024

Sorry, got a little busy because of COVID.

Yes, that fixes the problem. Thanks!

from pyexiv2.

LeoHsiao1 avatar LeoHsiao1 commented on August 25, 2024

Hope you are ready to defend against the Covid-19 and the chaos it brings.
Wish you health and safety.

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.