easy-thumbnails icon indicating copy to clipboard operation
easy-thumbnails copied to clipboard

InvalidImageFormatError happening only for PNG interlaced

Open cristiangrojas opened this issue 11 years ago • 1 comments

I'm getting this exception when trying to generate a thumbnail from an interlaced JPG, I've discovered, with help from @panchicore, that the only difference (apparently) between a PNG that works and another that doesn't is that the working one is "non-interlaced" and the no-working one is "interlaced".

The full exception message is: InvalidImageFormatError: The source file does not appear to be an image

This is the traceback from the terminal with using the file command to get files properties

file sa.png 
sa.png: PNG image data, 1366 x 768, 8-bit/color RGB, interlaced

file 11111.png 
11111.png: PNG image data, 640 x 640, 8-bit/color RGB, non-interlaced

Edit 1:

OS: Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-32-virtual x86_64) Pillow==2.5.1 easy-thumbnails==1.4

cristiangrojas avatar Oct 16 '14 16:10 cristiangrojas

Can pillow read both images fine?

SmileyChris avatar Oct 20 '14 10:10 SmileyChris