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

Function newSaveOptions

vips/options.go:24–39  ·  view source on GitHub ↗
(_ *options.Options)

Source from the content-addressed store, hash-verified

22}
23
24func newSaveOptions(_ *options.Options) C.ImgproxySaveOptions {
25 return C.ImgproxySaveOptions{
26 JpegProgressive: gbool(config.JpegProgressive),
27
28 PngInterlaced: gbool(config.PngInterlaced),
29 PngQuantize: gbool(config.PngQuantize),
30 PngQuantizationColors: C.int(config.PngQuantizationColors),
31
32 WebpPreset: C.VipsForeignWebpPreset(config.WebpPreset),
33 WebpEffort: C.int(config.WebpEffort),
34
35 AvifSpeed: C.int(config.AvifSpeed),
36
37 JxlEffort: C.int(config.JxlEffort),
38 }
39}

Callers 1

SaveMethod · 0.85

Calls 1

gboolFunction · 0.85

Tested by

no test coverage detected