Advanced url format

This commit is contained in:
DarthSim
2018-09-07 19:37:25 +06:00
parent 5fc04089cc
commit 5dcad5430a
3 changed files with 288 additions and 78 deletions

View File

@@ -62,21 +62,6 @@ const (
CROP
)
var resizeTypes = map[string]resizeType{
"fit": FIT,
"fill": FILL,
"crop": CROP,
}
type processingOptions struct {
Resize resizeType
Width int
Height int
Gravity gravityType
Enlarge bool
Format imageType
}
var vipsSupportSmartcrop bool
var vipsTypeSupportLoad = make(map[imageType]bool)
var vipsTypeSupportSave = make(map[imageType]bool)