mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-22 08:51:32 +00:00
getLoadedImage subsampled with an OR cap on the larger side, so tall images (e.g. phone screenshots) were reduced far below the display size and rendered blurry. Mirror Android's calculateInSampleSize (keep the smaller side at the target) so previews stay sharp, and add a decoded- pixel ceiling so extreme aspect ratios can't blow up decode memory.