Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Joacim Andersson on Wed 20/11/2024 15:08:57

Title: [RESOLVED] Background could not be imported
Post by: Joacim Andersson on Wed 20/11/2024 15:08:57
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?
Title: Re: Background could not be imported
Post by: Joacim Andersson on Wed 20/11/2024 15:48:33
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.
Title: Re: [RESOLVED] Background could not be imported
Post by: Crimson Wizard on Wed 20/11/2024 15:51:40
By the way, AGS should be able to import 4-bit PNG format starting with upcoming v3.6.2 (https://www.adventuregamestudio.co.uk/forums/ags-engine-editor-releases/ags-3-6-2-beta-1-a-wip-3-6-update/) (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.
Title: Re: [RESOLVED] Background could not be imported
Post by: Joacim Andersson on Wed 20/11/2024 15:55:20
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.