# HG changeset patch # User Thierry Florac # Date 1515687342 -3600 # Node ID 56efd637473e5285f12adef4a2c778d5d2b1bb03 # Parent 1b2587206c6b7886bf490870b8b129594fd88cf2 Don't force JPEG format when generating file thumbnail diff -r 1b2587206c6b -r 56efd637473e 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)