imagex

package
v1.0.75 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

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

From reads the contents of the reader as a decoded image

func FromBytes

func FromBytes(b []byte) (image.Image, error)

FromBytes reads the contents of the byte array as a decoded image

func FromFile

func FromFile(path string) (image.Image, error)

FromFile reads the contents of the file at the specified path as a decoded image

func To

func To(imageSource image.Image, w io.Writer, format imgconv.Format) error

To writes the image source to the specified writer

func ToBytes

func ToBytes(imageSource image.Image, format imgconv.Format) ([]byte, error)

ToBytes writes the image source to a byte array

func ToFile

func ToFile(imageSource image.Image, path string, format imgconv.Format) error

ToFile writes the image source at the specified file path

Types

This section is empty.

Jump to

Keyboard shortcuts

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