Recently, I need to write a python script that can verify integrity and determine the format of image files in detail. For example, for jpeg file it can tell the compress ratio, quality level, progressive or not; for png files, it can tell color mode.
It's there some existing python packages that can accomplish this task?