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.
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.