ReadonlycontentIts content type.
ReadonlydataThe encoded image.
ReadonlydegradedWhat the planner gave up to fit budgetMs, by name.
Empty when no budget was given, when the request already fit, and on a pass-through, which
costs a header read and never needs a lever. 'effort' means the decode ran fast; 'filter'
means a filter left open went to nearest, and 'scale' means the decoder was asked for a
further reduction and the result is softer. Changing container is not degrading and is
reported by TransformResult.format instead.
'compression' is the one that costs bytes rather than fidelity: a lossless output's
compressor was turned down because the encoder alone was over budget. It never appears when
TransformOptions.compression named a level.
The same lossy-outcome-you-may-want-to-refuse shape as TransformResult.flattened.
ReadonlyflattenedSet when the source held several frames and this output holds only the first.
There is no animated encoder, so any request that actually has work to do reduces an animation to a still. That is a lossy outcome a caller may want to avoid rather than discover, by serving the original or by asking for a request that passes through.
ReadonlyformatWhat it was encoded as.
ReadonlyheightHeight of the output in pixels.
ReadonlywidthWidth of the output in pixels.
The result of a one-shot transformation.
Carries the bytes and the conveniences a Worker actually wants, so nobody has to build a
Responseor adata:URL by hand.