I plan to share some great ways to compress PNG files in bulk in this article. And apparently, that is the reason you have ended onto this webpage.
Instead of compressing an image individually, getting it done in bulk is always an good option (say, it should be the BEST option). And if you have a huge pile of PNG files on your computer, and are looking for ways to compress PNG files in bulk, then we would listing out some of the good ways that I know.
Best Ways To Compress PNG Files In Bulk
Compress PNG Files In Bulk On Ubuntu
If you running on Ubuntu machine, then you can get your job done pretty smoothly. And all you need is a utility, optiping. And you can install it by firing the below command:
yum install optipng
Assuming, it has been installed you can use the below streak of commands to compress all the PNG images in batch.
for i in *.png; do optipng -o5 -quiet -keep -preserve –dir optimized -log optipng.log “$i”; done
Technically, this is what you have to do. Rest would be taken care by the OS and depending on the number of the images, you will have a final collection of compressed (or say, optimized) PNG images.
ImageOptim (For Mac)
Mac does let you compress or convert images without any third party tool, but the fact that you cannot handle images in batch does make you look for a solid tool. And for that, ImageOptim is what you can try out. It handles PNG, JPEG and GIF files. It works on drag, drop and click fashion making your whole job easy.
As ImageOptim, this tool as works on drag, drop and click fashion but it is meant for Windows machines. Apart from being a compressor, this tool can also be used as a convertor. Its easy to use and very lightweight
I started using when I started blogging. And trust me, it is one of the best software I have ever used. The best thing about this program is that its so easy to use. Whether it’s individual compression on batch compression, RIOT is the tool you should definitely check out.
You still have dozens of ways to get this thing done, but I have used these tools and can give a testimonial that I found them super awesome.