The image data
Optionaloptions: AnimationDecodeOptions & DecodeOptionsSee AnimationDecodeOptions (for animations) and DecodeOptions (for images)
Decodes any supported image: GIFs are returned as GIF (an Animation), animated WebPs as Animation, everything else (including APNGs, as their default image) as Image. Animation.decode decodes the frames of GIFs, APNGs and WebPs
The image data
OptionalonlyExtractFirstFrame: booleanWhether to end animation decoding after the first frame
Decodes any supported image: GIFs are returned as GIF (an Animation), animated WebPs as Animation, everything else (including APNGs, as their default image) as Image. Animation.decode decodes the frames of GIFs, APNGs and WebPs