An exception when attempting to save an svg as <type>

Bug #419459 reported by Nadia Alramli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Phatch
Fix Released
Medium
Nadia Alramli

Bug Description

The save action by default save's the image in it's current format type. That doesn't work for svg obviously. So we need to use an alternative type for it like png.

Traceback (most recent call last):
  File "/home/nadia/projects/phatch/phatch/core/api.py", line 311, in apply_action
    photo = action.apply(photo, setting, cache)
  File "/home/nadia/projects/phatch/phatch/actions/save.py", line 157, in apply
    **options)
  File "/home/nadia/projects/phatch/phatch/core/pil.py", line 647, in save
    image.save(filename, **options)
  File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1390, in save
    raise KeyError(ext) # unknown extension
KeyError: u'.svg'

Revision history for this message
Stani (stani) wrote :

- to png
- note in photo.log

Changed in phatch:
assignee: nobody → Nadia Alramli (nadiana)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Nadia Alramli (nadiana) wrote :

A fix was pushed to my personal branch

Changed in phatch:
status: Confirmed → In Progress
Revision history for this message
Nadia Alramli (nadiana) wrote :

Fixed in rev[1040]

Changed in phatch:
status: In Progress → Fix Committed
Stani (stani)
Changed in phatch:
milestone: none → 0.2.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.