raylibtech/rtools

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

Closed this issue · 1 comments

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

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.