Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SAFE = []*unicode.RangeTable{ unicode.Letter, unicode.Number, }
View Source
var SKIP = []*unicode.RangeTable{ unicode.Mark, unicode.Sk, unicode.Lm, }
Functions ¶
func IMGResize ¶
Transform the provided image. img should contain the raw bytes of an encoded image in one of the supported formats (gif, jpeg, or png). The bytes of a similarly encoded image is returned.
Types ¶
type Options ¶
type Options struct { // See ParseOptions for interpretation of Width and Height values Width float64 Height float64 // If true, resize the image to fit in the specified dimensions. Image // will not be cropped, and aspect ratio will be maintained. Fit bool // Rotate image the specified degrees counter-clockwise. Valid values // are 90, 180, 270. Rotate int FlipVertical bool FlipHorizontal bool // Quality of output image Quality int // HMAC Signature for signed requests. Signature string // Allow image to scale beyond its original dimensions. This value // will always be overwritten by the value of Proxy.ScaleUp. ScaleUp bool // Desired image format. Valid values are "jpeg", "png", "tiff". Format string // Crop rectangle params CropX float64 CropY float64 CropWidth float64 CropHeight float64 // Automatically find good crop points based on image content. SmartCrop bool }
Options specifies transformations to be performed on the requested image.
Click to show internal directories.
Click to hide internal directories.