Web developers and designers usually have to optimize a number of images. So individually optimizing the images one by one is a pathetic process as the task is time taking and mundane. Why only web developers, even casual users can optimize multiple images at a time before uploading it on the web fast. It would be better if there was a way to optimize them simultaneously. Here is a convenient way how to compress image files inside a folder using command line.
If you have a computer with Windows OS then it would be better to install Cygwin. The bash shell makes it easy to perform an operation on multiple files simultaneously in Linux or Mac systems.
for f in *.jpg; do convert -quality 80 $f $f; done
Compress Single Image File Using command Line
Use the following command to optimize a single image file:
convert -quality 80 image1.jpg image2.jpg
Make sure to backup all the images before compressing.
Everyone loves binging a good old sitcom from time to time. The usual favourites such…
According to recent psychological studies, indulging in too much screentime has resulted in decreased attention…
Feel good movies have the power to lift your mood no matter how sad you…
Greetings, digital navigators! 🌐 Embarking on the journey of building a website with Joomla? Kudos!…
Movies like Hera Pheri are not that hard to find. Hera Pheri is no doubt…
Mythological movies are comforting to watch because they remind us of the stories that our…