From a2d78d44e4add6e9c65802b1a8b879ad29e54304 Mon Sep 17 00:00:00 2001 From: NewUserHa <32261870+NewUserHa@users.noreply.github.com> Date: Thu, 8 Jan 2026 10:27:57 +0800 Subject: [PATCH 1/3] Update vimage.py --- pyvips/vimage.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pyvips/vimage.py b/pyvips/vimage.py index f91df3a..718550f 100644 --- a/pyvips/vimage.py +++ b/pyvips/vimage.py @@ -1673,11 +1673,7 @@ def atan2(self, other): def get_n_pages(self): """Get the number of pages in an image file, or 1. - This is the number of pages in the file the image was loaded from, not - the number of pages in the image. - - To get the number of pages in an image, divide the image height by - the page height. + This is the number of pages in the image file, not the number of pages that have been loaded into image. """ if at_least_libvips(8, 8): return vips_lib.vips_image_get_n_pages(self.pointer) From d75de12d75f13d148290626e0fb20a9cc66fdbb5 Mon Sep 17 00:00:00 2001 From: NewUserHa <32261870+NewUserHa@users.noreply.github.com> Date: Fri, 9 Jan 2026 15:03:59 +0800 Subject: [PATCH 2/3] Update vimage.py --- pyvips/vimage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyvips/vimage.py b/pyvips/vimage.py index 718550f..1ae2591 100644 --- a/pyvips/vimage.py +++ b/pyvips/vimage.py @@ -1673,7 +1673,8 @@ def atan2(self, other): def get_n_pages(self): """Get the number of pages in an image file, or 1. - This is the number of pages in the image file, not the number of pages that have been loaded into image. + This is the number of pages in the image file, not the number of pages + that have been loaded into image. """ if at_least_libvips(8, 8): return vips_lib.vips_image_get_n_pages(self.pointer) From 12ebcd317adadb119be5093301de37c6fe98a55b Mon Sep 17 00:00:00 2001 From: NewUserHa <32261870+NewUserHa@users.noreply.github.com> Date: Fri, 9 Jan 2026 15:05:14 +0800 Subject: [PATCH 3/3] Update vimage.py --- pyvips/vimage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyvips/vimage.py b/pyvips/vimage.py index 1ae2591..523718e 100644 --- a/pyvips/vimage.py +++ b/pyvips/vimage.py @@ -1675,6 +1675,9 @@ def get_n_pages(self): This is the number of pages in the image file, not the number of pages that have been loaded into image. + + To get the number of pages in an image, divide the image height by + the page height. """ if at_least_libvips(8, 8): return vips_lib.vips_image_get_n_pages(self.pointer)