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)
Tue, Jan 21, 9:35 AM
Unknown Object (File)
Sat, Jan 18, 7:39 AM
Unknown Object (File)
Mon, Jan 6, 2:08 PM
Unknown Object (File)
Fri, Dec 27, 8:57 PM
Unknown Object (File)
Dec 22 2024, 8:31 PM
Unknown Object (File)
Dec 13 2024, 7:39 PM
Unknown Object (File)
Dec 13 2024, 7:48 AM
Unknown Object (File)
Dec 13 2024, 5:44 AM
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