from __future__ import *

Checking the current directory for progressive JPEGs

June 17, 2004 at 08:13 PM | categories: python, pil | View Comments

This is a quick hack, you'll need PIL with JPEG support installed to use it.

import glob, Image
print 'n'.join([fn for fn in glob.glob('*.jpg') if Image.open(fn).info.get('progression')])
blog comments powered by Disqus