MCPcopy Index your code
hub / github.com/cshum/imagor / applyMultiPageOptions

Function applyMultiPageOptions

processor/vipsprocessor/processor.go:522–530  ·  view source on GitHub ↗
(params *vips.LoadOptions, n, page int)

Source from the content-addressed store, hash-verified

520}
521
522func 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
532func recalculateImage(img *vips.Image, n, page int) (int, int) {
533 // reload image to restrict frames loaded

Callers 2

NewThumbnailMethod · 0.85
NewImageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected