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.

for img in *.jpg; do
  convert -strip -interlace Plane -quality 80 $img $img
  echo "Converted :$img"

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

What are EAR, JAR and WAR files in J2EE?

ATG Issue - ConcurrentUpdateException - on BCC Deployment

How the competition helps to reduce the price of TEA?