Closed GoogleCodeExporter closed 9 years ago
You need to open the file in read/write mode by using the XMP_OPEN_FORUPDATE
flag:
xmpfile = XMPFiles(file_path=yourfile, open_forupdate=files.XMP_OPEN_FORUPDATE)
Original comment by ghi...@gmail.com
on 17 Jun 2009 at 10:03
Yeah, as ghiron mention the file needs to be opened with OPEN_FOR_UPDATE. This
is now done like this:
xmpfile.open_file( '.tempsamples/sig05-002a.tif', open_forupdate=True )
See XMPFilesTestCase.test_write_in_readonly in test/test_files.py
Original comment by lniel...@spacetelescope.org
on 16 Feb 2010 at 5:16
Original issue reported on code.google.com by
clr.port...@gmail.com
on 8 May 2009 at 9:59