image

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxImageSize = 1024 * 1024 * 5 // 5MB
)

Variables

This section is empty.

Functions

func Decode

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

func DecodeConfig

func DecodeConfig(r io.Reader) (image.Config, error)

func GetImageFromURL

func GetImageFromURL(ctx context.Context, url string) (string, string, error)

func GetImageSize

func GetImageSize(image string) (width int, height int, err error)

func GetImageSizeFromBase64

func GetImageSizeFromBase64(encoded string) (width int, height int, err error)

func GetImageSizeFromURL

func GetImageSizeFromURL(url string) (width int, height int, err error)

func IsImageURL

func IsImageURL(resp *http.Response) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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