@@ -222,6 +222,10 @@ class Interpretation(object):
222222
223223 HSV (str): pixels are HSV
224224
225+ OKLAB (str): pixels are in Oklab colourspace
226+
227+ OKLCH (str): pixels are in Oklch colourspace
228+
225229 """
226230
227231 ERROR = 'error'
@@ -244,6 +248,8 @@ class Interpretation(object):
244248 MATRIX = 'matrix'
245249 SCRGB = 'scrgb'
246250 HSV = 'hsv'
251+ OKLAB = 'oklab'
252+ OKLCH = 'oklch'
247253
248254
249255class OperationRelational (object ):
@@ -488,6 +494,8 @@ class Access(object):
488494
489495 SEQUENTIAL (str): top-to-bottom reading only, but with a small buffer
490496
497+ SEQUENTIAL_UNBUFFERED (str): deprecated, use :class:`.enums.Access.SEQUENTIAL` instead
498+
491499 """
492500
493501 RANDOM = 'random'
@@ -843,6 +851,36 @@ class FailOn(object):
843851 WARNING = 'warning'
844852
845853
854+ class ForeignPdfPageBox (object ):
855+ """ForeignPdfPageBox.
856+
857+ Each page of a PDF document can contain multiple page boxes,
858+ also known as boundary boxes or print marks.
859+
860+ Each page box defines a region of the complete page that
861+ should be rendered. The default region is the crop box.
862+
863+ Attributes:
864+
865+ MEDIA (str): media box
866+
867+ CROP (str): crop box
868+
869+ TRIM (str): trim box
870+
871+ BLEED (str): bleed box
872+
873+ ART (str): art box
874+
875+ """
876+
877+ MEDIA = 'media'
878+ CROP = 'crop'
879+ TRIM = 'trim'
880+ BLEED = 'bleed'
881+ ART = 'art'
882+
883+
846884class ForeignPpmFormat (object ):
847885 """ForeignPpmFormat.
848886
@@ -949,7 +987,7 @@ class ForeignDzDepth(object):
949987class ForeignDzContainer (object ):
950988 """ForeignDzContainer.
951989
952- How many pyramid layers to create .
990+ What container format to use .
953991
954992Attributes:
955993
@@ -971,6 +1009,12 @@ class RegionShrink(object):
9711009
9721010How to calculate the output pixels when shrinking a 2x2 region.
9731011
1012+ Images with alpha (see :meth:`.Image.hasalpha`) always shrink with
1013+ :class:`.enums.RegionShrink.MEAN` and pixels scaled by alpha to avoid fringing.
1014+
1015+ Set the image interpretation to :class:`.enums.Interpretation.MULTIBAND` to
1016+ treat all bands equally.
1017+
9741018Attributes:
9751019
9761020 MEAN (str): use the average
@@ -1223,21 +1267,21 @@ class Kernel(object):
12231267
12241268Attributes:
12251269
1226- NEAREST (str): The nearest pixel to the point.
1270+ NEAREST (str): the nearest pixel to the point
12271271
1228- LINEAR (str): Convolve with a triangle filter.
1272+ LINEAR (str): convolve with a triangle filter
12291273
1230- CUBIC (str): Convolve with a cubic filter.
1274+ CUBIC (str): convolve with a cubic filter
12311275
1232- MITCHELL (str): Convolve with a Mitchell kernel.
1276+ MITCHELL (str): convolve with a Mitchell kernel
12331277
1234- LANCZOS2 (str): Convolve with a two-lobe Lanczos kernel.
1278+ LANCZOS2 (str): convolve with a two-lobe Lanczos kernel
12351279
1236- LANCZOS3 (str): Convolve with a three-lobe Lanczos kernel.
1280+ LANCZOS3 (str): convolve with a three-lobe Lanczos kernel
12371281
1238- MKS2013 (str): Convolve with Magic Kernel Sharp 2013.
1282+ MKS2013 (str): convolve with Magic Kernel Sharp 2013
12391283
1240- MKS2021 (str): Convolve with Magic Kernel Sharp 2021.
1284+ MKS2021 (str): convolve with Magic Kernel Sharp 2021
12411285
12421286 """
12431287
@@ -1330,7 +1374,9 @@ class ForeignKeep(object):
13301374
13311375 ICC (int): keep ICC metadata
13321376
1333- OTHER (int): keep other metadata (e.g. PNG comments and some TIFF tags)
1377+ OTHER (int): keep other metadata (e.g. PNG comments)
1378+
1379+ GAINMAP (int): keep the gainmap metadata
13341380
13351381 ALL (int): keep all metadata
13361382
@@ -1342,7 +1388,8 @@ class ForeignKeep(object):
13421388 IPTC = 4
13431389 ICC = 8
13441390 OTHER = 16
1345- ALL = 31
1391+ GAINMAP = 32
1392+ ALL = 63
13461393
13471394
13481395class ForeignPngFilter (object ):
0 commit comments