Documentation ¶
Index ¶
Constants ¶
View Source
const ( IMAGE = "image" JPEG = "image/jpeg" PNG = "image/png" WEBP = "image/webp" DefaultImageType = vips.ImageTypeJPEG DefaultInterestingType = vips.InterestingNone )
Variables ¶
View Source
var ImageTypes = invertImageTypes()
View Source
var InterestingTypesToString = map[vips.Interesting]string{ vips.InterestingNone: "none", vips.InterestingCentre: "centre", vips.InterestingEntropy: "entropy", vips.InterestingAttention: "attention", vips.InterestingLow: "low", vips.InterestingHigh: "high", vips.InterestingAll: "all", }
View Source
var StringToInterestingTypes = map[string]vips.Interesting{ "none": vips.InterestingNone, "centre": vips.InterestingCentre, "entropy": vips.InterestingEntropy, "attention": vips.InterestingAttention, "low": vips.InterestingLow, "high": vips.InterestingHigh, "all": vips.InterestingAll, }
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type ResizeParams ¶
type ResizeParams struct { Width int Height int Quality int ImageType vips.ImageType Interesting vips.Interesting }
func NewResizeParams ¶
func NewResizeParams() *ResizeParams
Click to show internal directories.
Click to hide internal directories.