mastodon / mastodon-android

Official Android app for Mastodon
https://app.joinmastodon.org/android
GNU General Public License v3.0
1.72k stars 266 forks source link

GIFs might be zoomed when opening #644

Open sk22 opened 1 year ago

sk22 commented 1 year ago

I'm assuming that the media metadata in this post doesn't reflect the resolution correctly, causing the opened photo viewer to be zoomed in initially

https://mastodon.social/@cheeaun/110712824335044883

https://github.com/mastodon/mastodon-android/assets/6217438/2408a07b-5c27-47eb-a1ee-10ff640e8279

grishka commented 1 year ago

Might be the same reason why Pleroma makes images squeezed, since Pleroma apparently doesn't return the image dimensions in the API. Someone reported this to me on Discord just yesterday

sk22 commented 1 year ago

yeah, sure sounds like a similar issue

grishka commented 1 year ago

Actually, the thumbnails themselves are stretched like that: https://files.mastodon.social/media_attachments/files/110/712/824/122/931/381/small/a8f444c8cbc3fd8b.png https://files.mastodon.social/media_attachments/files/110/712/824/117/408/498/small/32f950b1f091d36c.png

The app believes what the server says and renders the attachments the size it says they are.