image

package
v0.0.0-...-d2e17a0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

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

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, height int, err error)

func GetImageSizeFromBase64

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

func GetImageSizeFromURL

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

func IsImageURL

func IsImageURL(contentType string) bool

func TrimImageContentType

func TrimImageContentType(contentType string) string

TrimImageContentType delete after `;`

Types

This section is empty.

Jump to

Keyboard shortcuts

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