An ImageEncoder over tinyimg. It passes fit: 'scale-down' when a width is set, which
keeps tinyimg from upscaling, passes lossless and budgetMs when the proxy sets them, and
returns the bytes of the result. A module whose version is older than
TINYIMG_MIN_VERSION is refused with a ProtocolError, since converting an EXIF-rotated
JPEG with it would serve the picture sideways. A module that reports no version is accepted.
An ImageEncoder over tinyimg. It passes
fit: 'scale-down'when a width is set, which keeps tinyimg from upscaling, passeslosslessandbudgetMswhen the proxy sets them, and returns the bytes of the result. A module whoseversionis older than TINYIMG_MIN_VERSION is refused with aProtocolError, since converting an EXIF-rotated JPEG with it would serve the picture sideways. A module that reports no version is accepted.