imgutil

package
v0.0.0-...-f6cbe64 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatGIF  = "gif"
	FormatJPEG = "jpeg"
	FormatPNG  = "png"
	FormatBMP  = "bmp"
	FormatTIFF = "tiff"
)

Variables

This section is empty.

Functions

func CanDecodeConfig

func CanDecodeConfig(filename string) bool

func GetSupportedFormats

func GetSupportedFormats() strv.Strv

func IsSupported

func IsSupported(filename string) bool

func Load

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

func SavePng

func SavePng(img image.Image, filename string, enc *png.Encoder) error

func SniffFormat

func SniffFormat(file string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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