Mercurial > libervia-backend
diff sat/plugins/plugin_comp_file_sharing.py @ 3329:15612c0fb421
plugin XEP-0264: updated size to get values closest to standard one:
- sizes used for thumbnails are now matching common resolutions.
- added BIG and FULL_SCREEN sizes
- sort thumbnails by sizes when parsing them.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 13 Aug 2020 23:45:59 +0200 |
parents | 5887fb414758 |
children | b1e9f17fbb5a |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_file_sharing.py Mon Aug 03 08:45:49 2020 +0200 +++ b/sat/plugins/plugin_comp_file_sharing.py Thu Aug 13 23:45:59 2020 +0200 @@ -434,7 +434,7 @@ if mime_type is not None and mime_type.startswith("image"): thumbnails = extra.setdefault(C.KEY_THUMBNAILS, []) - for max_thumb_size in (self._t.SIZE_SMALL, self._t.SIZE_MEDIUM): + for max_thumb_size in self._t.SIZES: try: thumb_size, thumb_id = await self._t.generateThumbnail( final_path,