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:
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: