astrofrog / pyavm

Pure-python AVM library
http://astrofrog.github.io/pyavm/
Other
20 stars 9 forks source link

AVM_from_image not returning avm #41

Open nrawolk opened 3 years ago

nrawolk commented 3 years ago

When I try to read a jpg that has been processed through Adobe Bridge, I get the following error:

/Users/nwolk/opt/anaconda3/lib/python3.8/site-packages/pyavm/extract.py:73: UserWarning: Only PNG and JPEG files can be properly parsed - scanning file contents for XMP packet warnings.warn("Only PNG and JPEG files can be properly parsed "

/Users/nwolk/opt/anaconda3/lib/python3.8/site-packages/pyavm/avm.py:435: UserWarning: ignoring tag dc:format warnings.warn("ignoring tag %s:%s" % (tag, name))

The file I am reading IS a jpg and has the following tag in the file: image/jpeg</dc:format> Of course, this is the rage being ignored.

There are tiff tags as well for when the file was created.

How can I get this dc:format tag read correctly?