Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fix on tiff change

  • Loading branch information...
commit 5b241b5b02fcdea932fc4113202c18c595db1946 1 parent 32f4141
Keith authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 athumb/fields.py
View
4 athumb/fields.py
@@ -105,7 +105,9 @@ def save(self, name, content, save=True):
if self.field.tiff2png:
newcontent = self._convert_tiff_to_png(name, content)
newname = name.rsplit('.', 1)[0] + ".png"
- else: newcontent = content
+ else:
+ newcontent = content
+ newname = name
super(ImageWithThumbsFieldFile, self).save(newname, newcontent, save)
self.generate_thumbs(name, content)
Please sign in to comment.
Something went wrong with that request. Please try again.