Skip to content

Fix blurry fullscreen/peek animated and custom emoji - #2297

Open
anriltine wants to merge 1 commit into
TelegramMessenger:masterfrom
HyperlinksSpace:fix/crisp-fullscreen-sticker-emoji
Open

Fix blurry fullscreen/peek animated and custom emoji#2297
anriltine wants to merge 1 commit into
TelegramMessenger:masterfrom
HyperlinksSpace:fix/crisp-fullscreen-sticker-emoji

Conversation

@anriltine

Copy link
Copy Markdown

Summary

  • Peek / enlarged sticker & custom emoji decoded Lottie/WebM into a small raster buffer (~200px for custom emoji) and displayed it on Retina, which looks soft/pixelated — same class of bug as tdesktop#31158 / Desktop media-viewer thumb upscale.
  • Decode peek animations at native sticker size (capped 512) and slightly enlarge custom-emoji peek layout.
  • Add blurThumbnail: (default true) on chatMessageSticker / chatMessageAnimatedSticker; peek/preview pass false so a waiting thumb is sharp-upscaled, not Blur-softened, until the full asset arrives.

Fixes #2296
Related: #2292
Tracking: HyperlinksSpace/HyperlinksSpaceProgram#92

Test plan

  • Long-press / peek an animated custom emoji on a 2×/3× device — animation should look crisp, not soft
  • Peek a static custom emoji / sticker before and after full download — placeholder should not look Blur-smudged; final frame should be sharp
  • Peek a normal animated sticker — still loops correctly at enlarged size
  • Inline chat stickers/emoji unchanged (default blurThumbnail: true path)

Made with Cursor

Peek used a ~200px Lottie buffer for custom emoji on Retina, and waiting
stills applied Blur-upscaled thumbs. Decode at native 512 and allow sharp
placeholders while the full asset loads (same class of fix as Desktop).

Fixes TelegramMessenger#2296

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fullscreen / enlarged animated custom emoji is blurry (low-res thumbnail upscaled)

1 participant