lvandeve / lodepng

PNG encoder and decoder in C and C++.
zlib License
2.06k stars 421 forks source link

Note for reading text chunks using Python PIL/Pillow #64

Open nmgeek opened 6 years ago

nmgeek commented 6 years ago

Pillow/PIL currently has a bug which prevents it from reading text chunk data if that data is stored in the PNG file after the first IDAT chunk. lodepng always writes text chunks after the IDAT chunk so PIL will not read them. Since Pillow is a popular PNG reading package I wanted to report that you can re-order the writing of chunks in the lodepng_encode() function so Pillow will read them.