decode
Decode data into a KiteBitmap, sniffing the format first. Animated inputs yield their first frame (composited); use decodeAnimation for the full sequence.
With applyOrientation the EXIF orientation tag is honoured, so a phone photo comes back the way it was shot instead of on its side. It defaults to false because it changes the returned dimensions, and a caller that already handles orientation itself should not pay for it twice: check ImageInfo.orientation from probe if you want to decide per file.
Throws
on malformed/truncated input or unknown format
on formats recognised but not yet decodable (see ImageFormat: sniffing is deliberately wider than decoding)