A photo straight off a phone camera can easily run 4-8MB, and a screenshot-heavy PNG isn't much smaller. Neither size is a problem until you need to email a batch of them, upload one to a form with a 2MB cap, or embed a dozen into a document without doubling its file size. Shrinking an image well means understanding that JPG and PNG lose weight through completely different mechanisms.
Why JPG compression is a quality dial
JPG uses lossy compression: it throws away image detail the human eye is less likely to notice — subtle color gradients, fine texture — in exchange for a much smaller file. That's a genuine tradeoff, not a free win. At high quality settings the loss is invisible; push the compression too far and you'll start to see blocky artifacts around sharp edges and banding in smooth gradients like skies. The right setting depends on the photo — a busy, detailed image hides compression artifacts better than a smooth, simple one.
Why PNG shrinks differently — or sometimes not much at all
PNG is lossless: it never discards image data, so recompressing a PNG can't introduce artifacts the way JPG does. Its file size instead comes down to how efficiently repeated pixel patterns are encoded, which is why a PNG screenshot of a mostly-solid-color UI compresses dramatically, while a PNG of a detailed photograph barely shrinks at all — there simply isn't as much repetition for the format to exploit. If a PNG is a photo rather than a screenshot or graphic, converting it to JPG first usually saves far more space than any amount of PNG-specific compression.
Resolution matters more than most people assume
A photo captured at 12 megapixels is massive overkill for anything displayed on a screen, where even a large monitor rarely shows more than 2-3 megapixels at once. Before reaching for aggressive compression settings, check whether the image actually needs its original resolution for its intended use — a photo destined for a web page or an email attachment can usually be scaled down significantly before compression even enters the picture, and the size reduction from resolution alone often outweighs anything compression settings can do on their own.
A practical way to pick a setting
Start from the file's destination. Printing or archiving calls for minimal compression, since quality loss becomes visible at larger sizes or under close inspection. Sharing over email, chat, or social media rarely needs anywhere near full quality — a moderate-to-aggressive setting is usually indistinguishable at normal viewing sizes while cutting the file down substantially. When in doubt, compress once, zoom into the result at 100%, and check the areas most likely to show artifacts — faces, text, and smooth gradients — before deciding it's too aggressive.
Doing this without uploading your images anywhere
DocZap's Compress Image tool re-encodes JPG and PNG files directly in your browser using the canvas APIs built into JavaScript, so a batch of personal photos or work screenshots never has to leave your device just to get smaller.
Try these DocZap tools