[Preview] Display error with big .png images

Hi,

Nothing JUCE specific but I encountered a weird issue with the Preview app on macOS. After some tests, I came up with a set of .png files. If either the image’s width or height is greater than 34040 pixels, the image is rendered as light blue. This is on macOS 11.6, x86_64.

how are you painting the images? is the image you’re painting simply the blue line? share some code example