Please sign in to comment.
add n-pages metadata to gifload
gifload was not setting the n-pages metadata item. n-pages is supposed to be the number of pages in the original file (not the number of pages libvips loaded), but we don't always know this for gif, since you have to decode the entire file to count the pages. As a compromise, set it to the page number of the final page we read. See lovell/sharp#1566
- Loading branch information...
Showing with 14 additions and 5 deletions.