Why does 'imwrite' not preserve transparency in animated GIFs?

10 次查看(过去 30 天)
When creating an animated GIF using the 'imwrite' function, previous frames are not cleared. How do I clear them?

采纳的回答

MathWorks Support Team
To make sure that previous frames are cleared, set pass the Option-Value pair ('DisposalMethod','restoreBG') to the 'imwrite' function.
An example with a reproduction of the issue and a solution is shown in the attached script.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Animation 的更多信息

标签

尚未输入任何标签。

产品


版本

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by