← Back to team overview

phatch-dev team mailing list archive

[Bug 393253] Re: Save action should convert types before saving

 

This bug was completely fixed with convert_save_mode_format

** Changed in: phatch
       Status: Triaged => Fix Committed

** Changed in: phatch
       Status: Fix Committed => Fix Released

-- 
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!: Fix Released

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