Files you can use and download
Image Compressor accepts image/jpeg, image/png, image/webp. Image Compressor produces downloadable image.
Re-encode an image as JPEG with a browser canvas quality setting and compare the resulting size.
Image Compressor accepts image/jpeg, image/png, image/webp. Image Compressor produces downloadable image.
For Image Compressor, jPEG cannot store alpha transparency. For Image Compressor, this implementation fills transparent pixels with white unless a single-format page exposes and submits another background color.
For Image Compressor, lossy output quality is passed to the browser canvas encoder, or clamped to 10–100 by the HEIC server path. For Image Compressor, pNG canvas output ignores the lossy quality argument. For Image Compressor, the setting is not a target file size.
For Image Compressor, browser image paths draw decoded pixels to canvas and encode a new file. For Image Compressor, the code does not copy EXIF, GPS, IPTC, XMP, original filenames, animation frames, or other source metadata into the canvas output.
For Image Compressor, success depends on the current browser being able to decode the selected source format and encode the requested canvas MIME type. For Image Compressor, unsupported AVIF or WebP codecs can cause loading or output-type failure.
Image Compressor enforced limits: Quality control: 10–100 in steps of 5; One browser-decodable JPEG, PNG or WebP image The browser paths declare no application-level byte limit. For Image Compressor, browser memory, maximum canvas dimensions, and device resources can still prevent large images from completing.
For Image Compressor, the selected file is read and re-encoded in the browser; this page code does not upload it to the application server.
Image Compressor sample input: One small JPEG image; quality = 80%. Image Compressor expected result: The expected download is a JPEG re-encoded at 80% canvas quality, with before and estimated-after sizes displayed; a smaller file is not guaranteed. To verify Image Compressor, reproduce its worked example and compare the displayed or downloaded downloadable image with the stated expected result. When Image Compressor returns a file, open the download and inspect every affected page or image.
Continue the workflow
Image Compressor is part of the Image Tools section. Use the nearby pages below when the same job needs checking, cleanup, conversion, formatting, or a different output before you finish.