Documentation ¶
Index ¶
- func MustMaxWidthHeightResizeToPng(req MustMaxWidthHeightRequest) (b []byte)
- func MustReEncodeToPng(InContent []byte) (b []byte)
- func MustResizeGoImageToGoImage(req MustResizeGoImageToGoImageRequest) image.Image
- func MustResizeGoImageToPngFile(req MustResizeGoImageToPngFileRequest)
- func MustResizeImageToCenter(req ResizeImageToCenterReq) image.Image
- func MustResizeImageToCenterToPng(req MustResizeImageToCenterToPngReq) (b []byte)
- func MustResizePngContentToSquare(pngContent []byte, width int) (outPngContent []byte)
- func MustResizePngFileSelfToRate(filepath string, rate float64)
- func MustResizePngFileToHeightAndWidth(req MustResizePngFileToHeightAndWidthRequest)
- func Resize(width, height uint, img image.Image, interp InterpolationFunction) image.Image
- func Thumbnail(maxWidth, maxHeight uint, img image.Image, interp InterpolationFunction) image.Image
- type InterpolationFunction
- type MustMaxWidthHeightRequest
- type MustResizeGoImageToGoImageRequest
- type MustResizeGoImageToPngFileRequest
- type MustResizeImageToCenterToPngReq
- type MustResizePngFileToHeightAndWidthRequest
- type ResizeImageToCenterReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMaxWidthHeightResizeToPng ¶
func MustMaxWidthHeightResizeToPng(req MustMaxWidthHeightRequest) (b []byte)
func MustReEncodeToPng ¶
func MustResizeGoImageToGoImage ¶
func MustResizeGoImageToGoImage(req MustResizeGoImageToGoImageRequest) image.Image
func MustResizeGoImageToPngFile ¶
func MustResizeGoImageToPngFile(req MustResizeGoImageToPngFileRequest)
func MustResizeImageToCenter ¶
func MustResizeImageToCenter(req ResizeImageToCenterReq) image.Image
func MustResizeImageToCenterToPng ¶
func MustResizeImageToCenterToPng(req MustResizeImageToCenterToPngReq) (b []byte)
func MustResizePngFileToHeightAndWidth ¶
func MustResizePngFileToHeightAndWidth(req MustResizePngFileToHeightAndWidthRequest)
Types ¶
type InterpolationFunction ¶
type InterpolationFunction int
const ( NearestNeighbor InterpolationFunction = iota Bilinear Bicubic MitchellNetravali Lanczos2 Lanczos3 )
func (InterpolationFunction) String ¶
func (i InterpolationFunction) String() string
type MustMaxWidthHeightRequest ¶
type MustMaxWidthHeightRequest struct { InContent []byte MaxWidth int MaxHeight int PngCompressionLevel png.CompressionLevel }
Click to show internal directories.
Click to hide internal directories.