(shrink float64, page, pages int)
| 9 | ) |
| 10 | |
| 11 | func 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 | |
| 24 | func newSaveOptions(_ *options.Options) C.ImgproxySaveOptions { |
| 25 | return C.ImgproxySaveOptions{ |
no test coverage detected