Page MenuHomePhabricator

When `{meme ...}` embed has no text, just use the raw file data unmodified
ClosedPublic

Authored by epriestley on Nov 6 2018, 5:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 6:32 PM
Unknown Object (File)
Oct 9 2024, 10:30 AM
Unknown Object (File)
Oct 9 2024, 8:19 AM
Unknown Object (File)
Sep 30 2024, 4:55 AM
Unknown Object (File)
Sep 30 2024, 3:11 AM
Unknown Object (File)
Sep 10 2024, 4:09 PM
Unknown Object (File)
Sep 6 2024, 4:16 AM
Unknown Object (File)
Aug 29 2024, 5:24 PM
Subscribers
None

Details

Summary

Ref T13216. See PHI948. When you use the remarkup hint button to embed a meme with no text, you get {meme src=X}.

If the source is a GIF, we currently split the source apart into frame-by-frame images, process them, and stitch them back together. The end result is the same image we started with, but this process can be slow/expensive, and may timeout for sufficiently large GIFs.

Instead: when there's no text, just return the original image data.

Test Plan
  • Used {meme src=X} with no text, got an image faster.
  • Used {meme src=X, above=...} to add text, got an attempt to add text (which didn't get very far locally since I don't have GD configured).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable