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

Function isMultiPage

processor/vipsprocessor/processor.go:518–520  ·  view source on GitHub ↗
(blob *imagor.Blob, n, page int)

Source from the content-addressed store, hash-verified

516}
517
518func isMultiPage(blob *imagor.Blob, n, page int) bool {
519 return blob != nil && (blob.SupportsAnimation() || blob.BlobType() == imagor.BlobTypePDF) && ((n != 1 && n != 0) || (page != 1 && page != 0))
520}
521
522func applyMultiPageOptions(params *vips.LoadOptions, n, page int) {
523 if page < -1 {

Callers 2

NewThumbnailMethod · 0.85
NewImageMethod · 0.85

Calls 2

SupportsAnimationMethod · 0.80
BlobTypeMethod · 0.80

Tested by

no test coverage detected