raylibtech / rtools

rtools feedback and issues
17 stars 1 forks source link

[rTexPacker] A specific .png file can not be loaded #19

Closed AlienSteel closed 2 years ago

AlienSteel commented 2 years ago

rTexPacker does not load the png files that i make myself in Krita, but works fine with a free tileset I tried with.

This file work: this works

This does not: does not work

raysan5 commented 2 years ago

It seems the PNG file contains several extra data chunks not supported by raylib PNG image loader library (stb_image). Here the PNG chunks of the image that does not work:

image

It actually contains a very big text file with lot of exif metadata. I recommend you avoid that kind of metadata chunks when dealing with videogames assets. You should resave the PNG image with another software before importing it into rTexPacker, I recommend Paint.NET.