Don't force JPEG format when generating file thumbnail
authorThierry Florac <thierry.florac@onf.fr>
Thu, 11 Jan 2018 17:15:42 +0100
changeset 74 56efd637473e
parent 73 1b2587206c6b
child 75 b5c2949e7f44
Don't force JPEG format when generating file thumbnail
src/pyams_file/widget/__init__.py
--- a/src/pyams_file/widget/__init__.py	Mon Dec 11 15:26:57 2017 +0100
+++ b/src/pyams_file/widget/__init__.py	Thu Jan 11 17:15:42 2018 +0100
@@ -103,7 +103,7 @@
     def get_thumbnail(self):
         thumbnails = IThumbnail(self.current_value, None)
         if thumbnails is not None:
-            display = thumbnails.get_thumbnail('128x128', 'jpeg')
+            display = thumbnails.get_thumbnail('128x128')
             if display is not None:
                 return '{0}?_={1}'.format(absolute_url(display, self.request), self.timestamp)
         name, ext = os.path.splitext(self.current_value.filename)