Documentation
¶
Overview ¶
Package resigif is an Animated GIF resizing library w/o cgo nor any third-party Libraries
Index ¶
Constants ¶
View Source
const ( // Ignore ignores aspect ratio Ignore aspectRatioOption = iota // Maintain maintains aspect ratio Maintain )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageResizeFunc ¶
ImageResizeFunc resizes a single image
ImageResizeFunc can assume that src image is aligned to (0, 0) point
func FromDrawScaler ¶
func FromDrawScaler(scaler draw.Scaler) ImageResizeFunc
FromDrawScaler converts draw.Scaler to ImageResizeFunc
draw.Interpolator / *draw.Kernel can be used as draw.Scaler
type Option ¶
type Option func(*processor)
Option is option for GIF resizing1
func WithAspectRatio ¶
func WithAspectRatio(aspectRatio aspectRatioOption) Option
WithAspectRatio sets aspect ratio option
default: Maintain
func WithImageResizeFunc ¶
func WithImageResizeFunc(resizeFunc ImageResizeFunc) Option
WithImageResizeFunc sets image resize function
default: using draw.CatmullRom
func WithParallel ¶
WithParallel sets limit of parallel processing threads
ignores limit if limit <= 0 default: runtime.NumCPU()
Click to show internal directories.
Click to hide internal directories.