Error when attempting to open png

When attempting to open a png I get the following error:

libpng: Not a PNG file
Error reading PNG file
Error loading frame 1 from file "D:\Pixelart (D)\Kingdom Hearts\BlackBall.png"

I am 100% certain it is a png. What is going on here?

Hi @JoeReMi, would you mind to share the png file with us? You can send it to support@aseprite.org and we can take a look why it doesn’t work.

1 Like

Hi! Was this ever resolved?

I’m hitting this same issue on Linux Mint. I have some files that I am using in Godot 4 on Windows that are definitely PNG files, but fail to load into Aseprite (and Godot) on Linux Mint. These files were originally exported from Aseprite.

Interestingly, Aseprite also refuses to load the .aseprite files for those resources on Linux Mint.

OS Info:

Operating System: Linux Mint 21.2                 
Kernel: Linux 5.15.0-91-generic
Architecture: x86-64

Aseprite Info
Aseprite v1.3.2-x64

Error when opening PNG file:

libpng: Not a PNG file
Error reading PNG file
Error loading frame 1 from file "/home/jsmrcina/git/TG-Survive/gfx/wave.png"

Note that this file does start with the PNG header when opened via a text editor

Error when opening Aseprite file from Windows:

Error reading header
Error loading sprite from the file "/home/jsmrcina/git/TG-Survive/gfx/wave.aseprite"

I am able to open both the .aseprite file and the .png file on Windows 11.

In my case the issue was fixed simply by updating to the most recent version (1.2.40 at that moment). Since you’re using an even newer version I assume these two cases are not related.

Ok, thanks JoeReMi. I’ll kick a new thread about this question.