(params *vips.LoadOptions, n, page int)
| 520 | } |
| 521 | |
| 522 | func applyMultiPageOptions(params *vips.LoadOptions, n, page int) { |
| 523 | if page < -1 { |
| 524 | params.Page = -page - 1 |
| 525 | } else if n < -1 { |
| 526 | params.N = -n |
| 527 | } else { |
| 528 | params.N = -1 |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | func recalculateImage(img *vips.Image, n, page int) (int, int) { |
| 533 | // reload image to restrict frames loaded |
no outgoing calls
no test coverage detected