[RESOLVED] Background could not be imported

Started by Joacim Andersson, Wed 20/11/2024 15:08:57

Previous topic - Next topic

Joacim Andersson

This is strange. I make my backgrounds using Tiled and I've used the same spritesheets for the tiles in all rooms. I export the background as a PNG and open it in Paint.Net where I change the height of the image (instead of the 640x384 that I get from using 32x32 pixel tiles, I want 640x360, so I get the correct aspect ratio). I have done this with all my backgrounds, but when I suddenly created a new one and tried to import it into AGS room editor today, I got the error 'The background could not be imported. The error was: Unknown pixel format'. What's up with that?

Joacim Andersson

I solved it. When I saved the image with Paint.net I had the Bit Depth set to Auto-detect, which I had for all other backgrounds as well, but this time it set it to 4, so I changed that to 24 and it all works.

Sorry for bothering anyone.

Crimson Wizard

By the way, AGS should be able to import 4-bit PNG format starting with upcoming v3.6.2 (and in AGS 4).

However, when it does, it converts it to 8-bit, IIRC, which may not be what you like in a 32-bit color game.

Joacim Andersson

Quote from: Crimson Wizard on Wed 20/11/2024 15:51:40However, when it does, it converts it to 8-bit, IIRC, which may not be what you like in a 32-bit color game.
Well, for this background it wouldn't have mattered.

SMF spam blocked by CleanTalk