Jibble

Author Topic: [SOLVED] Cannot import one specific PNG file into Sprites  (Read 195 times)

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
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.
« Last Edit: 11 May 2021, 17:43 by Monsieur OUXX »
 

eri0o

Re: Cannot import one specific PNG file into Sprites
« Reply #1 on: 11 May 2021, 16:46 »
You mean 3.5.1?

Also the PNG is grayscale, I think that is the problem - it's like 8bit without a palette.
« Last Edit: 11 May 2021, 16:57 by eri0o »

Monsieur OUXX

  • Mittens Vassal
  • Cavefish
  • Mittens Half Initiate
    • I can help with proof reading
    • I can help with translating
    • I can help with voice acting
    • Monsieur OUXX worked on one or more games that won an AGS Award!
    •  
    • Monsieur OUXX worked on one or more games that was nominated for an AGS Award!
Re: Cannot import one specific PNG file into Sprites
« Reply #2 on: 11 May 2021, 17:43 »
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!