image

package
v0.0.0-...-6c576d7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CompressableImageExts = []string{"png", "jpg", "jpeg"}
View Source
var ErrNotJpeg = errors.New("the provided bytes do not look to pertain to a jpeg file")
View Source
var ErrNotPng = errors.New("the provided bytes do not look to pertain to a png file")

Functions

func JpegResize

func JpegResize(data []byte, width int, quality *int) ([]byte, error)

originally based on https://roeber.dev/posts/resize-an-image-in-go/

func PngResize

func PngResize(data []byte, width int) ([]byte, error)

originally based on https://roeber.dev/posts/resize-an-image-in-go/

Types

This section is empty.

Jump to

Keyboard shortcuts

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