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.
This commit is contained in:
parent
f2085455f7
commit
7e404b9f98
1 changed files with 10 additions and 5 deletions
|
|
@ -434,7 +434,7 @@ class FileSharing:
|
|||
|
||||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue