Documentation
¶
Index ¶
- func Base64Decode(encoded string, filepath string) error
- func Base64Encode(filepath string) string
- func Border(src image.Image, width int, colors ...string) image.Image
- func Circle(src image.Image) image.Image
- func Compress(fpath string, quality int) (image.Image, error)
- func CompressJPEG(src image.Image, quality int) (image.Image, error)
- func CompressPNG(src image.Image, quality int) (image.Image, error)
- func Download(ctx context.Context, imgURL, imgPath string) error
- func Parse(filepath string) (image.Image, string, error)
- func Read(filepath string) image.Image
- func ReadExif(filepath string) map[string]interface{}
- func Resize(src image.Image, w, h int) image.Image
- func Rounded(src image.Image, p float64) image.Image
- func Size(filepath string) (int, int)
- func ToIco(srcPath, dstPath string, sizes ...int) error
- func Type(filepath string) string
- func WatermarkImage(src, w image.Image, p image.Point) image.Image
- func WatermarkText(src image.Image, text string, color string, size, x, y float64) image.Image
- func Write(filepath string, src image.Image) error
- func WriteExif(filepath string, kv map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶ added in v0.0.7
Base64Decode ...
func CompressJPEG ¶ added in v0.0.7
CompressJPEG ...
func CompressPNG ¶ added in v0.0.7
CompressPNG 依赖 pngquant
func WatermarkImage ¶ added in v0.0.7
WatermarkImage ...
func WatermarkText ¶ added in v0.0.7
WatermarkText ...
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.