MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / newLoadOptions

Function newLoadOptions

vips/options.go:11–22  ·  view source on GitHub ↗
(shrink float64, page, pages int)

Source from the content-addressed store, hash-verified

9)
10
11func newLoadOptions(shrink float64, page, pages int) C.ImgproxyLoadOptions {
12 return C.ImgproxyLoadOptions{
13 Shrink: C.double(shrink),
14 Thumbnail: 0, // Don't load thumbnail by default. Set it explicitly when needed.
15
16 Page: C.int(page),
17 Pages: C.int(pages),
18
19 PngUnlimited: gbool(config.PngUnlimited),
20 SvgUnlimited: gbool(config.SvgUnlimited),
21 }
22}
23
24func newSaveOptions(_ *options.Options) C.ImgproxySaveOptions {
25 return C.ImgproxySaveOptions{

Callers 2

LoadMethod · 0.85
LoadThumbnailMethod · 0.85

Calls 1

gboolFunction · 0.85

Tested by

no test coverage detected