Progressive is known to provide a better user experience, preventing the ”fax loading” effect. Where the image is displayed in full, but sequentially from top to bottom.
The imagemagick
package will install the convert
command that you can run to convert JPG to progressive:
convert -strip -interlace Plane -quality 80 input-file.jpg output-file.jpg
From there, it only takes a simple bash loop to batch convert several images at once:
for image in *.jpg; do
convert -strip -interlace Plane -quality 75 $image $image;
done