3 ms·
Reminds me of an issue I had with the Python Pillow library had generating checkerboard patterns. I spend ages getting smaller and smaller versions of the probl
by nl 6y ago
Reminds me of an issue I had with the Python Pillow library had generating checkerboard patterns. I spend ages getting smaller and smaller versions of the problem until I could reproduce it in 5 lines of very clear code[1].
I was convinced I was doing something wrong with pixel access, or many the mode of the image.
Turned out the solution was "upgrade Pillow". Ironically - and annoyingly - both my question and answer were downvoted.
[1] https://stackoverflow.com/q/63256952/280795 https://stackoverflow.com/q/63256952/280795