Home / ZER0 Vault / ZERO Bulk Image Compressor
Free Bulk Image Compressor: Shrink JPG, PNG and WebP Photos in One Run
Shrink a whole folder of JPG, PNG and WebP pictures in one run, with three quality levels.
Short link to share: zeroupdates.org/compressor
What it does
Reads every JPG, PNG and WebP in a folder called images, saves a smaller copy of each into a folder called compressed, and prints the before and after size. Your originals are never touched.
How to use it
- Install Python 3, then run
pip install Pillowonce. - Put the script in any folder and run it once. It creates an
imagesfolder. - Copy your pictures into
imagesand run the script again. - Pick 1 (smallest, quality 60), 2 (quality 80) or 3 (quality 90, the default).
- Collect the results from the
compressedfolder.
Requirements
Python 3 and the Pillow library (pip install Pillow).
Good to know
- Large phone and camera photos shrink a lot. Images that are already optimised barely change.
- The quality setting mainly affects JPEG. PNG files are re-saved with optimisation but will not shrink as much.
- Pictures with transparency are converted to a solid background, so transparency is lost.
- Only the top level of the
imagesfolder is read, not sub-folders.
Is it safe?
Read the script first: it is plain text and takes a minute. Only run files you trust, and check the SHA-256 below matches what you downloaded.
SHA-256 of ZERO-Image-Compressor.py:
55762880ec56414beddf4122976f52f5177a16bd65181514c159bb6253b5fb24
On Windows: certutil -hashfile ZERO-Image-Compressor.py SHA256. On macOS or Linux: shasum -a 256 ZERO-Image-Compressor.py.
Made by ZER0 Updates and provided as is, with no warranty. You are responsible for how you use it. Back up anything important before running a tool that changes or deletes files.
More tools
- ZERO PDF MergerJoin every PDF in a folder into one file, offline.
- ZERO Bulk File OrganizerRename messy files and sort them into Images, Videos, Music and Documents folders.
- ZERO Auto-CleanerDelete temporary and cache files to free up disk space.
- ZERO PC OptimizerA small Windows script that clears temp files, flushes DNS and switches to the High Performance power plan.
- ZERO Folder LockerHide a private folder behind a simple password prompt.
- ZERO WiFi Password RevealerShow the passwords of Wi-Fi networks your Windows PC has already saved.
- ZERO WiFi Password ViewerPython version of the Wi-Fi password viewer: lists saved networks on Windows and Linux.
- ZERO Playlist to MP3Turn a YouTube playlist or single video into numbered MP3 files using yt-dlp.
- ZERO Subtitle DownloaderFind English subtitles for the video files in a folder, using the subliminal library.
- ZERO Unfollower TrackerSee who you follow on Instagram that does not follow you back, using your own data export. No login.
- ZERO Duplicate File FinderFind identical files in a folder and optionally move the extra copies aside. Nothing is deleted.
- ZERO Password GeneratorMake strong random passwords on your own computer. Nothing is saved or sent.
- ZERO File Hash CheckerCheck that a download is exactly the file the publisher meant you to get.
- ZERO QR Code MakerTurn a link, some text or your Wi-Fi details into a QR code image.
- ZERO Bulk RenamerRename lots of files at once, with a preview first and an undo.
- ZERO Folder Size ReportSee which folders and files take up the most space on your drive.