webp - ActiveState ActiveGo 1.8

Package webp

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

Overview ▾

Package webp implements a decoder for WEBP images.

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

It requires Go 1.6 or later.

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.


Name Synopsis
nycbcra Package nycbcra provides non-alpha-premultiplied Y'CbCr-with-alpha image and color types.