You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
Stickers on Telegram may have one side smaller than 512.
With #250 fixed thumbnails are created correctly now, 512x266 for example, but metadata is incorrect now.
thumbnailWidth: 512,thumbnailHeight: 512,
Riot for web squeezes stickers with non 1:1 ratio, Riot for Android crops them.
One side is always 512, while another can be anywhere smaller.
I think, the easiest fix is to use one more sharp library method, something like that:
Stickers on Telegram may have one side smaller than 512.
With #250 fixed thumbnails are created correctly now, 512x266 for example, but metadata is incorrect now.
Riot for web squeezes stickers with non 1:1 ratio, Riot for Android crops them.
One side is always 512, while another can be anywhere smaller.
I think, the easiest fix is to use one more sharp library method, something like that:
Please note: I didn't test if this works.
The text was updated successfully, but these errors were encountered: