Skip to main content

How To Compress a Folder of Bulk Images Easily Using Command Prompt

How To Compress a Folder of Bulk Images Easily Using Command Prompt

June 06, 2013 at 06:03AM

Now-a-days, we all have tons of photos. But when it comes to backup, many of us don’t have enough space to keep them all. One of the best method used to store large amount of Images is by “Compressing” it. And if you’re dealing with huge amount of Images, you don’t want to open each and every image in photo editor and optimize it according to your criteria.

The easiest way to do it in bulk is by compressing it using Command Prompt with just a single line.


For this you need to install Cygwin and during installation process, make sure to pick ImageMagick Package. After installing navigate to terminal window already set. Use cd command to switch,


You can use cd and Is command to see where you are, and navigate to the folder you want to manipulate. After you decided on which folder you are trying this method,

           for f in *.jpg; do convert –quality 70 $f; done

However, some of you may feel this line of code as weird, but with this single line code you can compress the whole bulk of images contained in the folder. The “for” operator is used for listing all the files we defined as “*.jpg”, and then runs the convert command which is no other than ImageMagick to change the quality.

If you want different level of compression use any number instead of 70. But anything less than 70 is of low quality.

       coverts –quality 70 imag.jpg image.jpg

In the last line of code, the first image name is the name of the image you want to open, and second is the name in which you want to save your file after the process.

Copyright © 2011-2012
This feed is intended only for the personal, non-commercial use and content is copyrighted to TechFeb.COM and may not be reproduced on other websites without permission.

from (title unknown)


Popular posts from this blog

Ten Apps you Must Download when you Buy A New Android Smartphone

Ten Apps you Must Download when you Buy A New Android Smartphone

May 14, 2013 at 11:21PM You have spent loads of time researching which is the best Android smartphone that fits your budget, spoken to people in the know about gadgets and have saved accordingly. After contemplating a fair bit if this is the right time to pick a device and there is no other device you would rather have, you take a plunge into the astonishing world of Android and pick that shiny new Android device. Right now it is sitting proudly in your hands as you admire every curve, every pixel, visible or not of your new Android smartphone.It is the time to load your Android smartphone, to make it truly yours, a device that would be with you through your thick and thin. Time to install those applications which will complete your world, if not complete, at least make your world a lot more organized and a lot more fun. So which apps do you start off with?Like the famous Nokia commercial goes, you have our back. Here …

How to Password Protect & Encrypt Files [Mac/Windows]

How to Password Protect & Encrypt Files [Mac/Windows]

May 16, 2013 at 06:33PM Nowadays, the computer has a very important place in everybody’s life, as a personal gadget used for a lot of different things. Everything is digital and it is stored on a computer’s hard-disk or on a cloud system, offering you easier access to your favorite data.Computers have become the place where you hold pictures, documents, favorite music and everything else in the same place. While storing may include regular data, random and even useless information, people may also keep important stuff, such as wedding photos, work documents, projects and others.Have you ever thought about protecting critical data with a password? Taking into consideration that all information could be vulnerable to hackers or to unauthorized persons, this is a rather obvious procedure. Another reason to encrypt data can appear in case somebody else also uses that computer and you don’t want them to have access to private pict…

Who Needs To Pirate Software With A Free Software List Like This!

Who Needs To Pirate Software With A Free Software List Like This!

May 03, 2013 at 05:30AM I found this interesting list at this random forum on Internet and I found it worth sharing. It is indeed a huge list of free available software that you can use instead of buying or pirating the expensive ones. The list goes as following:3D Graphics:3Delight Free –
Anim8or –
Aqsis –
Blender –
Houdini (Free Edition) –
Now3D –
OpenFX –
POV-Ray –
Terragen –
Toxic –
Wings 3D – –
AntiVir –
Avast – http://www.…