Documentation
¶
Index ¶
- func ConvertAndCompressToJPEG(srcData []byte, quality int) ([]byte, error)
- func ConvertToPNG(srcData []byte) ([]byte, error)
- func FullURL(baseURL, path string) string
- func GetOnlineImage(url string) (bytes []byte, fName string, err error)
- func PanicOnError[T any](v T, e error) T
- func ReadFile(path string) ([]byte, error)
- func Thumbnail(r io.Reader, ratio float64, format imaging.Format) (io.Reader, error)
- type ImageType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToPNG ¶
func PanicOnError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.