Documentation ¶
Overview ¶
Package nfntresize provides a nfnt/resize imageserver/image.Processor implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct { DefaultInterpolation resize.InterpolationFunction MaxWidth int MaxHeight int }
Processor is a nfnt/resize imageserver/image.Processor implementation.
All params are extracted from the "graphicsmagick" node param and are optionals:
- width
- height
- mode: resize mode possible values:
- resize (default): see github.com/nfnt/resize.Resize
- thumbnail: see github.com/nfnt/resize.Thumbnail
- interpolation: interpolation method possible values:
- nearest_neighbor (default)
- bilinear
- bicubic
- mitchell_netravali
- lanczos2
- lanczos3
Click to show internal directories.
Click to hide internal directories.