Documentation ¶
Index ¶
Constants ¶
View Source
const HueMaxValue = 360
Variables ¶
View Source
var ( ErrUnsupported = errors.New("unsupported") ErrInternal = errors.New("internal") )
Functions ¶
func ConvertToBase64 ¶
func DecodeImage ¶
func GetMimeTypeExt ¶
Types ¶
type ImagesProcessing ¶
type ImagesProcessing interface { Resize(ctx context.Context, img image.Image, width, height int, resampleMethod string) image.Image Crop(ctx context.Context, img image.Image, x0, y0, x1, y1 int) image.Image Desaturate(ctx context.Context, img image.Image) image.Image Hue(ctx context.Context, img image.Image, hue int) image.Image Blur(ctx context.Context, img image.Image, radius float64, method string) image.Image }
Click to show internal directories.
Click to hide internal directories.