Skip to content

Lower color depths in ICO files #6120

Answered by nulano
gonzoMD asked this question in Q&A
Mar 10, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Is it even possible to add multiple images with different color depth of the same size to an icon?

Bitmap saving was added in #5513. Looking at the code, this is not possible.

Adding the 32bit icons works perfectly, but I can't add the lower color ones.

Looking at the code, the following formats are supported:

SAVE = {
"1": ("1", 1, 2),
"L": ("L", 8, 256),
"P": ("P", 8, 256),
"RGB": ("BGR", 24, 0),
"RGBA": ("BGRA", 32, 0),
}

So both 8-bit pallete and 24-bit RGB are supported, but not 4-bit pallete or 16-bit pallete.
Monochrome or 8-bit grayscale are also supported.

These format…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gonzoMD
Comment options

@nulano
Comment options

nulano Mar 10, 2022
Collaborator

@nulano
Comment options

nulano Mar 10, 2022
Collaborator

@radarhere
Comment options

Answer selected by radarhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants