phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00397
[Bug 393253] Re: Save action should convert types before saving
It would be good if phatch hides this complexity for the user. So yes,
please go ahead. Thanks!
--
Save action should convert types before saving
https://bugs.launchpad.net/bugs/393253
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.
Status in Phatch = Photo & Batch!: Confirmed
Bug description:
For example if you try to save GIF images as jpg you get this error:
Traceback (most recent call last):
File "/home/nadia/projects/phatch/phatch/core/api.py", line 283, in apply_action
photo = action.apply(photo,setting,cache)
File "/home/nadia/projects/phatch/phatch/actions/save.py", line 156, in apply
**options)
File "/home/nadia/projects/phatch/phatch/core/pil.py", line 555, in save
raise IOError(message)
IOError: cannot write mode P as JPEG
*
The save action should handle that type of conversions.
References