--- a/src/pyams_file/zmi/image.py Tue Feb 06 13:58:18 2018 +0100
+++ b/src/pyams_file/zmi/image.py Fri Feb 09 15:38:35 2018 +0100
@@ -161,7 +161,7 @@
@property
def label(self):
- return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++square:200x128.jpeg?_=" ' \
+ return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++square:200x128?_=" ' \
'/></div>'.format(label=self.request.localizer.translate(self._label),
url=absolute_url(self.context, self.request))
@@ -244,7 +244,7 @@
@property
def label(self):
- return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++pano:200x128.jpeg?_=" ' \
+ return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++pano:200x128?_=" ' \
'/></div>'.format(label=self.request.localizer.translate(self._label),
url=absolute_url(self.context, self.request))
@@ -382,7 +382,7 @@
@property
def label(self):
- return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++xs:200x128.jpeg?_=" ' \
+ return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++xs:200x128?_=" ' \
'/></div>'.format(label=self.request.localizer.translate(self._label),
url=absolute_url(self.context, self.request))
@@ -423,7 +423,7 @@
@property
def label(self):
- return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++sm:200x128.jpeg?_=" ' \
+ return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++sm:200x128?_=" ' \
'/></div>'.format(label=self.request.localizer.translate(self._label),
url=absolute_url(self.context, self.request))
@@ -464,7 +464,7 @@
@property
def label(self):
- return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++md:200x128.jpeg?_=" ' \
+ return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++md:200x128?_=" ' \
'/></div>'.format(label=self.request.localizer.translate(self._label),
url=absolute_url(self.context, self.request))
@@ -505,7 +505,7 @@
@property
def label(self):
- return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++lg:200x128.jpeg?_=" ' \
+ return '<div>{label}</div><div class="padding-y-5"><img src="{url}/++thumb++lg:200x128?_=" ' \
'/></div>'.format(label=self.request.localizer.translate(self._label),
url=absolute_url(self.context, self.request))
@@ -588,7 +588,7 @@
selection = thumbnails.get_selection(name)
transaction.commit()
thumbnails = IThumbnail(selection)
- thumbnails.get_thumbnail('200x128', 'jpeg')
+ thumbnails.get_thumbnail('200x128')
thumbnailers.setdefault(translate(adapter.section), []).append({'name': name,
'label': translate(adapter.label)})
transaction.commit()