trailer = self.XMP_TRAILER[:-6].encode(self.encoding) # TODO handle read-only mode
trailerPos = xmp.find(trailer)
assert trailerPos != -1, "No xmp trailer found"
trailer = self.XMP_TRAILER[:-6].encode(self.encoding) # TODO handle read-only mode
trailerPos = xmp.find(trailer)
assert trailerPos != -1, "No xmp trailer found"