DecodeConfig reads the image configuration from the provided io.Reader without fully decoding the image. This function is a wrapper around the underlying WebP decode package (golang.org/x/image/webp) and provides access to the image's metadata, such as its dimensions and color model. It is useful f
(r io.Reader)
| 48 | // Returns: |
| 49 | // An image.Config containing the image's dimensions and color model, or an error if the configuration cannot be retrieved |
| 50 | func DecodeConfig(r io.Reader) (image.Config, error) { |
| 51 | return decoderWebP.DecodeConfig(r) |
| 52 | } |
| 53 | |
| 54 | // DecodeIgnoreAlphaFlag reads a WebP image from the provided io.Reader and returns it as an image.Image. |
| 55 | // |
no outgoing calls
searching dependent graphs…