Photography

Byte Size Tips: How to Compress a Folder of Images Easily with a Batch File in Windows

image


The other day we wrote up how to compress a folder of images using a single line from the bash shell prompt, which is native to Linux but works on Windows if you install Cygwin. Naturally there’s a simpler solution for Windows users, and reader Lee Thompson wrote in to share it with you all.


First, you’ll need to install ImageMagick for Windows and make sure that it is in your system path.


Then, create a new batch file in Notepad with a clever name like compressall.bat, and paste in the following lines of code:



@echo off

for %%f IN (*.jpg) DO convert -quality 70 "%%f" "%%f"














by The Geek via How-To Geek
Byte Size Tips: How to Compress a Folder of Images Easily with a Batch File in Windows Byte Size Tips: How to Compress a Folder of Images Easily with a Batch File in Windows Reviewed by Ossama Hashim on March 27, 2013 Rating: 5

No comments:

Powered by Blogger.