What toBlob Actually Emits at Each Quality Setting
Dragging a JPEG in gives you an ImageBitmap; drawImage paints it into an OffscreenCanvas and toBlob returns a fresh bitstream. The quality argument is a float from 0 to 1, not a portable percentage. Chromium maps it onto JPEG quantization-table scaling and onto VP8 quantizer indices for WebP, so the same 0.8 yields different sizes and artefacts per codec.
PNG ignores quality: the Canvas specification says the argument has no effect for image/png, which is why the slider appears dead and output sometimes grows. Shrinking a PNG requires palette quantisation to 256 colours or fewer. To judge any encode, compare it with the original at identical dimensions and compute SSIM; above 0.98 is usually indistinguishable, while 0.90 shows blocking in gradients.