phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00457
[Bug 393253] Re: Save action should convert types before saving
Nadia: "This bug was partly fixed. Users may still get exceptions if
they attempt to save P mode images into BMP for example. The complete
fix needs some researching of modes supported by different image
formats."
I mark it as triaged as it will not be a blocker for Phatch 0.2
** Changed in: phatch
Status: Confirmed => Triaged
--
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!: Triaged
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