phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00117
[Bug 384315] Re: Attempting to add metadata to unsupported types
Unfortunately I'm still getting the exception:
Traceback (most recent call last):
File "/home/nadia/projects/phatch/phatch/core/api.py", line 293, in flush_metadata
photo.flush_metadata()
File "/home/nadia/projects/phatch/phatch/core/pil.py", line 388, in flush_metadata
self.log += exif.flush(self.info['path'],self.metadata)
File "/home/nadia/projects/phatch/phatch/core/lib/_pyexiv2.py", line 158, in flush
image.writeMetadata()
IOError: Setting Exif metadata in PNG images is not supported
*
Error 1: Can not write metadata to image 'mouse.png' in folder:
/home/nadia/Desktop/exper/test
Setting Exif metadata in PNG images is not supported
Traceback (most recent call last):
File "/home/nadia/projects/phatch/phatch/core/api.py", line 293, in flush_metadata
photo.flush_metadata()
File "/home/nadia/projects/phatch/phatch/core/pil.py", line 388, in flush_metadata
self.log += exif.flush(self.info['path'],self.metadata)
File "/home/nadia/projects/phatch/phatch/core/lib/_pyexiv2.py", line 158, in flush
image.writeMetadata()
IOError: Setting Exif metadata in PNG images is not supported
*
--
Attempting to add metadata to unsupported types
https://bugs.launchpad.net/bugs/384315
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.
Status in Phatch = Photo & Batch!: Fix Committed
Bug description:
If you have the 'Save metadata' option selected in the execute dialog. You'll get lot's of warnings like this:
Warning 2:
Failed to save metadata to /path/to/file/phatch/Shiny.png:
pyexiv2: Setting Exif metadata in PNG images is not supported
Trying again by ignoring tags with following pattern:
Exif[.]Canon
I suggest pre-checking types before attempting to write metadata.
References