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
F14075028: D19214.id46012.diff
Thu, Nov 21, 9:34 AM
Unknown Object (File)
Tue, Nov 19, 8:02 AM
Unknown Object (File)
Sat, Nov 9, 3:02 PM
Unknown Object (File)
Sun, Nov 3, 9:57 AM
Unknown Object (File)
Fri, Oct 25, 7:43 PM
Unknown Object (File)
Oct 21 2024, 10:52 AM
Unknown Object (File)
Oct 18 2024, 5:04 PM
Unknown Object (File)
Oct 9 2024, 4:37 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