Skip to content

set n-pages in SetAnimationProperties to match pages written - #4578

Open
metsw24-max wants to merge 1 commit into
lovell:mainfrom
metsw24-max:set-animation-n-pages
Open

set n-pages in SetAnimationProperties to match pages written#4578
metsw24-max wants to merge 1 commit into
lovell:mainfrom
metsw24-max:set-animation-n-pages

Conversation

@metsw24-max

Copy link
Copy Markdown
Contributor

Stale n-pages on animated output

SetAnimationProperties sets page-height on the output image but leaves n-pages at the value the loader recorded for the input file, so info.pages reports the source page count rather than the number actually written: sharp(animated, { pages: 2 }) reports 30 alongside a height of 160 and a pageHeight of 80, and the same stale count is persisted to v output. Setting it beside page-height keeps the pair consistent, which is what the raw/create input paths and the animated join already do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant