If I add an image to my resources folder, I get this error:-
It doesn't matter if I actually use the image or not.
The image was initially full screen (348x250) when it first failed, so I tried making it half sized but it still gives the same error.
If I delete the image from the resources folder it's fine.
Answered! Go to the Best Answer.
Best AnswerI had the same issue no matter how I saved it.
However... I saved it out as a JPG then opened it again and saved it as PNG and this time it worked.
All I can guess is it's a corrupt PNG somehow and resaving it does it.
Best Answer
Best Answer
Best AnswerI saved it back out with Irfanview, with a different name, and it gives the same error.
Here's the image:-
https://drive.google.com/open?id=0B_STb3d-9OdPM3QwNWdjbUp5aEk
Best AnswerI had the same issue no matter how I saved it.
However... I saved it out as a JPG then opened it again and saved it as PNG and this time it worked.
All I can guess is it's a corrupt PNG somehow and resaving it does it.
Best AnswerSide note... I was using Photoshop and opened an image that was in grey mode and when I saved as png and ran app I just go a blank screen... I hadn't verified, but think images have to be RGB.
Best Answer
Best AnswerI think the issue is actually due to interlacing. I took some images from the example projects that I knew worked and compared them to images that were causing build errors using `pngcheck` and I noticed that all of the working images were non-interlaced. I used ImageMagick to convert the images I was having issues with to non-interlaced and no more build errors. Hope this helps.
convert -interlace none interlaced.png uninterlaced.png