OptionalmetadataMetadata to include, see Metadata
OptionaloptimizeWhether to store each frame as the area that changed since the frame before and merge identical frames, which
usually makes files a lot smaller. The file shows the same animation either way, but only decodes to the same
frames without it, which also encodes faster when little changes. Default: true
Optionalquality1-100, scales the palette size from 8 colors (1) to 256 colors (90 and above). Default: 95
Options of Animation.encodeGIF