(_ *options.Options)
| 22 | } |
| 23 | |
| 24 | func 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 | } |