Compress an image to meet an upload size limit
Published
When an upload form gives you a limit in KB or MB, use Hawaf BG’s compressor to compare file sizes at the current dimensions. A different format or quality level may help, depending on what the form accepts.
Work toward the form’s file-size limit
- Read the form’s accepted formats and maximum size. Choose JPG if it requires JPG. If it accepts WebP, you can compare both outputs at the same dimensions.
- Load the image in Compress image mode. Try a moderate quality setting, wait for the result size, then lower quality a little if the file is still too large. Check text, edges and fine patterns in the preview.
- Download the file and verify its size and format in Files. If it is still too large, resize a copy first when the form allows smaller dimensions, then compress that copy.
When the file becomes larger
The original may already be well compressed. Compare the new size before replacing it. For example, with a 500 KB limit, keep the first version below the limit whose fine details are still readable. Use PNG when required and check the result after resizing, since the quality slider applies to JPG and WebP.