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
F15402233: D19214.id46011.diff
Mon, Mar 17, 9:29 PM
F15337445: D19214.diff
Sun, Mar 9, 5:55 AM
F15333807: D19214.id46012.diff
Sat, Mar 8, 5:02 AM
Unknown Object (File)
Thu, Feb 20, 4:49 PM
Unknown Object (File)
Thu, Feb 20, 4:49 PM
Unknown Object (File)
Thu, Feb 20, 4:49 PM
Unknown Object (File)
Wed, Feb 19, 1:10 PM
Unknown Object (File)
Feb 13 2025, 8:45 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