james-see / iptcinfo3

iptcinfo working for python 3 finally do pip3 install iptcinfo3
52 stars 31 forks source link

n/a #23

Closed mbcullen closed 4 years ago

mbcullen commented 4 years ago

I'm reading keywords from an image exported from Lightroom and I'm seeing a charset error, and the letter b is included before each element in the return.

Here's my snippet of code:

from iptcinfo3 import IPTCInfo

def read_tags(): info = IPTCInfo('test2.jpg') words = info['keywords'] print(words)

And this is the output:

WARNING: problems with charset recognition (b'\x1b') [b'cambodia', b'cow', b'overcast', b'temple']

This is the image that I'm running it on. test2

I can suppress the error, but is there a way to stop returning the extraneous b character?

mbcullen commented 4 years ago

Not actually an issue.

nealmcb commented 3 years ago

See #32