imagegolang.org/x/image/webp Index | Files

package webp

import "golang.org/x/image/webp"

Package webp implements a decoder for WEBP images.

WEBP is defined at: https://developers.google.com/speed/webp/docs/riff_container

Index

Functions

func Decode

func Decode(r io.Reader) (image.Image, error)

Decode reads a WEBP image from r and returns it as an image.Image.

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

DecodeConfig returns the color model and dimensions of a WEBP image without decoding the entire image.

Source Files

decode.go doc.go

Version
v0.24.0 (latest)
Published
Feb 4, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
12 hours ago

Tools for package owners.