Compress PNG on Mac
Compress PNG on Mac with Preview resize, oxipng lossless recompression, and GetCompress batch presets. Shrink screenshots without losing transparency.
A Figma export at 2880 px wide lands in Slack as an 8 MB PNG. The message sends, but the thread crawls on mobile data and the upload form rejects the same file on the second try. PNG is the right format for UI with transparency, yet full-monitor exports are almost never viewed at that size. You need smaller pixel dimensions, lossless recompression, or a format change when alpha is not required.
Why PNG files get large
PNG stores pixels without the blocky artifacts you see in heavy JPEG compression. That fidelity costs bytes, especially on photos and noisy gradients exported from design tools.
| Source | Typical cause |
|---|---|
| Design tool export | Full artboard width at 2x or 3x |
| Screenshot | Retina capture at native resolution |
| Photo saved as PNG | Camera roll converted without resize |
| Layered export | Flattened bitmap larger than the frame |
Check pixel width before you tune anything else. A 4000 px PNG shown in an 800 px column still downloads like a poster. See how to compress images on Mac for the display-size rule across JPEG, PNG, and WebP.
Lossless vs lossy for PNG
PNG compression is lossless by default: every pixel survives re-save. You can still shrink the file by removing redundant data in the bitstream or by converting to a lossy format when transparency does not matter.
| Approach | Best when |
|---|---|
| Resize pixels | Image displays smaller on screen |
| Lossless PNG tools | Transparency must stay; UI stays sharp |
| WebP or JPEG | No alpha; photos and heroes for web |
| Lower color depth | Flat UI with few distinct colors |
Read lossy vs lossless compression before you convert a screenshot to JPEG and lose crisp edges. When the destination is a website, PNG to WebP on Mac often beats aggressive PNG filtering alone.
Resize in Preview first
Preview is the fastest built-in path for one or a few PNG files:
- Open the PNG in Preview.
- Choose Tools → Adjust Size… and set width in pixels (for example 1920 for a hero, 1280 for a deck slide).
- Choose File → Export… and keep format PNG if transparency matters.
- Save as a new file and compare byte size in Finder.
Zoom on small type, icon edges, and semi-transparent overlays. If the image is a photo without alpha, export as JPEG at quality 85 instead and keep the original PNG archived separately.
Photos can export selections, but Preview handles PNG transparency more predictably for handoff folders.
Lossless recompression with oxipng
After resize, lossless recompression shaves extra bytes without changing pixels. oxipng rewrites the PNG bitstream more efficiently than most design tool exporters.
Open Terminal (Applications → Utilities → Terminal), install oxipng through Homebrew if needed:
brew install oxipng
oxipng -o 4 --strip safe screenshot.png
The --strip safe flag removes non-critical metadata while keeping color profiles that affect display. Run oxipng on the resized file, not on a 4000 px original you plan to shrink later.
For flat UI with large solid areas, test PNG first. Feeding a photo PNG through oxipng alone rarely fixes a bloated export when dimensions stay oversized.
Batch PNG in Terminal
When a folder of mockups shares the same max width, sips is built in:
mkdir out
for f in *.png; do sips -Z 1920 "$f" --out "out/$f"; done
cd out
for f in *.png; do oxipng -o 4 --strip safe "$f"; done
Write the max width in your project README so the next export sprint does not reintroduce 2880 px files. sips does not remember presets, and mixed folders of PNG, JPEG, and HEIC still need separate commands or a dedicated app.
Online PNG compressors see your unreleased UI when you upload. For client mockups and staging assets, keep processing local. See are online file compressors safe for what upload actually means.
Using GetCompress
GetCompress handles mixed image folders on your Mac without upload. Useful when a handoff directory contains PNG, JPEG, HEIC, and WebP from different sources.
- Drop a folder of PNG screenshots and set max width plus output format in one panel.
- Apply a saved preset (for example “web PNG 1920px + oxipng pass”) instead of retyping sips and oxipng commands each sprint.
- Preview before export when icon edges and text must stay sharp.
- Batch compress PNG on Mac for Slack, CMS uploads, or email without opening each file in Preview.
- Convert PNG to WebP or JPEG in the same pass when the destination no longer needs alpha.
GetCompress does not replace Preview for a quick one-off resize. It pays off when the same settings return every week. Folder monitoring can watch an export directory and compress new PNG files automatically when your design tool drops fresh mockups into a shared handoff folder.
Compare byte size before and after on one representative screenshot, then use the online image comparison slider to check text, icon edges, and transparency at the same position.
- How to Compress Images on MacCompress images on Mac with Preview and Photos. Resize JPG and PNG, convert HEIC, and batch compress with GetCompress.
- Convert PNG to WebP on MacConvert PNG to WebP on Mac with cwebp or GetCompress. Keep a JPEG fallback for older browsers.
- Convert PNG to JPG on MacConvert PNG to JPG on Mac with Preview or Terminal. When to keep PNG for transparency.
- Lossy vs losslessUnderstand lossy and lossless file compression for JPEG, PNG, MP4, PDF, and audio, and when each approach fits your workflow.
Buy GetCompress now for local media compression with reusable presets and no media upload.