Getting an image under a strict size limit often feels like a guessing game. You lower the quality, the file shrinks, but the photo looks blurry or blocky. The trick is to change the image’s format and dimensions before you even think about compression. Convert first, then compress, and you will hit the limit with far less damage.
Why Format Matters Before Compression
JPG uses lossy compression and is accepted almost everywhere, including email and upload forms. That makes it the natural target for a size limit. But if you start with a PNG, you are carrying extra bulk. PNG is lossless and supports transparency, but photos saved as PNG are much larger than as JPG. So the first step is to convert that PNG to JPG. That single change can cut the file size dramatically before you even touch quality settings.
Once you convert to JPG, you can then apply compression. But converting first means the compressor has a much smaller starting point, so you do not have to crush the quality as hard. Quality around 80 is a common starting point for web photos. That gives you a good balance of size and sharpness for most photographs.
Resize Before You Lower Quality
Resizing to the size an image is displayed at usually saves more space than lowering quality. If you upload a very wide photo but the site shows it at a much smaller size, you are wasting most of the data. Shrinking the dimensions first can reduce the pixel count by a large factor, and the file size drops right along with it. After that, you may not need to lower the quality setting much at all.
Here is the practical order:
- Open the original and check the pixel dimensions.
- Resize to the largest size it will be displayed, not larger.
- Convert to JPG if it is not already one.
- Then apply quality adjustments if you still need a smaller file.
This order matters because resizing a JPG after saving it causes another generation of quality loss. Each time a JPG is edited and saved again it loses a little more quality, so keep an original. If you resize first, you only lose quality once. If you compress first and then resize, you lose quality twice, and the resizing may introduce artifacts that were not there before.
What About Transparency?
If your image has transparency, like a logo or a graphic with a transparent background, PNG is the right format. But for photos, transparency is rarely needed, and the file size penalty is huge. In that case, converting to JPG is the right move. If you do need transparency, you cannot use JPG, so keep the PNG. But for a photo under a size limit, JPG is almost always the better choice.
When to Keep the PNG
Keep PNG if the image has text, sharp edges, or a solid color background that you want to keep crisp. JPG’s lossy compression will blur those edges and create halos. For a photo, though, the artifacts are much less noticeable. So the rule is simple: photos go to JPG, graphics with transparency stay PNG.
The Two-Step Workflow That Works
Here is a clean workflow that gets you under the limit without wrecking the image:
- Convert to JPG if the file is PNG, WebP, HEIC, or any other format. Use a free JPG converter to do the conversion in one click.
- Resize the image to the exact display width or height you need. Do not guess; check the size limit and the intended display size.
- Compress the JPG with quality around 80. If it is still too large, lower the quality in small steps.
This order is not optional. If you compress first, you are wasting effort on a file that will be discarded during resizing. If you resize first, you are also making the compressor’s job easier because there are fewer pixels to process.
Practical Checks Before You Upload
Before you upload, do a quick check of the file size. If it is still too large, look at the dimensions again. Could you display it smaller? If not, then lower the quality in small increments, say from 80 to a lower setting, and check again. Avoid going below a moderate quality level unless the image is small and the artifacts are acceptable.
Also, remember that saving a JPG repeatedly degrades it. So keep the original file safe. If you need to make a different size or quality later, start from the original, not from the compressed version. That way you avoid the cumulative quality loss from repeated saves.
Finally, use the free tools at jpg.now to handle the conversion and resizing. The file size calculator can tell you exactly how many bytes a given dimension and quality setting will produce, so you can plan before you export.