@@ -893,6 +893,63 @@ class FailOn(object):
893
893
WARNING = 'warning'
894
894
895
895
896
+ class ForeignPpmFormat (object ):
897
+ """ForeignPpmFormat.
898
+
899
+ The netpbm file format to save as.
900
+
901
+ #VIPS_FOREIGN_PPM_FORMAT_PBM images are single bit.
902
+
903
+ #VIPS_FOREIGN_PPM_FORMAT_PGM images are 8, 16, or 32-bits, one band.
904
+
905
+ #VIPS_FOREIGN_PPM_FORMAT_PPM images are 8, 16, or 32-bits, three bands.
906
+
907
+ #VIPS_FOREIGN_PPM_FORMAT_PFM images are 32-bit float pixels.
908
+
909
+ #VIPS_FOREIGN_PPM_FORMAT_PNM images are anymap images -- the image format
910
+ is used to pick the saver.
911
+
912
+ Attributes:
913
+
914
+ PBM (str): portable bitmap
915
+
916
+ PGM (str): portable greymap
917
+
918
+ PPM (str): portable pixmap
919
+
920
+ PFM (str): portable float map
921
+
922
+ PNM (str): portable anymap
923
+
924
+ """
925
+
926
+ PBM = 'pbm'
927
+ PGM = 'pgm'
928
+ PPM = 'ppm'
929
+ PFM = 'pfm'
930
+ PNM = 'pnm'
931
+
932
+
933
+ class ForeignSubsample (object ):
934
+ """ForeignSubsample.
935
+
936
+ Set subsampling mode.
937
+
938
+ Attributes:
939
+
940
+ AUTO (str): prevent subsampling when quality >= 90
941
+
942
+ ON (str): always perform subsampling
943
+
944
+ OFF (str): never perform subsampling
945
+
946
+ """
947
+
948
+ AUTO = 'auto'
949
+ ON = 'on'
950
+ OFF = 'off'
951
+
952
+
896
953
class ForeignDzLayout (object ):
897
954
"""ForeignDzLayout.
898
955
@@ -988,26 +1045,6 @@ class RegionShrink(object):
988
1045
NEAREST = 'nearest'
989
1046
990
1047
991
- class ForeignSubsample (object ):
992
- """ForeignSubsample.
993
-
994
- Set subsampling mode.
995
-
996
- Attributes:
997
-
998
- AUTO (str): prevent subsampling when quality >= 90
999
-
1000
- ON (str): always perform subsampling
1001
-
1002
- OFF (str): never perform subsampling
1003
-
1004
- """
1005
-
1006
- AUTO = 'auto'
1007
- ON = 'on'
1008
- OFF = 'off'
1009
-
1010
-
1011
1048
class ForeignWebpPreset (object ):
1012
1049
"""ForeignWebpPreset.
1013
1050
@@ -1217,12 +1254,15 @@ class Intent(object):
1217
1254
1218
1255
ABSOLUTE (str): absolute colorimetric rendering intent
1219
1256
1257
+ AUTO (str): the rendering intent that the profile suggests
1258
+
1220
1259
"""
1221
1260
1222
1261
PERCEPTUAL = 'perceptual'
1223
1262
RELATIVE = 'relative'
1224
1263
SATURATION = 'saturation'
1225
1264
ABSOLUTE = 'absolute'
1265
+ AUTO = 'auto'
1226
1266
1227
1267
1228
1268
class Kernel (object ):
@@ -1244,6 +1284,10 @@ class Kernel(object):
1244
1284
1245
1285
LANCZOS3 (str): Convolve with a three-lobe Lanczos kernel.
1246
1286
1287
+ MKS2013 (str): Convolve with Magic Kernel Sharp 2013.
1288
+
1289
+ MKS2021 (str): Convolve with Magic Kernel Sharp 2021.
1290
+
1247
1291
"""
1248
1292
1249
1293
NEAREST = 'nearest'
@@ -1252,6 +1296,8 @@ class Kernel(object):
1252
1296
MITCHELL = 'mitchell'
1253
1297
LANCZOS2 = 'lanczos2'
1254
1298
LANCZOS3 = 'lanczos3'
1299
+ MKS2013 = 'mks2013'
1300
+ MKS2021 = 'mks2021'
1255
1301
1256
1302
1257
1303
class PCS (object ):
@@ -1295,12 +1341,13 @@ class OperationMorphology(object):
1295
1341
class CombineMode (object ):
1296
1342
"""CombineMode.
1297
1343
1298
- See vips_draw_image() and so on.
1344
+ See :meth:`.Image.draw_image` and so on.
1299
1345
1300
- Operations like vips_draw_image() need to be told how to combine images
1346
+ Operations like :meth:`.Image.draw_image` need to be told how to combine images
1301
1347
from two sources.
1302
1348
1303
- See also: vips_join().
1349
+ ::: seealso
1350
+ :meth:`.Image.join`.
1304
1351
1305
1352
Attributes:
1306
1353
0 commit comments