← Back to team overview

phatch-dev team mailing list archive

[Bug 393253] [NEW] Save action should convert types before saving

 

Public bug reported:

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.

** Affects: phatch
     Importance: Medium
     Assignee: Nadia Alramli (nadiana)
         Status: Confirmed

** Changed in: phatch
   Importance: Undecided => Medium

** Changed in: phatch
       Status: New => Confirmed

** Changed in: phatch
     Assignee: (unassigned) => Nadia Alramli (nadiana)

-- 
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.



Follow ups

References