On Tuesday, 30 March 2021 at 14:19:57 UTC+2 christoph...@gmail.com wrote: > > It is unspecified in the documentation if the png encoder is performing > gamma correction. I thus assume that it is not performing gamma correction. > Is this assumption correct ? > > According to wikipedia, jpg images are gamma encoded. What is the status > of png images ? It seam relevant for antialiasing, especially for font > rendering. > > I haven't looked, but I expect the png package to just encode the pixels given to it. sRGB with gamma around 2.2 is the usual colorspace for 8-bit color components, but that doesn't matter for lossless encoding or decoding color values.
The color space *does* matter for composing images, see https://github.com/golang/go/issues/11420 about the issue that the x/image/draw package operates in linear RGB. Elias -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/ba18ce7b-4f51-4f23-9caf-9fcace6abc6en%40googlegroups.com.