TGViewer
Telegram github commits and releases Telegram github commits and releases @tgappsupdates · 4.52K subscribers
Post #20509 73
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
  • 🫡 2
More from @tgappsupdates
  1. Oct 16, 2026Ajaxy/telegram-tt/master • b0afc5e • 3 files, +4/-4 12.0.47 Ajaxy/telegram-tt/master • 6bf…
  2. Oct 15, 2026morethanwords/tweb/master • 1b86ca8 • 2 files, +23/-13 Caption field: the AI button sits o…
  3. Oct 15, 2026morethanwords/tweb/master • 7a1c7e2 • 1 files, +11/-2 Retry a language pack update that fa…
  4. Oct 15, 2026TGX-Android/Telegram-X/main • b960f4c • 1 files, +3/-2 Fix displaying call notification in…
  5. Oct 15, 2026TGX-Android/Telegram-X/main • d9d5897 • 1 files, +3/-2 Fix displaying call notifiaction in…
  6. Oct 15, 2026telegramdesktop/tdesktop/dev • 75c0e28 • 2 files, +77/-185 Share the rich editor inline-fi…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →