Page MenuHomePhabricator

Use "-dispose background" to improve reassembly of GIFs with transparency
ClosedPublic

Authored by epriestley on Mar 13 2018, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 25, 12:01 PM
Unknown Object (File)
Sun, May 25, 9:30 AM
Unknown Object (File)
Wed, May 21, 8:28 AM
Unknown Object (File)
Apr 23 2025, 1:02 PM
Unknown Object (File)
Apr 21 2025, 9:07 AM
Unknown Object (File)
Apr 20 2025, 4:33 PM
Unknown Object (File)
Apr 19 2025, 2:23 AM
Unknown Object (File)
Apr 18 2025, 11:43 PM
Subscribers
None

Details

Summary

Fixes T5741. We break GIFs apart with "-coalesce" which completely rasterizes each frame, but stitch them back together without specifying "-dispose".

This produces the default "-dispose none" behavior, which causes GIF frames to "pile up" if they contain transparency.

Instead, use "-dispose background" so that the previous frame is erased before each new frame is drawn.

Test Plan

See T5741 for additional details.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable