Give a file-size rejection its own result in an image-preview flow. You can check the selected file's byte budget before starting decoding, then report a size problem without calling it an image-decoding failure.
MDN documents File.size, inherited f...
A JPEG export can leave a soft fringe around colored text even when the image keeps its original dimensions. Before pushing the quality slider higher, check whether the encoder is reducing the resolution of the color channels. That process is called ...