@img/sharp-libvips-dev 1.0.6 → 1.1.0-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -919,7 +919,7 @@ public:
919
919
  * C-style array.
920
920
  */
921
921
  static VImage
922
- new_from_memory(void *data, size_t size,
922
+ new_from_memory(const void *data, size_t size,
923
923
  int width, int height, int bands, VipsBandFormat format)
924
924
  {
925
925
  VipsImage *image;
@@ -937,7 +937,7 @@ public:
937
937
  * The VImage makes a copy of @data.
938
938
  */
939
939
  static VImage
940
- new_from_memory_copy(void *data, size_t size,
940
+ new_from_memory_copy(const void *data, size_t size,
941
941
  int width, int height, int bands, VipsBandFormat format)
942
942
  {
943
943
  VipsImage *image;
@@ -957,7 +957,7 @@ public:
957
957
  * goes out of scope.
958
958
  */
959
959
  static VImage
960
- new_from_memory_steal(void *data, size_t size,
960
+ new_from_memory_steal(const void *data, size_t size,
961
961
  int width, int height, int bands, VipsBandFormat format);
962
962
 
963
963
  /**
@@ -2048,6 +2048,27 @@ public:
2048
2048
  friend VIPS_CPLUSPLUS_API VImage &
2049
2049
  operator>>=(VImage &a, const std::vector<double> b);
2050
2050
 
2051
+ // Compat operations
2052
+
2053
+ static VImage
2054
+ new_from_memory_steal(void *data, size_t size,
2055
+ int width, int height, int bands, VipsBandFormat format);
2056
+
2057
+ /**
2058
+ * Write raw image to file descriptor.
2059
+ *
2060
+ * **Optional parameters**
2061
+ * - **keep** -- Which metadata to retain, VipsForeignKeep.
2062
+ * - **background** -- Background value, std::vector<double>.
2063
+ * - **page_height** -- Set page height for multipage save, int.
2064
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2065
+ *
2066
+ * @param fd File descriptor to write to.
2067
+ * @param options Set of options.
2068
+ */
2069
+ G_DEPRECATED_FOR(rawsave_target)
2070
+ void rawsave_fd(int fd, VOption *options = nullptr) const;
2071
+
2051
2072
  /* Automatically generated members.
2052
2073
  *
2053
2074
  * Rebuild with:
@@ -2055,7 +2076,7 @@ public:
2055
2076
  * meson compile -Cbuild vips-operators-header
2056
2077
  *
2057
2078
  * Then delete from here to the end of the class and paste in
2058
- * vips-operators.h. We could just #include vips-operators.h, but
2079
+ * vips-operators.h. We could just #include "vips-operators.h", but
2059
2080
  * that confuses doxygen.
2060
2081
  */
2061
2082
 
@@ -2218,6 +2239,13 @@ public:
2218
2239
  */
2219
2240
  VImage add(VImage right, VOption *options = nullptr) const;
2220
2241
 
2242
+ /**
2243
+ * Append an alpha channel.
2244
+ * @param options Set of options.
2245
+ * @return Output image.
2246
+ */
2247
+ VImage addalpha(VOption *options = nullptr) const;
2248
+
2221
2249
  /**
2222
2250
  * Affine transform of an image.
2223
2251
  *
@@ -2406,6 +2434,7 @@ public:
2406
2434
  * @param options Set of options.
2407
2435
  * @return Output image.
2408
2436
  */
2437
+ G_DEPRECATED
2409
2438
  VImage cache(VOption *options = nullptr) const;
2410
2439
 
2411
2440
  /**
@@ -2440,6 +2469,18 @@ public:
2440
2469
  */
2441
2470
  VImage cast(VipsBandFormat format, VOption *options = nullptr) const;
2442
2471
 
2472
+ /**
2473
+ * Clamp values of an image.
2474
+ *
2475
+ * **Optional parameters**
2476
+ * - **min** -- Minimum value, double.
2477
+ * - **max** -- Maximum value, double.
2478
+ *
2479
+ * @param options Set of options.
2480
+ * @return Output image.
2481
+ */
2482
+ VImage clamp(VOption *options = nullptr) const;
2483
+
2443
2484
  /**
2444
2485
  * Convert to a new colorspace.
2445
2486
  *
@@ -2684,11 +2725,11 @@ public:
2684
2725
  * Save image to csv.
2685
2726
  *
2686
2727
  * **Optional parameters**
2687
- * - **profile** -- Filename of ICC profile to embed, const char *.
2688
2728
  * - **separator** -- Separator characters, const char *.
2689
2729
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2690
2730
  * - **background** -- Background value, std::vector<double>.
2691
2731
  * - **page_height** -- Set page height for multipage save, int.
2732
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2692
2733
  *
2693
2734
  * @param filename Filename to save to.
2694
2735
  * @param options Set of options.
@@ -2699,11 +2740,11 @@ public:
2699
2740
  * Save image to csv.
2700
2741
  *
2701
2742
  * **Optional parameters**
2702
- * - **profile** -- Filename of ICC profile to embed, const char *.
2703
2743
  * - **separator** -- Separator characters, const char *.
2704
2744
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2705
2745
  * - **background** -- Background value, std::vector<double>.
2706
2746
  * - **page_height** -- Set page height for multipage save, int.
2747
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2707
2748
  *
2708
2749
  * @param target Target to save to.
2709
2750
  * @param options Set of options.
@@ -2845,7 +2886,6 @@ public:
2845
2886
  * - **suffix** -- Filename suffix for tiles, const char *.
2846
2887
  * - **overlap** -- Tile overlap in pixels, int.
2847
2888
  * - **tile_size** -- Tile size in pixels, int.
2848
- * - **profile** -- Filename of ICC profile to embed, const char *.
2849
2889
  * - **centre** -- Center image in tile, bool.
2850
2890
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
2851
2891
  * - **angle** -- Rotate image during save, VipsAngle.
@@ -2858,6 +2898,7 @@ public:
2858
2898
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2859
2899
  * - **background** -- Background value, std::vector<double>.
2860
2900
  * - **page_height** -- Set page height for multipage save, int.
2901
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2861
2902
  *
2862
2903
  * @param filename Filename to save to.
2863
2904
  * @param options Set of options.
@@ -2873,7 +2914,6 @@ public:
2873
2914
  * - **suffix** -- Filename suffix for tiles, const char *.
2874
2915
  * - **overlap** -- Tile overlap in pixels, int.
2875
2916
  * - **tile_size** -- Tile size in pixels, int.
2876
- * - **profile** -- Filename of ICC profile to embed, const char *.
2877
2917
  * - **centre** -- Center image in tile, bool.
2878
2918
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
2879
2919
  * - **angle** -- Rotate image during save, VipsAngle.
@@ -2886,6 +2926,7 @@ public:
2886
2926
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2887
2927
  * - **background** -- Background value, std::vector<double>.
2888
2928
  * - **page_height** -- Set page height for multipage save, int.
2929
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2889
2930
  *
2890
2931
  * @param options Set of options.
2891
2932
  * @return Buffer to save to.
@@ -2901,7 +2942,6 @@ public:
2901
2942
  * - **suffix** -- Filename suffix for tiles, const char *.
2902
2943
  * - **overlap** -- Tile overlap in pixels, int.
2903
2944
  * - **tile_size** -- Tile size in pixels, int.
2904
- * - **profile** -- Filename of ICC profile to embed, const char *.
2905
2945
  * - **centre** -- Center image in tile, bool.
2906
2946
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
2907
2947
  * - **angle** -- Rotate image during save, VipsAngle.
@@ -2914,6 +2954,7 @@ public:
2914
2954
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2915
2955
  * - **background** -- Background value, std::vector<double>.
2916
2956
  * - **page_height** -- Set page height for multipage save, int.
2957
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2917
2958
  *
2918
2959
  * @param target Target to save to.
2919
2960
  * @param options Set of options.
@@ -3045,10 +3086,10 @@ public:
3045
3086
  * Save image to fits file.
3046
3087
  *
3047
3088
  * **Optional parameters**
3048
- * - **profile** -- Filename of ICC profile to embed, const char *.
3049
3089
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3050
3090
  * - **background** -- Background value, std::vector<double>.
3051
3091
  * - **page_height** -- Set page height for multipage save, int.
3092
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3052
3093
  *
3053
3094
  * @param filename Filename to save to.
3054
3095
  * @param options Set of options.
@@ -3162,6 +3203,10 @@ public:
3162
3203
 
3163
3204
  /**
3164
3205
  * Read a point from an image.
3206
+ *
3207
+ * **Optional parameters**
3208
+ * - **unpack_complex** -- Complex pixels should be unpacked, bool.
3209
+ *
3165
3210
  * @param x Point to read.
3166
3211
  * @param y Point to read.
3167
3212
  * @param options Set of options.
@@ -3226,7 +3271,6 @@ public:
3226
3271
  * **Optional parameters**
3227
3272
  * - **dither** -- Amount of dithering, double.
3228
3273
  * - **effort** -- Quantisation effort, int.
3229
- * - **profile** -- Filename of ICC profile to embed, const char *.
3230
3274
  * - **bitdepth** -- Number of bits per pixel, int.
3231
3275
  * - **interframe_maxerror** -- Maximum inter-frame error for transparency, double.
3232
3276
  * - **reuse** -- Reuse palette from input, bool.
@@ -3235,6 +3279,7 @@ public:
3235
3279
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3236
3280
  * - **background** -- Background value, std::vector<double>.
3237
3281
  * - **page_height** -- Set page height for multipage save, int.
3282
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3238
3283
  *
3239
3284
  * @param filename Filename to save to.
3240
3285
  * @param options Set of options.
@@ -3247,7 +3292,6 @@ public:
3247
3292
  * **Optional parameters**
3248
3293
  * - **dither** -- Amount of dithering, double.
3249
3294
  * - **effort** -- Quantisation effort, int.
3250
- * - **profile** -- Filename of ICC profile to embed, const char *.
3251
3295
  * - **bitdepth** -- Number of bits per pixel, int.
3252
3296
  * - **interframe_maxerror** -- Maximum inter-frame error for transparency, double.
3253
3297
  * - **reuse** -- Reuse palette from input, bool.
@@ -3256,6 +3300,7 @@ public:
3256
3300
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3257
3301
  * - **background** -- Background value, std::vector<double>.
3258
3302
  * - **page_height** -- Set page height for multipage save, int.
3303
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3259
3304
  *
3260
3305
  * @param options Set of options.
3261
3306
  * @return Buffer to save to.
@@ -3268,7 +3313,6 @@ public:
3268
3313
  * **Optional parameters**
3269
3314
  * - **dither** -- Amount of dithering, double.
3270
3315
  * - **effort** -- Quantisation effort, int.
3271
- * - **profile** -- Filename of ICC profile to embed, const char *.
3272
3316
  * - **bitdepth** -- Number of bits per pixel, int.
3273
3317
  * - **interframe_maxerror** -- Maximum inter-frame error for transparency, double.
3274
3318
  * - **reuse** -- Reuse palette from input, bool.
@@ -3277,6 +3321,7 @@ public:
3277
3321
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3278
3322
  * - **background** -- Background value, std::vector<double>.
3279
3323
  * - **page_height** -- Set page height for multipage save, int.
3324
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3280
3325
  *
3281
3326
  * @param target Target to save to.
3282
3327
  * @param options Set of options.
@@ -3396,7 +3441,6 @@ public:
3396
3441
  * **Optional parameters**
3397
3442
  * - **Q** -- Q factor, int.
3398
3443
  * - **bitdepth** -- Number of bits per pixel, int.
3399
- * - **profile** -- Filename of ICC profile to embed, const char *.
3400
3444
  * - **lossless** -- Enable lossless compression, bool.
3401
3445
  * - **compression** -- Compression format, VipsForeignHeifCompression.
3402
3446
  * - **effort** -- CPU effort, int.
@@ -3405,6 +3449,7 @@ public:
3405
3449
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3406
3450
  * - **background** -- Background value, std::vector<double>.
3407
3451
  * - **page_height** -- Set page height for multipage save, int.
3452
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3408
3453
  *
3409
3454
  * @param filename Filename to save to.
3410
3455
  * @param options Set of options.
@@ -3417,7 +3462,6 @@ public:
3417
3462
  * **Optional parameters**
3418
3463
  * - **Q** -- Q factor, int.
3419
3464
  * - **bitdepth** -- Number of bits per pixel, int.
3420
- * - **profile** -- Filename of ICC profile to embed, const char *.
3421
3465
  * - **lossless** -- Enable lossless compression, bool.
3422
3466
  * - **compression** -- Compression format, VipsForeignHeifCompression.
3423
3467
  * - **effort** -- CPU effort, int.
@@ -3426,6 +3470,7 @@ public:
3426
3470
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3427
3471
  * - **background** -- Background value, std::vector<double>.
3428
3472
  * - **page_height** -- Set page height for multipage save, int.
3473
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3429
3474
  *
3430
3475
  * @param options Set of options.
3431
3476
  * @return Buffer to save to.
@@ -3438,7 +3483,6 @@ public:
3438
3483
  * **Optional parameters**
3439
3484
  * - **Q** -- Q factor, int.
3440
3485
  * - **bitdepth** -- Number of bits per pixel, int.
3441
- * - **profile** -- Filename of ICC profile to embed, const char *.
3442
3486
  * - **lossless** -- Enable lossless compression, bool.
3443
3487
  * - **compression** -- Compression format, VipsForeignHeifCompression.
3444
3488
  * - **effort** -- CPU effort, int.
@@ -3447,6 +3491,7 @@ public:
3447
3491
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3448
3492
  * - **background** -- Background value, std::vector<double>.
3449
3493
  * - **page_height** -- Set page height for multipage save, int.
3494
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3450
3495
  *
3451
3496
  * @param target Target to save to.
3452
3497
  * @param options Set of options.
@@ -3765,7 +3810,6 @@ public:
3765
3810
  *
3766
3811
  * **Optional parameters**
3767
3812
  * - **tile_width** -- Tile width in pixels, int.
3768
- * - **profile** -- Filename of ICC profile to embed, const char *.
3769
3813
  * - **tile_height** -- Tile height in pixels, int.
3770
3814
  * - **lossless** -- Enable lossless compression, bool.
3771
3815
  * - **Q** -- Q factor, int.
@@ -3773,8 +3817,9 @@ public:
3773
3817
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3774
3818
  * - **background** -- Background value, std::vector<double>.
3775
3819
  * - **page_height** -- Set page height for multipage save, int.
3820
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3776
3821
  *
3777
- * @param filename Filename to load from.
3822
+ * @param filename Filename to save to.
3778
3823
  * @param options Set of options.
3779
3824
  */
3780
3825
  void jp2ksave(const char *filename, VOption *options = nullptr) const;
@@ -3784,7 +3829,6 @@ public:
3784
3829
  *
3785
3830
  * **Optional parameters**
3786
3831
  * - **tile_width** -- Tile width in pixels, int.
3787
- * - **profile** -- Filename of ICC profile to embed, const char *.
3788
3832
  * - **tile_height** -- Tile height in pixels, int.
3789
3833
  * - **lossless** -- Enable lossless compression, bool.
3790
3834
  * - **Q** -- Q factor, int.
@@ -3792,6 +3836,7 @@ public:
3792
3836
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3793
3837
  * - **background** -- Background value, std::vector<double>.
3794
3838
  * - **page_height** -- Set page height for multipage save, int.
3839
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3795
3840
  *
3796
3841
  * @param options Set of options.
3797
3842
  * @return Buffer to save to.
@@ -3803,7 +3848,6 @@ public:
3803
3848
  *
3804
3849
  * **Optional parameters**
3805
3850
  * - **tile_width** -- Tile width in pixels, int.
3806
- * - **profile** -- Filename of ICC profile to embed, const char *.
3807
3851
  * - **tile_height** -- Tile height in pixels, int.
3808
3852
  * - **lossless** -- Enable lossless compression, bool.
3809
3853
  * - **Q** -- Q factor, int.
@@ -3811,6 +3855,7 @@ public:
3811
3855
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3812
3856
  * - **background** -- Background value, std::vector<double>.
3813
3857
  * - **page_height** -- Set page height for multipage save, int.
3858
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3814
3859
  *
3815
3860
  * @param target Target to save to.
3816
3861
  * @param options Set of options.
@@ -3876,7 +3921,6 @@ public:
3876
3921
  *
3877
3922
  * **Optional parameters**
3878
3923
  * - **Q** -- Q factor, int.
3879
- * - **profile** -- Filename of ICC profile to embed, const char *.
3880
3924
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3881
3925
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3882
3926
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3888,6 +3932,7 @@ public:
3888
3932
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3889
3933
  * - **background** -- Background value, std::vector<double>.
3890
3934
  * - **page_height** -- Set page height for multipage save, int.
3935
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3891
3936
  *
3892
3937
  * @param filename Filename to save to.
3893
3938
  * @param options Set of options.
@@ -3899,7 +3944,6 @@ public:
3899
3944
  *
3900
3945
  * **Optional parameters**
3901
3946
  * - **Q** -- Q factor, int.
3902
- * - **profile** -- Filename of ICC profile to embed, const char *.
3903
3947
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3904
3948
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3905
3949
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3911,6 +3955,7 @@ public:
3911
3955
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3912
3956
  * - **background** -- Background value, std::vector<double>.
3913
3957
  * - **page_height** -- Set page height for multipage save, int.
3958
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3914
3959
  *
3915
3960
  * @param options Set of options.
3916
3961
  * @return Buffer to save to.
@@ -3922,7 +3967,6 @@ public:
3922
3967
  *
3923
3968
  * **Optional parameters**
3924
3969
  * - **Q** -- Q factor, int.
3925
- * - **profile** -- Filename of ICC profile to embed, const char *.
3926
3970
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3927
3971
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3928
3972
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3934,6 +3978,7 @@ public:
3934
3978
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3935
3979
  * - **background** -- Background value, std::vector<double>.
3936
3980
  * - **page_height** -- Set page height for multipage save, int.
3981
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3937
3982
  *
3938
3983
  * @param options Set of options.
3939
3984
  */
@@ -3944,7 +3989,6 @@ public:
3944
3989
  *
3945
3990
  * **Optional parameters**
3946
3991
  * - **Q** -- Q factor, int.
3947
- * - **profile** -- Filename of ICC profile to embed, const char *.
3948
3992
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3949
3993
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3950
3994
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3956,6 +4000,7 @@ public:
3956
4000
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3957
4001
  * - **background** -- Background value, std::vector<double>.
3958
4002
  * - **page_height** -- Set page height for multipage save, int.
4003
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3959
4004
  *
3960
4005
  * @param target Target to save to.
3961
4006
  * @param options Set of options.
@@ -3966,6 +4011,8 @@ public:
3966
4011
  * Load jpeg-xl image.
3967
4012
  *
3968
4013
  * **Optional parameters**
4014
+ * - **page** -- First page to load, int.
4015
+ * - **n** -- Number of pages to load, -1 for all, int.
3969
4016
  * - **memory** -- Force open via memory, bool.
3970
4017
  * - **access** -- Required access pattern for this file, VipsAccess.
3971
4018
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -3981,6 +4028,8 @@ public:
3981
4028
  * Load jpeg-xl image.
3982
4029
  *
3983
4030
  * **Optional parameters**
4031
+ * - **page** -- First page to load, int.
4032
+ * - **n** -- Number of pages to load, -1 for all, int.
3984
4033
  * - **memory** -- Force open via memory, bool.
3985
4034
  * - **access** -- Required access pattern for this file, VipsAccess.
3986
4035
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -3996,6 +4045,8 @@ public:
3996
4045
  * Load jpeg-xl image.
3997
4046
  *
3998
4047
  * **Optional parameters**
4048
+ * - **page** -- First page to load, int.
4049
+ * - **n** -- Number of pages to load, -1 for all, int.
3999
4050
  * - **memory** -- Force open via memory, bool.
4000
4051
  * - **access** -- Required access pattern for this file, VipsAccess.
4001
4052
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -4013,15 +4064,15 @@ public:
4013
4064
  * **Optional parameters**
4014
4065
  * - **tier** -- Decode speed tier, int.
4015
4066
  * - **distance** -- Target butteraugli distance, double.
4016
- * - **profile** -- Filename of ICC profile to embed, const char *.
4017
4067
  * - **effort** -- Encoding effort, int.
4018
4068
  * - **lossless** -- Enable lossless compression, bool.
4019
4069
  * - **Q** -- Quality factor, int.
4020
4070
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4021
4071
  * - **background** -- Background value, std::vector<double>.
4022
4072
  * - **page_height** -- Set page height for multipage save, int.
4073
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4023
4074
  *
4024
- * @param filename Filename to load from.
4075
+ * @param filename Filename to save to.
4025
4076
  * @param options Set of options.
4026
4077
  */
4027
4078
  void jxlsave(const char *filename, VOption *options = nullptr) const;
@@ -4032,13 +4083,13 @@ public:
4032
4083
  * **Optional parameters**
4033
4084
  * - **tier** -- Decode speed tier, int.
4034
4085
  * - **distance** -- Target butteraugli distance, double.
4035
- * - **profile** -- Filename of ICC profile to embed, const char *.
4036
4086
  * - **effort** -- Encoding effort, int.
4037
4087
  * - **lossless** -- Enable lossless compression, bool.
4038
4088
  * - **Q** -- Quality factor, int.
4039
4089
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4040
4090
  * - **background** -- Background value, std::vector<double>.
4041
4091
  * - **page_height** -- Set page height for multipage save, int.
4092
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4042
4093
  *
4043
4094
  * @param options Set of options.
4044
4095
  * @return Buffer to save to.
@@ -4051,13 +4102,13 @@ public:
4051
4102
  * **Optional parameters**
4052
4103
  * - **tier** -- Decode speed tier, int.
4053
4104
  * - **distance** -- Target butteraugli distance, double.
4054
- * - **profile** -- Filename of ICC profile to embed, const char *.
4055
4105
  * - **effort** -- Encoding effort, int.
4056
4106
  * - **lossless** -- Enable lossless compression, bool.
4057
4107
  * - **Q** -- Quality factor, int.
4058
4108
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4059
4109
  * - **background** -- Background value, std::vector<double>.
4060
4110
  * - **page_height** -- Set page height for multipage save, int.
4111
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4061
4112
  *
4062
4113
  * @param target Target to save to.
4063
4114
  * @param options Set of options.
@@ -4157,10 +4208,10 @@ public:
4157
4208
  * - **optimize_gif_frames** -- Apply GIF frames optimization, bool.
4158
4209
  * - **optimize_gif_transparency** -- Apply GIF transparency optimization, bool.
4159
4210
  * - **bitdepth** -- Number of bits per pixel, int.
4160
- * - **profile** -- Filename of ICC profile to embed, const char *.
4161
4211
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4162
4212
  * - **background** -- Background value, std::vector<double>.
4163
4213
  * - **page_height** -- Set page height for multipage save, int.
4214
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4164
4215
  *
4165
4216
  * @param filename Filename to save to.
4166
4217
  * @param options Set of options.
@@ -4176,10 +4227,10 @@ public:
4176
4227
  * - **optimize_gif_frames** -- Apply GIF frames optimization, bool.
4177
4228
  * - **optimize_gif_transparency** -- Apply GIF transparency optimization, bool.
4178
4229
  * - **bitdepth** -- Number of bits per pixel, int.
4179
- * - **profile** -- Filename of ICC profile to embed, const char *.
4180
4230
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4181
4231
  * - **background** -- Background value, std::vector<double>.
4182
4232
  * - **page_height** -- Set page height for multipage save, int.
4233
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4183
4234
  *
4184
4235
  * @param options Set of options.
4185
4236
  * @return Buffer to save to.
@@ -4506,10 +4557,10 @@ public:
4506
4557
  * Print matrix.
4507
4558
  *
4508
4559
  * **Optional parameters**
4509
- * - **profile** -- Filename of ICC profile to embed, const char *.
4510
4560
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4511
4561
  * - **background** -- Background value, std::vector<double>.
4512
4562
  * - **page_height** -- Set page height for multipage save, int.
4563
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4513
4564
  *
4514
4565
  * @param options Set of options.
4515
4566
  */
@@ -4519,10 +4570,10 @@ public:
4519
4570
  * Save image to matrix.
4520
4571
  *
4521
4572
  * **Optional parameters**
4522
- * - **profile** -- Filename of ICC profile to embed, const char *.
4523
4573
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4524
4574
  * - **background** -- Background value, std::vector<double>.
4525
4575
  * - **page_height** -- Set page height for multipage save, int.
4576
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4526
4577
  *
4527
4578
  * @param filename Filename to save to.
4528
4579
  * @param options Set of options.
@@ -4533,10 +4584,10 @@ public:
4533
4584
  * Save image to matrix.
4534
4585
  *
4535
4586
  * **Optional parameters**
4536
- * - **profile** -- Filename of ICC profile to embed, const char *.
4537
4587
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4538
4588
  * - **background** -- Background value, std::vector<double>.
4539
4589
  * - **page_height** -- Set page height for multipage save, int.
4590
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4540
4591
  *
4541
4592
  * @param target Target to save to.
4542
4593
  * @param options Set of options.
@@ -4554,6 +4605,14 @@ public:
4554
4605
  */
4555
4606
  double max(VOption *options = nullptr) const;
4556
4607
 
4608
+ /**
4609
+ * Maximum of a pair of images.
4610
+ * @param right Right-hand image argument.
4611
+ * @param options Set of options.
4612
+ * @return Output image.
4613
+ */
4614
+ VImage maxpair(VImage right, VOption *options = nullptr) const;
4615
+
4557
4616
  /**
4558
4617
  * Measure a set of patches on a color chart.
4559
4618
  *
@@ -4596,6 +4655,14 @@ public:
4596
4655
  */
4597
4656
  double min(VOption *options = nullptr) const;
4598
4657
 
4658
+ /**
4659
+ * Minimum of a pair of images.
4660
+ * @param right Right-hand image argument.
4661
+ * @param options Set of options.
4662
+ * @return Output image.
4663
+ */
4664
+ VImage minpair(VImage right, VOption *options = nullptr) const;
4665
+
4599
4666
  /**
4600
4667
  * Morphology operation.
4601
4668
  * @param mask Input matrix image.
@@ -4703,10 +4770,10 @@ public:
4703
4770
  * Save image to nifti file.
4704
4771
  *
4705
4772
  * **Optional parameters**
4706
- * - **profile** -- Filename of ICC profile to embed, const char *.
4707
4773
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4708
4774
  * - **background** -- Background value, std::vector<double>.
4709
4775
  * - **page_height** -- Set page height for multipage save, int.
4776
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4710
4777
  *
4711
4778
  * @param filename Filename to save to.
4712
4779
  * @param options Set of options.
@@ -4916,7 +4983,6 @@ public:
4916
4983
  * **Optional parameters**
4917
4984
  * - **compression** -- Compression factor, int.
4918
4985
  * - **interlace** -- Interlace image, bool.
4919
- * - **profile** -- Filename of ICC profile to embed, const char *.
4920
4986
  * - **filter** -- libspng row filter flag(s), VipsForeignPngFilter.
4921
4987
  * - **palette** -- Quantise to 8bpp palette, bool.
4922
4988
  * - **Q** -- Quantisation quality, int.
@@ -4926,6 +4992,7 @@ public:
4926
4992
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4927
4993
  * - **background** -- Background value, std::vector<double>.
4928
4994
  * - **page_height** -- Set page height for multipage save, int.
4995
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4929
4996
  *
4930
4997
  * @param filename Filename to save to.
4931
4998
  * @param options Set of options.
@@ -4938,7 +5005,6 @@ public:
4938
5005
  * **Optional parameters**
4939
5006
  * - **compression** -- Compression factor, int.
4940
5007
  * - **interlace** -- Interlace image, bool.
4941
- * - **profile** -- Filename of ICC profile to embed, const char *.
4942
5008
  * - **filter** -- libspng row filter flag(s), VipsForeignPngFilter.
4943
5009
  * - **palette** -- Quantise to 8bpp palette, bool.
4944
5010
  * - **Q** -- Quantisation quality, int.
@@ -4948,6 +5014,7 @@ public:
4948
5014
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4949
5015
  * - **background** -- Background value, std::vector<double>.
4950
5016
  * - **page_height** -- Set page height for multipage save, int.
5017
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4951
5018
  *
4952
5019
  * @param options Set of options.
4953
5020
  * @return Buffer to save to.
@@ -4960,7 +5027,6 @@ public:
4960
5027
  * **Optional parameters**
4961
5028
  * - **compression** -- Compression factor, int.
4962
5029
  * - **interlace** -- Interlace image, bool.
4963
- * - **profile** -- Filename of ICC profile to embed, const char *.
4964
5030
  * - **filter** -- libspng row filter flag(s), VipsForeignPngFilter.
4965
5031
  * - **palette** -- Quantise to 8bpp palette, bool.
4966
5032
  * - **Q** -- Quantisation quality, int.
@@ -4970,6 +5036,7 @@ public:
4970
5036
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4971
5037
  * - **background** -- Background value, std::vector<double>.
4972
5038
  * - **page_height** -- Set page height for multipage save, int.
5039
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4973
5040
  *
4974
5041
  * @param target Target to save to.
4975
5042
  * @param options Set of options.
@@ -5012,11 +5079,11 @@ public:
5012
5079
  * **Optional parameters**
5013
5080
  * - **format** -- Format to save in, VipsForeignPpmFormat.
5014
5081
  * - **ascii** -- Save as ascii, bool.
5015
- * - **profile** -- Filename of ICC profile to embed, const char *.
5016
5082
  * - **bitdepth** -- Set to 1 to write as a 1 bit image, int.
5017
5083
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5018
5084
  * - **background** -- Background value, std::vector<double>.
5019
5085
  * - **page_height** -- Set page height for multipage save, int.
5086
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5020
5087
  *
5021
5088
  * @param filename Filename to save to.
5022
5089
  * @param options Set of options.
@@ -5029,11 +5096,11 @@ public:
5029
5096
  * **Optional parameters**
5030
5097
  * - **format** -- Format to save in, VipsForeignPpmFormat.
5031
5098
  * - **ascii** -- Save as ascii, bool.
5032
- * - **profile** -- Filename of ICC profile to embed, const char *.
5033
5099
  * - **bitdepth** -- Set to 1 to write as a 1 bit image, int.
5034
5100
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5035
5101
  * - **background** -- Background value, std::vector<double>.
5036
5102
  * - **page_height** -- Set page height for multipage save, int.
5103
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5037
5104
  *
5038
5105
  * @param target Target to save to.
5039
5106
  * @param options Set of options.
@@ -5150,10 +5217,10 @@ public:
5150
5217
  * Save image to radiance file.
5151
5218
  *
5152
5219
  * **Optional parameters**
5153
- * - **profile** -- Filename of ICC profile to embed, const char *.
5154
5220
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5155
5221
  * - **background** -- Background value, std::vector<double>.
5156
5222
  * - **page_height** -- Set page height for multipage save, int.
5223
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5157
5224
  *
5158
5225
  * @param filename Filename to save to.
5159
5226
  * @param options Set of options.
@@ -5164,10 +5231,10 @@ public:
5164
5231
  * Save image to radiance buffer.
5165
5232
  *
5166
5233
  * **Optional parameters**
5167
- * - **profile** -- Filename of ICC profile to embed, const char *.
5168
5234
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5169
5235
  * - **background** -- Background value, std::vector<double>.
5170
5236
  * - **page_height** -- Set page height for multipage save, int.
5237
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5171
5238
  *
5172
5239
  * @param options Set of options.
5173
5240
  * @return Buffer to save to.
@@ -5178,10 +5245,10 @@ public:
5178
5245
  * Save image to radiance target.
5179
5246
  *
5180
5247
  * **Optional parameters**
5181
- * - **profile** -- Filename of ICC profile to embed, const char *.
5182
5248
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5183
5249
  * - **background** -- Background value, std::vector<double>.
5184
5250
  * - **page_height** -- Set page height for multipage save, int.
5251
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5185
5252
  *
5186
5253
  * @param target Target to save to.
5187
5254
  * @param options Set of options.
@@ -5223,10 +5290,10 @@ public:
5223
5290
  * Save image to raw file.
5224
5291
  *
5225
5292
  * **Optional parameters**
5226
- * - **profile** -- Filename of ICC profile to embed, const char *.
5227
5293
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5228
5294
  * - **background** -- Background value, std::vector<double>.
5229
5295
  * - **page_height** -- Set page height for multipage save, int.
5296
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5230
5297
  *
5231
5298
  * @param filename Filename to save to.
5232
5299
  * @param options Set of options.
@@ -5234,18 +5301,32 @@ public:
5234
5301
  void rawsave(const char *filename, VOption *options = nullptr) const;
5235
5302
 
5236
5303
  /**
5237
- * Write raw image to file descriptor.
5304
+ * Write raw image to buffer.
5238
5305
  *
5239
5306
  * **Optional parameters**
5307
+ * - **keep** -- Which metadata to retain, VipsForeignKeep.
5308
+ * - **background** -- Background value, std::vector<double>.
5309
+ * - **page_height** -- Set page height for multipage save, int.
5240
5310
  * - **profile** -- Filename of ICC profile to embed, const char *.
5311
+ *
5312
+ * @param options Set of options.
5313
+ * @return Buffer to save to.
5314
+ */
5315
+ VipsBlob *rawsave_buffer(VOption *options = nullptr) const;
5316
+
5317
+ /**
5318
+ * Write raw image to target.
5319
+ *
5320
+ * **Optional parameters**
5241
5321
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5242
5322
  * - **background** -- Background value, std::vector<double>.
5243
5323
  * - **page_height** -- Set page height for multipage save, int.
5324
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5244
5325
  *
5245
- * @param fd File descriptor to write to.
5326
+ * @param target Target to save to.
5246
5327
  * @param options Set of options.
5247
5328
  */
5248
- void rawsave_fd(int fd, VOption *options = nullptr) const;
5329
+ void rawsave_target(VTarget target, VOption *options = nullptr) const;
5249
5330
 
5250
5331
  /**
5251
5332
  * Linear recombination with matrix.
@@ -5382,7 +5463,7 @@ public:
5382
5463
  * - **idx** -- Horizontal input displacement, double.
5383
5464
  * - **idy** -- Vertical input displacement, double.
5384
5465
  *
5385
- * @param angle Rotate anticlockwise by this many degrees.
5466
+ * @param angle Rotate clockwise by this many degrees.
5386
5467
  * @param options Set of options.
5387
5468
  * @return Output image.
5388
5469
  */
@@ -5458,6 +5539,23 @@ public:
5458
5539
  */
5459
5540
  VImage scharr(VOption *options = nullptr) const;
5460
5541
 
5542
+ /**
5543
+ * Create an sdf image.
5544
+ *
5545
+ * **Optional parameters**
5546
+ * - **r** -- Radius, double.
5547
+ * - **a** -- Point a, std::vector<double>.
5548
+ * - **b** -- Point b, std::vector<double>.
5549
+ * - **corners** -- Corner radii, std::vector<double>.
5550
+ *
5551
+ * @param width Image width in pixels.
5552
+ * @param height Image height in pixels.
5553
+ * @param shape SDF shape to create.
5554
+ * @param options Set of options.
5555
+ * @return Output image.
5556
+ */
5557
+ static VImage sdf(int width, int height, VipsSdfShape shape, VOption *options = nullptr);
5558
+
5461
5559
  /**
5462
5560
  * Check sequential access.
5463
5561
  *
@@ -5534,7 +5632,7 @@ public:
5534
5632
  *
5535
5633
  * **Optional parameters**
5536
5634
  * - **scale** -- Scale by this factor, double.
5537
- * - **angle** -- Rotate anticlockwise by this many degrees, double.
5635
+ * - **angle** -- Rotate clockwise by this many degrees, double.
5538
5636
  * - **interpolate** -- Interpolate pixels with this, VInterpolate.
5539
5637
  * - **background** -- Background value, std::vector<double>.
5540
5638
  * - **odx** -- Horizontal output displacement, double.
@@ -5897,7 +5995,6 @@ public:
5897
5995
  * - **predictor** -- Compression prediction, VipsForeignTiffPredictor.
5898
5996
  * - **tile** -- Write a tiled tiff, bool.
5899
5997
  * - **tile_width** -- Tile width in pixels, int.
5900
- * - **profile** -- Filename of ICC profile to embed, const char *.
5901
5998
  * - **tile_height** -- Tile height in pixels, int.
5902
5999
  * - **pyramid** -- Write a pyramidal tiff, bool.
5903
6000
  * - **miniswhite** -- Use 0 for white in 1-bit images, bool.
@@ -5908,7 +6005,7 @@ public:
5908
6005
  * - **bigtiff** -- Write a bigtiff image, bool.
5909
6006
  * - **properties** -- Write a properties document to IMAGEDESCRIPTION, bool.
5910
6007
  * - **region_shrink** -- Method to shrink regions, VipsRegionShrink.
5911
- * - **level** -- ZSTD compression level, int.
6008
+ * - **level** -- Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level, int.
5912
6009
  * - **lossless** -- Enable WEBP lossless mode, bool.
5913
6010
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
5914
6011
  * - **subifd** -- Save pyr layers as sub-IFDs, bool.
@@ -5916,6 +6013,7 @@ public:
5916
6013
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5917
6014
  * - **background** -- Background value, std::vector<double>.
5918
6015
  * - **page_height** -- Set page height for multipage save, int.
6016
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5919
6017
  *
5920
6018
  * @param filename Filename to save to.
5921
6019
  * @param options Set of options.
@@ -5931,7 +6029,6 @@ public:
5931
6029
  * - **predictor** -- Compression prediction, VipsForeignTiffPredictor.
5932
6030
  * - **tile** -- Write a tiled tiff, bool.
5933
6031
  * - **tile_width** -- Tile width in pixels, int.
5934
- * - **profile** -- Filename of ICC profile to embed, const char *.
5935
6032
  * - **tile_height** -- Tile height in pixels, int.
5936
6033
  * - **pyramid** -- Write a pyramidal tiff, bool.
5937
6034
  * - **miniswhite** -- Use 0 for white in 1-bit images, bool.
@@ -5942,7 +6039,7 @@ public:
5942
6039
  * - **bigtiff** -- Write a bigtiff image, bool.
5943
6040
  * - **properties** -- Write a properties document to IMAGEDESCRIPTION, bool.
5944
6041
  * - **region_shrink** -- Method to shrink regions, VipsRegionShrink.
5945
- * - **level** -- ZSTD compression level, int.
6042
+ * - **level** -- Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level, int.
5946
6043
  * - **lossless** -- Enable WEBP lossless mode, bool.
5947
6044
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
5948
6045
  * - **subifd** -- Save pyr layers as sub-IFDs, bool.
@@ -5950,6 +6047,7 @@ public:
5950
6047
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5951
6048
  * - **background** -- Background value, std::vector<double>.
5952
6049
  * - **page_height** -- Set page height for multipage save, int.
6050
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5953
6051
  *
5954
6052
  * @param options Set of options.
5955
6053
  * @return Buffer to save to.
@@ -5965,7 +6063,6 @@ public:
5965
6063
  * - **predictor** -- Compression prediction, VipsForeignTiffPredictor.
5966
6064
  * - **tile** -- Write a tiled tiff, bool.
5967
6065
  * - **tile_width** -- Tile width in pixels, int.
5968
- * - **profile** -- Filename of ICC profile to embed, const char *.
5969
6066
  * - **tile_height** -- Tile height in pixels, int.
5970
6067
  * - **pyramid** -- Write a pyramidal tiff, bool.
5971
6068
  * - **miniswhite** -- Use 0 for white in 1-bit images, bool.
@@ -5976,7 +6073,7 @@ public:
5976
6073
  * - **bigtiff** -- Write a bigtiff image, bool.
5977
6074
  * - **properties** -- Write a properties document to IMAGEDESCRIPTION, bool.
5978
6075
  * - **region_shrink** -- Method to shrink regions, VipsRegionShrink.
5979
- * - **level** -- ZSTD compression level, int.
6076
+ * - **level** -- Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level, int.
5980
6077
  * - **lossless** -- Enable WEBP lossless mode, bool.
5981
6078
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
5982
6079
  * - **subifd** -- Save pyr layers as sub-IFDs, bool.
@@ -5984,6 +6081,7 @@ public:
5984
6081
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5985
6082
  * - **background** -- Background value, std::vector<double>.
5986
6083
  * - **page_height** -- Set page height for multipage save, int.
6084
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5987
6085
  *
5988
6086
  * @param target Target to save to.
5989
6087
  * @param options Set of options.
@@ -6083,10 +6181,10 @@ public:
6083
6181
  * Save image to file in vips format.
6084
6182
  *
6085
6183
  * **Optional parameters**
6086
- * - **profile** -- Filename of ICC profile to embed, const char *.
6087
6184
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6088
6185
  * - **background** -- Background value, std::vector<double>.
6089
6186
  * - **page_height** -- Set page height for multipage save, int.
6187
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6090
6188
  *
6091
6189
  * @param filename Filename to save to.
6092
6190
  * @param options Set of options.
@@ -6097,10 +6195,10 @@ public:
6097
6195
  * Save image to target in vips format.
6098
6196
  *
6099
6197
  * **Optional parameters**
6100
- * - **profile** -- Filename of ICC profile to embed, const char *.
6101
6198
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6102
6199
  * - **background** -- Background value, std::vector<double>.
6103
6200
  * - **page_height** -- Set page height for multipage save, int.
6201
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6104
6202
  *
6105
6203
  * @param target Target to save to.
6106
6204
  * @param options Set of options.
@@ -6167,7 +6265,6 @@ public:
6167
6265
  * **Optional parameters**
6168
6266
  * - **Q** -- Q factor, int.
6169
6267
  * - **lossless** -- Enable lossless compression, bool.
6170
- * - **profile** -- Filename of ICC profile to embed, const char *.
6171
6268
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6172
6269
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6173
6270
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6176,10 +6273,14 @@ public:
6176
6273
  * - **kmin** -- Minimum number of frames between key frames, int.
6177
6274
  * - **kmax** -- Maximum number of frames between key frames, int.
6178
6275
  * - **effort** -- Level of CPU effort to reduce file size, int.
6276
+ * - **target_size** -- Desired target size in bytes, int.
6179
6277
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6278
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6279
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6180
6280
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6181
6281
  * - **background** -- Background value, std::vector<double>.
6182
6282
  * - **page_height** -- Set page height for multipage save, int.
6283
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6183
6284
  *
6184
6285
  * @param filename Filename to save to.
6185
6286
  * @param options Set of options.
@@ -6192,7 +6293,6 @@ public:
6192
6293
  * **Optional parameters**
6193
6294
  * - **Q** -- Q factor, int.
6194
6295
  * - **lossless** -- Enable lossless compression, bool.
6195
- * - **profile** -- Filename of ICC profile to embed, const char *.
6196
6296
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6197
6297
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6198
6298
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6201,10 +6301,14 @@ public:
6201
6301
  * - **kmin** -- Minimum number of frames between key frames, int.
6202
6302
  * - **kmax** -- Maximum number of frames between key frames, int.
6203
6303
  * - **effort** -- Level of CPU effort to reduce file size, int.
6304
+ * - **target_size** -- Desired target size in bytes, int.
6204
6305
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6306
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6307
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6205
6308
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6206
6309
  * - **background** -- Background value, std::vector<double>.
6207
6310
  * - **page_height** -- Set page height for multipage save, int.
6311
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6208
6312
  *
6209
6313
  * @param options Set of options.
6210
6314
  * @return Buffer to save to.
@@ -6217,7 +6321,6 @@ public:
6217
6321
  * **Optional parameters**
6218
6322
  * - **Q** -- Q factor, int.
6219
6323
  * - **lossless** -- Enable lossless compression, bool.
6220
- * - **profile** -- Filename of ICC profile to embed, const char *.
6221
6324
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6222
6325
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6223
6326
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6226,10 +6329,14 @@ public:
6226
6329
  * - **kmin** -- Minimum number of frames between key frames, int.
6227
6330
  * - **kmax** -- Maximum number of frames between key frames, int.
6228
6331
  * - **effort** -- Level of CPU effort to reduce file size, int.
6332
+ * - **target_size** -- Desired target size in bytes, int.
6229
6333
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6334
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6335
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6230
6336
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6231
6337
  * - **background** -- Background value, std::vector<double>.
6232
6338
  * - **page_height** -- Set page height for multipage save, int.
6339
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6233
6340
  *
6234
6341
  * @param options Set of options.
6235
6342
  */
@@ -6241,7 +6348,6 @@ public:
6241
6348
  * **Optional parameters**
6242
6349
  * - **Q** -- Q factor, int.
6243
6350
  * - **lossless** -- Enable lossless compression, bool.
6244
- * - **profile** -- Filename of ICC profile to embed, const char *.
6245
6351
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6246
6352
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6247
6353
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6250,10 +6356,14 @@ public:
6250
6356
  * - **kmin** -- Minimum number of frames between key frames, int.
6251
6357
  * - **kmax** -- Maximum number of frames between key frames, int.
6252
6358
  * - **effort** -- Level of CPU effort to reduce file size, int.
6359
+ * - **target_size** -- Desired target size in bytes, int.
6253
6360
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6361
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6362
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6254
6363
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6255
6364
  * - **background** -- Background value, std::vector<double>.
6256
6365
  * - **page_height** -- Set page height for multipage save, int.
6366
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6257
6367
  *
6258
6368
  * @param target Target to save to.
6259
6369
  * @param options Set of options.