Convert to progressive image from baseline image in the folder

The main feature of ImageMagick is that, it will convert the baseline image to the progressive image.

Save the following script in .sh file and run it. It will convert all jpg images in the directory to progressive image.


#!/bin/bash
for img in *.jpg; do
  convert -strip -interlace Plane -quality 80 $img $img
  echo "Converted :$img"
done


Explanation for progressive image:
  1. progressive JPEG is the JPEG equivalent of the interlaced GIF Graphics Interchange Format . It's an image created using the JPEG suite of compression algorithms that will "fade in" in successive waves of lines until the entire image has completely arrived.

Popular posts from this blog

[Solved] Hive installation error: java.net.URISyntaxException: Relative path in absolute URI

Install Android SDK in centOs

Installing arules package (Association Rules) in R