mojira.dev
MC-207091

Screenshots use alpha channel despite not encoding any transparent pixels, making file sizes larger than necessary

Screenshots are saved as 32 bit-per-pixel RGBA, despite the Alpha channel being unused. This results in file sizes being 33% larger for zero benefit.

Comments 2

If desired, this can be changed easily by calling stbi_write_png with a comp value of 3.

For more details, see https://github.com/nothings/stb/blob/master/stb_image_write.h#L79-L83

Can confirm in 21w40a.

jummy

(Unassigned)

Confirmed

(Unassigned)

1.16.4, 20w48a, 21w40a, 1.18.1, 22w03a, 22w13a, 1.20.2

Retrieved