Closed Ares-cz closed 1 year ago
This seems to be a resolved issue of exiv2.
https://github.com/Exiv2/exiv2/pull/2133
I would upgrade the version of exiv2 that pyexiv2 depends on to fix the issue.
Alternatively, you can use the method img.read_raw_xmp()
.
I have tried your method, but it doesn't work.
I look forward your upgrade on this issue.
import pyexiv2
img = pyexiv2.Image('./test_image/MS600_0007_450nm.tif') data = img.read_raw_xmp() print(data)
img.close()
The error shows on the
img = pyexiv2.Image('./test_image/MS600_0007_450nm.tif')
it still have the same problem. i am not sure if the problem on my image because i try another image, it could be worked.
This is probably because the xmp metadata for this image is not standardized. Please try exiv2 to see if it can read the xmp metadata for that image.
exiv2 --print x MS600_0007_450nm.tif
when using macOS with Intel chip to test pyexiv2
while it has an error:
RuntimeError: XMP Toolkit error 201: Error in XMLValidator