The PPM pixels were split off the header with split(maxsplit=4), which drops leading bytes that are ASCII whitespace. A background starting with 0x0B shifted every channel and tinted the screenshot. Take the pixels from the end of the file instead.
The PPM pixels were split off the header with split(maxsplit=4), which drops leading bytes that are ASCII whitespace. A background starting with 0x0B shifted every channel and tinted the screenshot. Take the pixels from the end of the file instead.