phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00631
[Bug 419459] Re: An exception when attempting to save an svg as <type>
** Changed in: phatch
Status: Fix Committed => Fix Released
** Changed in: phatch
Milestone: None => 0.2.1
--
An exception when attempting to save an svg as <type>
https://bugs.launchpad.net/bugs/419459
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:
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'
References