OptionalloopHow many times to repeat the animation (-1 = forever, 0 = play once). Default: -1
OptionalmetadataMetadata to include, see Metadata
OptionaloptimizeWhether to store each frame as the area that changed since the frame before and merge identical frames, like
AnimationEncodeOptions.optimize. Default: true
The options all animation encoders of Animation.webpEncoder and the others have