[SOLVED] Cannot import one specific PNG file into Sprites

Started by Monsieur OUXX, Tue 11/05/2021 16:24:57

Previous topic - Next topic

Monsieur OUXX

Version : Using the Editor from this build (somewhere around 3.1.5.x EDIT: 3.5.1.x).

This doesn't really need to be fixed, just thought I'd let you know.

Scenario :
- 32-bit game, 640x400
- Open the Sprites "manager" from the AGS Editor
- Right-click : "Import new Sprite(s) from file"
- Select this PNG file
- First weird thing : The colors in the preview popup are broken
- Click "Import" anyway. Error popup :" Unknown pixel format".

The image doesn't have transparency, it's a very basic PNG file created using Paint.net 4.2.15

Note: No problem importing when I force Pant.Net to save it with 32-bit colors. The image that caused issues was saved with settings "auto-detect format". I don't know if it created it with a weird palette behind the scenes, I'm just curious why AGS (and its perfectly standard middleware, like LibPNG) fails to read that specific format.
 

eri0o

#1
You mean 3.5.1?

Also the PNG is grayscale, I think that is the problem - it's like 8bit without a palette.

Monsieur OUXX

OK it must be Paint.Net that acted too smart for its own good with the "auto" setting.
The weird thing is that it was the second image I saved (exactly like that : grey-scale image just with a different resolution) and the first one worked perfectly

But any ways, it's not an AGS problem, sorry for using your grey cells for that.
Thanks!
 


SMF spam blocked by CleanTalk