mastodon-android icon indicating copy to clipboard operation
mastodon-android copied to clipboard

Tall image rendered in bad quality in timeline

Open sk22 opened this issue 3 years ago • 5 comments

in the timeline, images seem to be rendered (~probably a preview is downloaded from the server?~) in a lower quality, which also applies to tall images. tall images are, however, displayed in full width, which makes the lower quality very apparent and pretty awful to look at:

Screenshot_20220602-095946064

in the image viewer, the quality is much better:

Screenshot_20220602-095953698 Screenshot_20220602-100101167

sk22 avatar Jun 02 '22 08:06 sk22

Bitmaps take a lot of memory so there's a hard limit to their maximum size when displayed in lists.

grishka avatar Jun 02 '22 08:06 grishka

given my assumption about the app first downloading a preview image from the server is correct, i'm not sure on what's the best way to fix this. maybe preview images could be rendered with a maximum height of the image height? or just some max height value for preview images, which would also fix #167

sk22 avatar Jun 02 '22 08:06 sk22

Bitmaps take a lot of memory so there's a hard limit to their maximum size when displayed in lists.

oh okay, so it's not some preview that's getting downloaded and displayed?

sk22 avatar Jun 02 '22 08:06 sk22

given my assumption about the app first downloading a preview image from the server is correct

It is not.

grishka avatar Jun 02 '22 08:06 grishka

alright, good to know

sk22 avatar Jun 02 '22 08:06 sk22