How do you check if a JPEG is progressive or not?

In the shell, ImageMagick has this handy ‘identify’ command:

identify  -verbose  some-picture.jpg | grep Interlace

….returns “Interlace: JPEG” if it is progressive,  otherwise it’s a baseline jpeg and it will show: “Interlace: None”

In Python, we can use PIL:

from PIL import Image
'progressive' in Image.open('some-pictures.jpg').info

1 thought on “How do you check if a JPEG is progressive or not?

Leave a Reply

Your email address will not be published. Required fields are marked *