imagetools

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Convenience wrapper for our image manipulation tools

Index

Constants

This section is empty.

Variables

View Source
var (
	Img image.Image
)

Functions

func CircleCrop

func CircleCrop()

func CreateRandomAvatar

func CreateRandomAvatar(gender string, username string) error

func Get

func Get() image.Image

func PNGQuant

func PNGQuant() error

func Resize

func Resize(width int, height int)

func ResizeSquare

func ResizeSquare(size int)

Resize to square

func SavePNG

func SavePNG(target string) error

func Set

func Set(i image.Image)

func SmartCrop

func SmartCrop(width int, height int) error

Types

This section is empty.

Directories

Path Synopsis
Circle crop a square image with transparency From https://blog.golang.org/go-imagedraw-package Golang BSD Licensed code snippet
Circle crop a square image with transparency From https://blog.golang.org/go-imagedraw-package Golang BSD Licensed code snippet
Wrapper for pngquant - based on https://github.com/yusukebe/go-pngquant MIT Licensed
Wrapper for pngquant - based on https://github.com/yusukebe/go-pngquant MIT Licensed
Create random avatar image from gender and username
Create random avatar image from gender and username
Crop an image with intelligent content selection
Crop an image with intelligent content selection

Jump to

Keyboard shortcuts

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