If an image has been saved as progressive JPEG using PIL or any tool like Photoshop.
Is there any functionality present in PIL or any other python modules to detect if an input image file is progressive ?
If an image has been saved as progressive JPEG using PIL or any tool like Photoshop.
Is there any functionality present in PIL or any other python modules to detect if an input image file is progressive ?
3
Answers
Check following solution based on this conception:
The solution requires no any additional modules.
There is
info
property of image.Alderven’s solution unfortunately didn’t work for me, it recognized bunch of progressive-packed images as non-progressive. So I implemented my own method which properly implements JPEG standard and should work for 100% of files (and also doesn’t need PIL):