imaging

package
v0.86.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 EncodeJpeg

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

func EncodeStripped

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

func Open

func Open(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