UnigramDev/Unigram/develop • a7f0db0 • 1 files, +34/-26
Honour requestedMinSide for every format in GetPreviewBitmapAsync
The method asked the decoder for its own BitmapPixelFormat, which
SoftwareBitmapSource accepts only when it happens to be Bgra8. The guard was
therefore testing the input rather than the output, and everything else fell
through to a BitmapImage decoded at full size, dropping requestedMinSide on the
path where it matters most.
Requesting Bgra8 premultiplied directly lets the decoder convert, which removes
the reason for the branch. One path, always the format SoftwareBitmapSource
needs, always bounded.
SoftwareBitmapSource holds a single frame, so an animated GIF would come back
static. Nothing reaches this with a GIF today, since StorageMedia previews
photos through a BitmapImage and only calls the overload above for video; the
summary records what a future caller would need.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
UnigramDev/Unigram/develop • 8700dde • 9 files, +27/-36
Update nuget packages
UnigramDev/Unigram/develop • ec916c0 • 3 files, +3/-1
Update round font
UnigramDev/Unigram/develop • 3be5e09 • 2 files, +3/-3
Fix ephemeral messages icon
UnigramDev/Unigram/develop • af506e6 • 2 files, +4/-4
Update property name
UnigramDev/Unigram/develop • e8560fb • 1 files, +1/-1
Update MicroTeX
UnigramDev/Unigram/develop • ce8637e • 5 files, +72/-7
New unsupported message template
#unigram
Post #20509
73
- 🫡 2