imaging

package
v0.90.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JPEG imaging.Format = iota
	PNG
	GIF
	TIFF
	BMP
	WEBP
)

Variables

View Source
var (
	JpegHeader = []byte{}/* 623 elements not displayed */

	JpegFooter = []byte{
		0xFF,
		0xD9,
	}
)

Functions

func Decode

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

func DecodeWebp added in v0.86.2

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

func EncodeJpeg

func EncodeJpeg(w io.Writer, img image.Image) error

func EncodeStripped

func EncodeStripped(w io.Writer, img image.Image, quality int) error

func EncodeWebp added in v0.86.2

func EncodeWebp(w io.Writer, img image.Image) error

func Open

func Open(filename string) (image.Image, error)

func OpenWebp added in v0.86.2

func OpenWebp(filename string) (image.Image, error)

func ReSizeImage

func ReSizeImage(rb []byte, extName string, isABC bool, cb func(szType string, localId int, w, h int32, b []byte) error) (err error)

func Resize

func Resize(img image.Image, width, height int) *image.NRGBA

Types

This section is empty.

Directories

Path Synopsis
Package jpeg implements a JPEG image decoder and encoder.
Package jpeg implements a JPEG image decoder and encoder.
imageutil
Package imageutil contains code shared by image-related packages.
Package imageutil contains code shared by image-related packages.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL