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.
I can suppress the error, but is there a way to stop returning the extraneous b character?
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:
And this is the output:
This is the image that I'm running it on.
I can suppress the error, but is there a way to stop returning the extraneous b character?