Documentation
¶
Index ¶
- Constants
- func Decode(r io.Reader) (image.Image, error)
- func DecodeConfig(r io.Reader) (image.Config, error)
- func GetImageFromURL(ctx context.Context, url string) (string, string, error)
- func GetImageSize(image string) (width, height int, err error)
- func GetImageSizeFromBase64(encoded string) (width, height int, err error)
- func GetImageSizeFromURL(url string) (width, height int, err error)
- func IsImageURL(contentType string) bool
- func TrimImageContentType(contentType string) string
Constants ¶
View Source
const (
MaxImageSize = 1024 * 1024 * 10 // 10MB
)
Variables ¶
This section is empty.
Functions ¶
func GetImageFromURL ¶
func GetImageSize ¶
func GetImageSizeFromBase64 ¶
func GetImageSizeFromURL ¶
func IsImageURL ¶
func TrimImageContentType ¶
TrimImageContentType delete after `;`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.