OptionalbackgroundOptionalcropOptionalflipOptionalflipOptionalformatOutput format. Default: the input Blob's type when supported;
image/png for canvas/ImageData sources (they may carry alpha);
otherwise image/jpeg.
OptionalmaxTarget-size mode: re-encode with descending quality (bounded binary
search) until the output is at most this many bytes. Lossy formats
only. When the budget cannot be met even at minimum quality, the
smallest best-effort result is returned and targetSizeMet is false.
OptionalonOptionalquality0..1, default 0.85. Ignored for PNG (lossless).
OptionalresizeOptionalrotateDegrees clockwise. Any value; multiples of 90 are exact.
Optionalsignal
Fill colour used where rotation exposes corners and when flattening transparency for JPEG. Default
#fffffffor JPEG output, transparent otherwise. Set tonullto force transparency (non-JPEG only).