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

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,23 @@ 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
+ /**
2054
+ * Write raw image to file descriptor.
2055
+ *
2056
+ * **Optional parameters**
2057
+ * - **keep** -- Which metadata to retain, VipsForeignKeep.
2058
+ * - **background** -- Background value, std::vector<double>.
2059
+ * - **page_height** -- Set page height for multipage save, int.
2060
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2061
+ *
2062
+ * @param fd File descriptor to write to.
2063
+ * @param options Set of options.
2064
+ */
2065
+ G_DEPRECATED_FOR(rawsave_target)
2066
+ void rawsave_fd(int fd, VOption *options = nullptr) const;
2067
+
2051
2068
  /* Automatically generated members.
2052
2069
  *
2053
2070
  * Rebuild with:
@@ -2055,7 +2072,7 @@ public:
2055
2072
  * meson compile -Cbuild vips-operators-header
2056
2073
  *
2057
2074
  * 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
2075
+ * vips-operators.h. We could just #include "vips-operators.h", but
2059
2076
  * that confuses doxygen.
2060
2077
  */
2061
2078
 
@@ -2218,6 +2235,13 @@ public:
2218
2235
  */
2219
2236
  VImage add(VImage right, VOption *options = nullptr) const;
2220
2237
 
2238
+ /**
2239
+ * Append an alpha channel.
2240
+ * @param options Set of options.
2241
+ * @return Output image.
2242
+ */
2243
+ VImage addalpha(VOption *options = nullptr) const;
2244
+
2221
2245
  /**
2222
2246
  * Affine transform of an image.
2223
2247
  *
@@ -2406,6 +2430,7 @@ public:
2406
2430
  * @param options Set of options.
2407
2431
  * @return Output image.
2408
2432
  */
2433
+ G_DEPRECATED
2409
2434
  VImage cache(VOption *options = nullptr) const;
2410
2435
 
2411
2436
  /**
@@ -2440,6 +2465,18 @@ public:
2440
2465
  */
2441
2466
  VImage cast(VipsBandFormat format, VOption *options = nullptr) const;
2442
2467
 
2468
+ /**
2469
+ * Clamp values of an image.
2470
+ *
2471
+ * **Optional parameters**
2472
+ * - **min** -- Minimum value, double.
2473
+ * - **max** -- Maximum value, double.
2474
+ *
2475
+ * @param options Set of options.
2476
+ * @return Output image.
2477
+ */
2478
+ VImage clamp(VOption *options = nullptr) const;
2479
+
2443
2480
  /**
2444
2481
  * Convert to a new colorspace.
2445
2482
  *
@@ -2684,11 +2721,11 @@ public:
2684
2721
  * Save image to csv.
2685
2722
  *
2686
2723
  * **Optional parameters**
2687
- * - **profile** -- Filename of ICC profile to embed, const char *.
2688
2724
  * - **separator** -- Separator characters, const char *.
2689
2725
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2690
2726
  * - **background** -- Background value, std::vector<double>.
2691
2727
  * - **page_height** -- Set page height for multipage save, int.
2728
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2692
2729
  *
2693
2730
  * @param filename Filename to save to.
2694
2731
  * @param options Set of options.
@@ -2699,11 +2736,11 @@ public:
2699
2736
  * Save image to csv.
2700
2737
  *
2701
2738
  * **Optional parameters**
2702
- * - **profile** -- Filename of ICC profile to embed, const char *.
2703
2739
  * - **separator** -- Separator characters, const char *.
2704
2740
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2705
2741
  * - **background** -- Background value, std::vector<double>.
2706
2742
  * - **page_height** -- Set page height for multipage save, int.
2743
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2707
2744
  *
2708
2745
  * @param target Target to save to.
2709
2746
  * @param options Set of options.
@@ -2845,7 +2882,6 @@ public:
2845
2882
  * - **suffix** -- Filename suffix for tiles, const char *.
2846
2883
  * - **overlap** -- Tile overlap in pixels, int.
2847
2884
  * - **tile_size** -- Tile size in pixels, int.
2848
- * - **profile** -- Filename of ICC profile to embed, const char *.
2849
2885
  * - **centre** -- Center image in tile, bool.
2850
2886
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
2851
2887
  * - **angle** -- Rotate image during save, VipsAngle.
@@ -2858,6 +2894,7 @@ public:
2858
2894
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2859
2895
  * - **background** -- Background value, std::vector<double>.
2860
2896
  * - **page_height** -- Set page height for multipage save, int.
2897
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2861
2898
  *
2862
2899
  * @param filename Filename to save to.
2863
2900
  * @param options Set of options.
@@ -2873,7 +2910,6 @@ public:
2873
2910
  * - **suffix** -- Filename suffix for tiles, const char *.
2874
2911
  * - **overlap** -- Tile overlap in pixels, int.
2875
2912
  * - **tile_size** -- Tile size in pixels, int.
2876
- * - **profile** -- Filename of ICC profile to embed, const char *.
2877
2913
  * - **centre** -- Center image in tile, bool.
2878
2914
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
2879
2915
  * - **angle** -- Rotate image during save, VipsAngle.
@@ -2886,6 +2922,7 @@ public:
2886
2922
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2887
2923
  * - **background** -- Background value, std::vector<double>.
2888
2924
  * - **page_height** -- Set page height for multipage save, int.
2925
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2889
2926
  *
2890
2927
  * @param options Set of options.
2891
2928
  * @return Buffer to save to.
@@ -2901,7 +2938,6 @@ public:
2901
2938
  * - **suffix** -- Filename suffix for tiles, const char *.
2902
2939
  * - **overlap** -- Tile overlap in pixels, int.
2903
2940
  * - **tile_size** -- Tile size in pixels, int.
2904
- * - **profile** -- Filename of ICC profile to embed, const char *.
2905
2941
  * - **centre** -- Center image in tile, bool.
2906
2942
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
2907
2943
  * - **angle** -- Rotate image during save, VipsAngle.
@@ -2914,6 +2950,7 @@ public:
2914
2950
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
2915
2951
  * - **background** -- Background value, std::vector<double>.
2916
2952
  * - **page_height** -- Set page height for multipage save, int.
2953
+ * - **profile** -- Filename of ICC profile to embed, const char *.
2917
2954
  *
2918
2955
  * @param target Target to save to.
2919
2956
  * @param options Set of options.
@@ -3045,10 +3082,10 @@ public:
3045
3082
  * Save image to fits file.
3046
3083
  *
3047
3084
  * **Optional parameters**
3048
- * - **profile** -- Filename of ICC profile to embed, const char *.
3049
3085
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3050
3086
  * - **background** -- Background value, std::vector<double>.
3051
3087
  * - **page_height** -- Set page height for multipage save, int.
3088
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3052
3089
  *
3053
3090
  * @param filename Filename to save to.
3054
3091
  * @param options Set of options.
@@ -3162,6 +3199,10 @@ public:
3162
3199
 
3163
3200
  /**
3164
3201
  * Read a point from an image.
3202
+ *
3203
+ * **Optional parameters**
3204
+ * - **unpack_complex** -- Complex pixels should be unpacked, bool.
3205
+ *
3165
3206
  * @param x Point to read.
3166
3207
  * @param y Point to read.
3167
3208
  * @param options Set of options.
@@ -3226,7 +3267,6 @@ public:
3226
3267
  * **Optional parameters**
3227
3268
  * - **dither** -- Amount of dithering, double.
3228
3269
  * - **effort** -- Quantisation effort, int.
3229
- * - **profile** -- Filename of ICC profile to embed, const char *.
3230
3270
  * - **bitdepth** -- Number of bits per pixel, int.
3231
3271
  * - **interframe_maxerror** -- Maximum inter-frame error for transparency, double.
3232
3272
  * - **reuse** -- Reuse palette from input, bool.
@@ -3235,6 +3275,7 @@ public:
3235
3275
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3236
3276
  * - **background** -- Background value, std::vector<double>.
3237
3277
  * - **page_height** -- Set page height for multipage save, int.
3278
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3238
3279
  *
3239
3280
  * @param filename Filename to save to.
3240
3281
  * @param options Set of options.
@@ -3247,7 +3288,6 @@ public:
3247
3288
  * **Optional parameters**
3248
3289
  * - **dither** -- Amount of dithering, double.
3249
3290
  * - **effort** -- Quantisation effort, int.
3250
- * - **profile** -- Filename of ICC profile to embed, const char *.
3251
3291
  * - **bitdepth** -- Number of bits per pixel, int.
3252
3292
  * - **interframe_maxerror** -- Maximum inter-frame error for transparency, double.
3253
3293
  * - **reuse** -- Reuse palette from input, bool.
@@ -3256,6 +3296,7 @@ public:
3256
3296
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3257
3297
  * - **background** -- Background value, std::vector<double>.
3258
3298
  * - **page_height** -- Set page height for multipage save, int.
3299
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3259
3300
  *
3260
3301
  * @param options Set of options.
3261
3302
  * @return Buffer to save to.
@@ -3268,7 +3309,6 @@ public:
3268
3309
  * **Optional parameters**
3269
3310
  * - **dither** -- Amount of dithering, double.
3270
3311
  * - **effort** -- Quantisation effort, int.
3271
- * - **profile** -- Filename of ICC profile to embed, const char *.
3272
3312
  * - **bitdepth** -- Number of bits per pixel, int.
3273
3313
  * - **interframe_maxerror** -- Maximum inter-frame error for transparency, double.
3274
3314
  * - **reuse** -- Reuse palette from input, bool.
@@ -3277,6 +3317,7 @@ public:
3277
3317
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3278
3318
  * - **background** -- Background value, std::vector<double>.
3279
3319
  * - **page_height** -- Set page height for multipage save, int.
3320
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3280
3321
  *
3281
3322
  * @param target Target to save to.
3282
3323
  * @param options Set of options.
@@ -3396,7 +3437,6 @@ public:
3396
3437
  * **Optional parameters**
3397
3438
  * - **Q** -- Q factor, int.
3398
3439
  * - **bitdepth** -- Number of bits per pixel, int.
3399
- * - **profile** -- Filename of ICC profile to embed, const char *.
3400
3440
  * - **lossless** -- Enable lossless compression, bool.
3401
3441
  * - **compression** -- Compression format, VipsForeignHeifCompression.
3402
3442
  * - **effort** -- CPU effort, int.
@@ -3405,6 +3445,7 @@ public:
3405
3445
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3406
3446
  * - **background** -- Background value, std::vector<double>.
3407
3447
  * - **page_height** -- Set page height for multipage save, int.
3448
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3408
3449
  *
3409
3450
  * @param filename Filename to save to.
3410
3451
  * @param options Set of options.
@@ -3417,7 +3458,6 @@ public:
3417
3458
  * **Optional parameters**
3418
3459
  * - **Q** -- Q factor, int.
3419
3460
  * - **bitdepth** -- Number of bits per pixel, int.
3420
- * - **profile** -- Filename of ICC profile to embed, const char *.
3421
3461
  * - **lossless** -- Enable lossless compression, bool.
3422
3462
  * - **compression** -- Compression format, VipsForeignHeifCompression.
3423
3463
  * - **effort** -- CPU effort, int.
@@ -3426,6 +3466,7 @@ public:
3426
3466
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3427
3467
  * - **background** -- Background value, std::vector<double>.
3428
3468
  * - **page_height** -- Set page height for multipage save, int.
3469
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3429
3470
  *
3430
3471
  * @param options Set of options.
3431
3472
  * @return Buffer to save to.
@@ -3438,7 +3479,6 @@ public:
3438
3479
  * **Optional parameters**
3439
3480
  * - **Q** -- Q factor, int.
3440
3481
  * - **bitdepth** -- Number of bits per pixel, int.
3441
- * - **profile** -- Filename of ICC profile to embed, const char *.
3442
3482
  * - **lossless** -- Enable lossless compression, bool.
3443
3483
  * - **compression** -- Compression format, VipsForeignHeifCompression.
3444
3484
  * - **effort** -- CPU effort, int.
@@ -3447,6 +3487,7 @@ public:
3447
3487
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3448
3488
  * - **background** -- Background value, std::vector<double>.
3449
3489
  * - **page_height** -- Set page height for multipage save, int.
3490
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3450
3491
  *
3451
3492
  * @param target Target to save to.
3452
3493
  * @param options Set of options.
@@ -3765,7 +3806,6 @@ public:
3765
3806
  *
3766
3807
  * **Optional parameters**
3767
3808
  * - **tile_width** -- Tile width in pixels, int.
3768
- * - **profile** -- Filename of ICC profile to embed, const char *.
3769
3809
  * - **tile_height** -- Tile height in pixels, int.
3770
3810
  * - **lossless** -- Enable lossless compression, bool.
3771
3811
  * - **Q** -- Q factor, int.
@@ -3773,8 +3813,9 @@ public:
3773
3813
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3774
3814
  * - **background** -- Background value, std::vector<double>.
3775
3815
  * - **page_height** -- Set page height for multipage save, int.
3816
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3776
3817
  *
3777
- * @param filename Filename to load from.
3818
+ * @param filename Filename to save to.
3778
3819
  * @param options Set of options.
3779
3820
  */
3780
3821
  void jp2ksave(const char *filename, VOption *options = nullptr) const;
@@ -3784,7 +3825,6 @@ public:
3784
3825
  *
3785
3826
  * **Optional parameters**
3786
3827
  * - **tile_width** -- Tile width in pixels, int.
3787
- * - **profile** -- Filename of ICC profile to embed, const char *.
3788
3828
  * - **tile_height** -- Tile height in pixels, int.
3789
3829
  * - **lossless** -- Enable lossless compression, bool.
3790
3830
  * - **Q** -- Q factor, int.
@@ -3792,6 +3832,7 @@ public:
3792
3832
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3793
3833
  * - **background** -- Background value, std::vector<double>.
3794
3834
  * - **page_height** -- Set page height for multipage save, int.
3835
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3795
3836
  *
3796
3837
  * @param options Set of options.
3797
3838
  * @return Buffer to save to.
@@ -3803,7 +3844,6 @@ public:
3803
3844
  *
3804
3845
  * **Optional parameters**
3805
3846
  * - **tile_width** -- Tile width in pixels, int.
3806
- * - **profile** -- Filename of ICC profile to embed, const char *.
3807
3847
  * - **tile_height** -- Tile height in pixels, int.
3808
3848
  * - **lossless** -- Enable lossless compression, bool.
3809
3849
  * - **Q** -- Q factor, int.
@@ -3811,6 +3851,7 @@ public:
3811
3851
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3812
3852
  * - **background** -- Background value, std::vector<double>.
3813
3853
  * - **page_height** -- Set page height for multipage save, int.
3854
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3814
3855
  *
3815
3856
  * @param target Target to save to.
3816
3857
  * @param options Set of options.
@@ -3876,7 +3917,6 @@ public:
3876
3917
  *
3877
3918
  * **Optional parameters**
3878
3919
  * - **Q** -- Q factor, int.
3879
- * - **profile** -- Filename of ICC profile to embed, const char *.
3880
3920
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3881
3921
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3882
3922
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3888,6 +3928,7 @@ public:
3888
3928
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3889
3929
  * - **background** -- Background value, std::vector<double>.
3890
3930
  * - **page_height** -- Set page height for multipage save, int.
3931
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3891
3932
  *
3892
3933
  * @param filename Filename to save to.
3893
3934
  * @param options Set of options.
@@ -3899,7 +3940,6 @@ public:
3899
3940
  *
3900
3941
  * **Optional parameters**
3901
3942
  * - **Q** -- Q factor, int.
3902
- * - **profile** -- Filename of ICC profile to embed, const char *.
3903
3943
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3904
3944
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3905
3945
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3911,6 +3951,7 @@ public:
3911
3951
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3912
3952
  * - **background** -- Background value, std::vector<double>.
3913
3953
  * - **page_height** -- Set page height for multipage save, int.
3954
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3914
3955
  *
3915
3956
  * @param options Set of options.
3916
3957
  * @return Buffer to save to.
@@ -3922,7 +3963,6 @@ public:
3922
3963
  *
3923
3964
  * **Optional parameters**
3924
3965
  * - **Q** -- Q factor, int.
3925
- * - **profile** -- Filename of ICC profile to embed, const char *.
3926
3966
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3927
3967
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3928
3968
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3934,6 +3974,7 @@ public:
3934
3974
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3935
3975
  * - **background** -- Background value, std::vector<double>.
3936
3976
  * - **page_height** -- Set page height for multipage save, int.
3977
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3937
3978
  *
3938
3979
  * @param options Set of options.
3939
3980
  */
@@ -3944,7 +3985,6 @@ public:
3944
3985
  *
3945
3986
  * **Optional parameters**
3946
3987
  * - **Q** -- Q factor, int.
3947
- * - **profile** -- Filename of ICC profile to embed, const char *.
3948
3988
  * - **optimize_coding** -- Compute optimal Huffman coding tables, bool.
3949
3989
  * - **interlace** -- Generate an interlaced (progressive) jpeg, bool.
3950
3990
  * - **trellis_quant** -- Apply trellis quantisation to each 8x8 block, bool.
@@ -3956,6 +3996,7 @@ public:
3956
3996
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3957
3997
  * - **background** -- Background value, std::vector<double>.
3958
3998
  * - **page_height** -- Set page height for multipage save, int.
3999
+ * - **profile** -- Filename of ICC profile to embed, const char *.
3959
4000
  *
3960
4001
  * @param target Target to save to.
3961
4002
  * @param options Set of options.
@@ -3966,6 +4007,8 @@ public:
3966
4007
  * Load jpeg-xl image.
3967
4008
  *
3968
4009
  * **Optional parameters**
4010
+ * - **page** -- First page to load, int.
4011
+ * - **n** -- Number of pages to load, -1 for all, int.
3969
4012
  * - **memory** -- Force open via memory, bool.
3970
4013
  * - **access** -- Required access pattern for this file, VipsAccess.
3971
4014
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -3981,6 +4024,8 @@ public:
3981
4024
  * Load jpeg-xl image.
3982
4025
  *
3983
4026
  * **Optional parameters**
4027
+ * - **page** -- First page to load, int.
4028
+ * - **n** -- Number of pages to load, -1 for all, int.
3984
4029
  * - **memory** -- Force open via memory, bool.
3985
4030
  * - **access** -- Required access pattern for this file, VipsAccess.
3986
4031
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -3996,6 +4041,8 @@ public:
3996
4041
  * Load jpeg-xl image.
3997
4042
  *
3998
4043
  * **Optional parameters**
4044
+ * - **page** -- First page to load, int.
4045
+ * - **n** -- Number of pages to load, -1 for all, int.
3999
4046
  * - **memory** -- Force open via memory, bool.
4000
4047
  * - **access** -- Required access pattern for this file, VipsAccess.
4001
4048
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -4013,15 +4060,15 @@ public:
4013
4060
  * **Optional parameters**
4014
4061
  * - **tier** -- Decode speed tier, int.
4015
4062
  * - **distance** -- Target butteraugli distance, double.
4016
- * - **profile** -- Filename of ICC profile to embed, const char *.
4017
4063
  * - **effort** -- Encoding effort, int.
4018
4064
  * - **lossless** -- Enable lossless compression, bool.
4019
4065
  * - **Q** -- Quality factor, int.
4020
4066
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4021
4067
  * - **background** -- Background value, std::vector<double>.
4022
4068
  * - **page_height** -- Set page height for multipage save, int.
4069
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4023
4070
  *
4024
- * @param filename Filename to load from.
4071
+ * @param filename Filename to save to.
4025
4072
  * @param options Set of options.
4026
4073
  */
4027
4074
  void jxlsave(const char *filename, VOption *options = nullptr) const;
@@ -4032,13 +4079,13 @@ public:
4032
4079
  * **Optional parameters**
4033
4080
  * - **tier** -- Decode speed tier, int.
4034
4081
  * - **distance** -- Target butteraugli distance, double.
4035
- * - **profile** -- Filename of ICC profile to embed, const char *.
4036
4082
  * - **effort** -- Encoding effort, int.
4037
4083
  * - **lossless** -- Enable lossless compression, bool.
4038
4084
  * - **Q** -- Quality factor, int.
4039
4085
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4040
4086
  * - **background** -- Background value, std::vector<double>.
4041
4087
  * - **page_height** -- Set page height for multipage save, int.
4088
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4042
4089
  *
4043
4090
  * @param options Set of options.
4044
4091
  * @return Buffer to save to.
@@ -4051,13 +4098,13 @@ public:
4051
4098
  * **Optional parameters**
4052
4099
  * - **tier** -- Decode speed tier, int.
4053
4100
  * - **distance** -- Target butteraugli distance, double.
4054
- * - **profile** -- Filename of ICC profile to embed, const char *.
4055
4101
  * - **effort** -- Encoding effort, int.
4056
4102
  * - **lossless** -- Enable lossless compression, bool.
4057
4103
  * - **Q** -- Quality factor, int.
4058
4104
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4059
4105
  * - **background** -- Background value, std::vector<double>.
4060
4106
  * - **page_height** -- Set page height for multipage save, int.
4107
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4061
4108
  *
4062
4109
  * @param target Target to save to.
4063
4110
  * @param options Set of options.
@@ -4157,10 +4204,10 @@ public:
4157
4204
  * - **optimize_gif_frames** -- Apply GIF frames optimization, bool.
4158
4205
  * - **optimize_gif_transparency** -- Apply GIF transparency optimization, bool.
4159
4206
  * - **bitdepth** -- Number of bits per pixel, int.
4160
- * - **profile** -- Filename of ICC profile to embed, const char *.
4161
4207
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4162
4208
  * - **background** -- Background value, std::vector<double>.
4163
4209
  * - **page_height** -- Set page height for multipage save, int.
4210
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4164
4211
  *
4165
4212
  * @param filename Filename to save to.
4166
4213
  * @param options Set of options.
@@ -4176,10 +4223,10 @@ public:
4176
4223
  * - **optimize_gif_frames** -- Apply GIF frames optimization, bool.
4177
4224
  * - **optimize_gif_transparency** -- Apply GIF transparency optimization, bool.
4178
4225
  * - **bitdepth** -- Number of bits per pixel, int.
4179
- * - **profile** -- Filename of ICC profile to embed, const char *.
4180
4226
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4181
4227
  * - **background** -- Background value, std::vector<double>.
4182
4228
  * - **page_height** -- Set page height for multipage save, int.
4229
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4183
4230
  *
4184
4231
  * @param options Set of options.
4185
4232
  * @return Buffer to save to.
@@ -4506,10 +4553,10 @@ public:
4506
4553
  * Print matrix.
4507
4554
  *
4508
4555
  * **Optional parameters**
4509
- * - **profile** -- Filename of ICC profile to embed, const char *.
4510
4556
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4511
4557
  * - **background** -- Background value, std::vector<double>.
4512
4558
  * - **page_height** -- Set page height for multipage save, int.
4559
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4513
4560
  *
4514
4561
  * @param options Set of options.
4515
4562
  */
@@ -4519,10 +4566,10 @@ public:
4519
4566
  * Save image to matrix.
4520
4567
  *
4521
4568
  * **Optional parameters**
4522
- * - **profile** -- Filename of ICC profile to embed, const char *.
4523
4569
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4524
4570
  * - **background** -- Background value, std::vector<double>.
4525
4571
  * - **page_height** -- Set page height for multipage save, int.
4572
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4526
4573
  *
4527
4574
  * @param filename Filename to save to.
4528
4575
  * @param options Set of options.
@@ -4533,10 +4580,10 @@ public:
4533
4580
  * Save image to matrix.
4534
4581
  *
4535
4582
  * **Optional parameters**
4536
- * - **profile** -- Filename of ICC profile to embed, const char *.
4537
4583
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4538
4584
  * - **background** -- Background value, std::vector<double>.
4539
4585
  * - **page_height** -- Set page height for multipage save, int.
4586
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4540
4587
  *
4541
4588
  * @param target Target to save to.
4542
4589
  * @param options Set of options.
@@ -4554,6 +4601,14 @@ public:
4554
4601
  */
4555
4602
  double max(VOption *options = nullptr) const;
4556
4603
 
4604
+ /**
4605
+ * Maximum of a pair of images.
4606
+ * @param right Right-hand image argument.
4607
+ * @param options Set of options.
4608
+ * @return Output image.
4609
+ */
4610
+ VImage maxpair(VImage right, VOption *options = nullptr) const;
4611
+
4557
4612
  /**
4558
4613
  * Measure a set of patches on a color chart.
4559
4614
  *
@@ -4596,6 +4651,14 @@ public:
4596
4651
  */
4597
4652
  double min(VOption *options = nullptr) const;
4598
4653
 
4654
+ /**
4655
+ * Minimum of a pair of images.
4656
+ * @param right Right-hand image argument.
4657
+ * @param options Set of options.
4658
+ * @return Output image.
4659
+ */
4660
+ VImage minpair(VImage right, VOption *options = nullptr) const;
4661
+
4599
4662
  /**
4600
4663
  * Morphology operation.
4601
4664
  * @param mask Input matrix image.
@@ -4703,10 +4766,10 @@ public:
4703
4766
  * Save image to nifti file.
4704
4767
  *
4705
4768
  * **Optional parameters**
4706
- * - **profile** -- Filename of ICC profile to embed, const char *.
4707
4769
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4708
4770
  * - **background** -- Background value, std::vector<double>.
4709
4771
  * - **page_height** -- Set page height for multipage save, int.
4772
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4710
4773
  *
4711
4774
  * @param filename Filename to save to.
4712
4775
  * @param options Set of options.
@@ -4916,7 +4979,6 @@ public:
4916
4979
  * **Optional parameters**
4917
4980
  * - **compression** -- Compression factor, int.
4918
4981
  * - **interlace** -- Interlace image, bool.
4919
- * - **profile** -- Filename of ICC profile to embed, const char *.
4920
4982
  * - **filter** -- libspng row filter flag(s), VipsForeignPngFilter.
4921
4983
  * - **palette** -- Quantise to 8bpp palette, bool.
4922
4984
  * - **Q** -- Quantisation quality, int.
@@ -4926,6 +4988,7 @@ public:
4926
4988
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4927
4989
  * - **background** -- Background value, std::vector<double>.
4928
4990
  * - **page_height** -- Set page height for multipage save, int.
4991
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4929
4992
  *
4930
4993
  * @param filename Filename to save to.
4931
4994
  * @param options Set of options.
@@ -4938,7 +5001,6 @@ public:
4938
5001
  * **Optional parameters**
4939
5002
  * - **compression** -- Compression factor, int.
4940
5003
  * - **interlace** -- Interlace image, bool.
4941
- * - **profile** -- Filename of ICC profile to embed, const char *.
4942
5004
  * - **filter** -- libspng row filter flag(s), VipsForeignPngFilter.
4943
5005
  * - **palette** -- Quantise to 8bpp palette, bool.
4944
5006
  * - **Q** -- Quantisation quality, int.
@@ -4948,6 +5010,7 @@ public:
4948
5010
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4949
5011
  * - **background** -- Background value, std::vector<double>.
4950
5012
  * - **page_height** -- Set page height for multipage save, int.
5013
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4951
5014
  *
4952
5015
  * @param options Set of options.
4953
5016
  * @return Buffer to save to.
@@ -4960,7 +5023,6 @@ public:
4960
5023
  * **Optional parameters**
4961
5024
  * - **compression** -- Compression factor, int.
4962
5025
  * - **interlace** -- Interlace image, bool.
4963
- * - **profile** -- Filename of ICC profile to embed, const char *.
4964
5026
  * - **filter** -- libspng row filter flag(s), VipsForeignPngFilter.
4965
5027
  * - **palette** -- Quantise to 8bpp palette, bool.
4966
5028
  * - **Q** -- Quantisation quality, int.
@@ -4970,6 +5032,7 @@ public:
4970
5032
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
4971
5033
  * - **background** -- Background value, std::vector<double>.
4972
5034
  * - **page_height** -- Set page height for multipage save, int.
5035
+ * - **profile** -- Filename of ICC profile to embed, const char *.
4973
5036
  *
4974
5037
  * @param target Target to save to.
4975
5038
  * @param options Set of options.
@@ -5012,11 +5075,11 @@ public:
5012
5075
  * **Optional parameters**
5013
5076
  * - **format** -- Format to save in, VipsForeignPpmFormat.
5014
5077
  * - **ascii** -- Save as ascii, bool.
5015
- * - **profile** -- Filename of ICC profile to embed, const char *.
5016
5078
  * - **bitdepth** -- Set to 1 to write as a 1 bit image, int.
5017
5079
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5018
5080
  * - **background** -- Background value, std::vector<double>.
5019
5081
  * - **page_height** -- Set page height for multipage save, int.
5082
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5020
5083
  *
5021
5084
  * @param filename Filename to save to.
5022
5085
  * @param options Set of options.
@@ -5029,11 +5092,11 @@ public:
5029
5092
  * **Optional parameters**
5030
5093
  * - **format** -- Format to save in, VipsForeignPpmFormat.
5031
5094
  * - **ascii** -- Save as ascii, bool.
5032
- * - **profile** -- Filename of ICC profile to embed, const char *.
5033
5095
  * - **bitdepth** -- Set to 1 to write as a 1 bit image, int.
5034
5096
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5035
5097
  * - **background** -- Background value, std::vector<double>.
5036
5098
  * - **page_height** -- Set page height for multipage save, int.
5099
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5037
5100
  *
5038
5101
  * @param target Target to save to.
5039
5102
  * @param options Set of options.
@@ -5150,10 +5213,10 @@ public:
5150
5213
  * Save image to radiance file.
5151
5214
  *
5152
5215
  * **Optional parameters**
5153
- * - **profile** -- Filename of ICC profile to embed, const char *.
5154
5216
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5155
5217
  * - **background** -- Background value, std::vector<double>.
5156
5218
  * - **page_height** -- Set page height for multipage save, int.
5219
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5157
5220
  *
5158
5221
  * @param filename Filename to save to.
5159
5222
  * @param options Set of options.
@@ -5164,10 +5227,10 @@ public:
5164
5227
  * Save image to radiance buffer.
5165
5228
  *
5166
5229
  * **Optional parameters**
5167
- * - **profile** -- Filename of ICC profile to embed, const char *.
5168
5230
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5169
5231
  * - **background** -- Background value, std::vector<double>.
5170
5232
  * - **page_height** -- Set page height for multipage save, int.
5233
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5171
5234
  *
5172
5235
  * @param options Set of options.
5173
5236
  * @return Buffer to save to.
@@ -5178,10 +5241,10 @@ public:
5178
5241
  * Save image to radiance target.
5179
5242
  *
5180
5243
  * **Optional parameters**
5181
- * - **profile** -- Filename of ICC profile to embed, const char *.
5182
5244
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5183
5245
  * - **background** -- Background value, std::vector<double>.
5184
5246
  * - **page_height** -- Set page height for multipage save, int.
5247
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5185
5248
  *
5186
5249
  * @param target Target to save to.
5187
5250
  * @param options Set of options.
@@ -5223,10 +5286,10 @@ public:
5223
5286
  * Save image to raw file.
5224
5287
  *
5225
5288
  * **Optional parameters**
5226
- * - **profile** -- Filename of ICC profile to embed, const char *.
5227
5289
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5228
5290
  * - **background** -- Background value, std::vector<double>.
5229
5291
  * - **page_height** -- Set page height for multipage save, int.
5292
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5230
5293
  *
5231
5294
  * @param filename Filename to save to.
5232
5295
  * @param options Set of options.
@@ -5234,18 +5297,32 @@ public:
5234
5297
  void rawsave(const char *filename, VOption *options = nullptr) const;
5235
5298
 
5236
5299
  /**
5237
- * Write raw image to file descriptor.
5300
+ * Write raw image to buffer.
5238
5301
  *
5239
5302
  * **Optional parameters**
5303
+ * - **keep** -- Which metadata to retain, VipsForeignKeep.
5304
+ * - **background** -- Background value, std::vector<double>.
5305
+ * - **page_height** -- Set page height for multipage save, int.
5240
5306
  * - **profile** -- Filename of ICC profile to embed, const char *.
5307
+ *
5308
+ * @param options Set of options.
5309
+ * @return Buffer to save to.
5310
+ */
5311
+ VipsBlob *rawsave_buffer(VOption *options = nullptr) const;
5312
+
5313
+ /**
5314
+ * Write raw image to target.
5315
+ *
5316
+ * **Optional parameters**
5241
5317
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5242
5318
  * - **background** -- Background value, std::vector<double>.
5243
5319
  * - **page_height** -- Set page height for multipage save, int.
5320
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5244
5321
  *
5245
- * @param fd File descriptor to write to.
5322
+ * @param target Target to save to.
5246
5323
  * @param options Set of options.
5247
5324
  */
5248
- void rawsave_fd(int fd, VOption *options = nullptr) const;
5325
+ void rawsave_target(VTarget target, VOption *options = nullptr) const;
5249
5326
 
5250
5327
  /**
5251
5328
  * Linear recombination with matrix.
@@ -5382,7 +5459,7 @@ public:
5382
5459
  * - **idx** -- Horizontal input displacement, double.
5383
5460
  * - **idy** -- Vertical input displacement, double.
5384
5461
  *
5385
- * @param angle Rotate anticlockwise by this many degrees.
5462
+ * @param angle Rotate clockwise by this many degrees.
5386
5463
  * @param options Set of options.
5387
5464
  * @return Output image.
5388
5465
  */
@@ -5458,6 +5535,23 @@ public:
5458
5535
  */
5459
5536
  VImage scharr(VOption *options = nullptr) const;
5460
5537
 
5538
+ /**
5539
+ * Create an sdf image.
5540
+ *
5541
+ * **Optional parameters**
5542
+ * - **r** -- Radius, double.
5543
+ * - **a** -- Point a, std::vector<double>.
5544
+ * - **b** -- Point b, std::vector<double>.
5545
+ * - **corners** -- Corner radii, std::vector<double>.
5546
+ *
5547
+ * @param width Image width in pixels.
5548
+ * @param height Image height in pixels.
5549
+ * @param shape SDF shape to create.
5550
+ * @param options Set of options.
5551
+ * @return Output image.
5552
+ */
5553
+ static VImage sdf(int width, int height, VipsSdfShape shape, VOption *options = nullptr);
5554
+
5461
5555
  /**
5462
5556
  * Check sequential access.
5463
5557
  *
@@ -5534,7 +5628,7 @@ public:
5534
5628
  *
5535
5629
  * **Optional parameters**
5536
5630
  * - **scale** -- Scale by this factor, double.
5537
- * - **angle** -- Rotate anticlockwise by this many degrees, double.
5631
+ * - **angle** -- Rotate clockwise by this many degrees, double.
5538
5632
  * - **interpolate** -- Interpolate pixels with this, VInterpolate.
5539
5633
  * - **background** -- Background value, std::vector<double>.
5540
5634
  * - **odx** -- Horizontal output displacement, double.
@@ -5897,7 +5991,6 @@ public:
5897
5991
  * - **predictor** -- Compression prediction, VipsForeignTiffPredictor.
5898
5992
  * - **tile** -- Write a tiled tiff, bool.
5899
5993
  * - **tile_width** -- Tile width in pixels, int.
5900
- * - **profile** -- Filename of ICC profile to embed, const char *.
5901
5994
  * - **tile_height** -- Tile height in pixels, int.
5902
5995
  * - **pyramid** -- Write a pyramidal tiff, bool.
5903
5996
  * - **miniswhite** -- Use 0 for white in 1-bit images, bool.
@@ -5908,7 +6001,7 @@ public:
5908
6001
  * - **bigtiff** -- Write a bigtiff image, bool.
5909
6002
  * - **properties** -- Write a properties document to IMAGEDESCRIPTION, bool.
5910
6003
  * - **region_shrink** -- Method to shrink regions, VipsRegionShrink.
5911
- * - **level** -- ZSTD compression level, int.
6004
+ * - **level** -- Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level, int.
5912
6005
  * - **lossless** -- Enable WEBP lossless mode, bool.
5913
6006
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
5914
6007
  * - **subifd** -- Save pyr layers as sub-IFDs, bool.
@@ -5916,6 +6009,7 @@ public:
5916
6009
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5917
6010
  * - **background** -- Background value, std::vector<double>.
5918
6011
  * - **page_height** -- Set page height for multipage save, int.
6012
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5919
6013
  *
5920
6014
  * @param filename Filename to save to.
5921
6015
  * @param options Set of options.
@@ -5931,7 +6025,6 @@ public:
5931
6025
  * - **predictor** -- Compression prediction, VipsForeignTiffPredictor.
5932
6026
  * - **tile** -- Write a tiled tiff, bool.
5933
6027
  * - **tile_width** -- Tile width in pixels, int.
5934
- * - **profile** -- Filename of ICC profile to embed, const char *.
5935
6028
  * - **tile_height** -- Tile height in pixels, int.
5936
6029
  * - **pyramid** -- Write a pyramidal tiff, bool.
5937
6030
  * - **miniswhite** -- Use 0 for white in 1-bit images, bool.
@@ -5942,7 +6035,7 @@ public:
5942
6035
  * - **bigtiff** -- Write a bigtiff image, bool.
5943
6036
  * - **properties** -- Write a properties document to IMAGEDESCRIPTION, bool.
5944
6037
  * - **region_shrink** -- Method to shrink regions, VipsRegionShrink.
5945
- * - **level** -- ZSTD compression level, int.
6038
+ * - **level** -- Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level, int.
5946
6039
  * - **lossless** -- Enable WEBP lossless mode, bool.
5947
6040
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
5948
6041
  * - **subifd** -- Save pyr layers as sub-IFDs, bool.
@@ -5950,6 +6043,7 @@ public:
5950
6043
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5951
6044
  * - **background** -- Background value, std::vector<double>.
5952
6045
  * - **page_height** -- Set page height for multipage save, int.
6046
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5953
6047
  *
5954
6048
  * @param options Set of options.
5955
6049
  * @return Buffer to save to.
@@ -5965,7 +6059,6 @@ public:
5965
6059
  * - **predictor** -- Compression prediction, VipsForeignTiffPredictor.
5966
6060
  * - **tile** -- Write a tiled tiff, bool.
5967
6061
  * - **tile_width** -- Tile width in pixels, int.
5968
- * - **profile** -- Filename of ICC profile to embed, const char *.
5969
6062
  * - **tile_height** -- Tile height in pixels, int.
5970
6063
  * - **pyramid** -- Write a pyramidal tiff, bool.
5971
6064
  * - **miniswhite** -- Use 0 for white in 1-bit images, bool.
@@ -5976,7 +6069,7 @@ public:
5976
6069
  * - **bigtiff** -- Write a bigtiff image, bool.
5977
6070
  * - **properties** -- Write a properties document to IMAGEDESCRIPTION, bool.
5978
6071
  * - **region_shrink** -- Method to shrink regions, VipsRegionShrink.
5979
- * - **level** -- ZSTD compression level, int.
6072
+ * - **level** -- Deflate (1-9, default 6) or ZSTD (1-22, default 9) compression level, int.
5980
6073
  * - **lossless** -- Enable WEBP lossless mode, bool.
5981
6074
  * - **depth** -- Pyramid depth, VipsForeignDzDepth.
5982
6075
  * - **subifd** -- Save pyr layers as sub-IFDs, bool.
@@ -5984,6 +6077,7 @@ public:
5984
6077
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
5985
6078
  * - **background** -- Background value, std::vector<double>.
5986
6079
  * - **page_height** -- Set page height for multipage save, int.
6080
+ * - **profile** -- Filename of ICC profile to embed, const char *.
5987
6081
  *
5988
6082
  * @param target Target to save to.
5989
6083
  * @param options Set of options.
@@ -6083,10 +6177,10 @@ public:
6083
6177
  * Save image to file in vips format.
6084
6178
  *
6085
6179
  * **Optional parameters**
6086
- * - **profile** -- Filename of ICC profile to embed, const char *.
6087
6180
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6088
6181
  * - **background** -- Background value, std::vector<double>.
6089
6182
  * - **page_height** -- Set page height for multipage save, int.
6183
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6090
6184
  *
6091
6185
  * @param filename Filename to save to.
6092
6186
  * @param options Set of options.
@@ -6097,10 +6191,10 @@ public:
6097
6191
  * Save image to target in vips format.
6098
6192
  *
6099
6193
  * **Optional parameters**
6100
- * - **profile** -- Filename of ICC profile to embed, const char *.
6101
6194
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6102
6195
  * - **background** -- Background value, std::vector<double>.
6103
6196
  * - **page_height** -- Set page height for multipage save, int.
6197
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6104
6198
  *
6105
6199
  * @param target Target to save to.
6106
6200
  * @param options Set of options.
@@ -6167,7 +6261,6 @@ public:
6167
6261
  * **Optional parameters**
6168
6262
  * - **Q** -- Q factor, int.
6169
6263
  * - **lossless** -- Enable lossless compression, bool.
6170
- * - **profile** -- Filename of ICC profile to embed, const char *.
6171
6264
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6172
6265
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6173
6266
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6176,10 +6269,14 @@ public:
6176
6269
  * - **kmin** -- Minimum number of frames between key frames, int.
6177
6270
  * - **kmax** -- Maximum number of frames between key frames, int.
6178
6271
  * - **effort** -- Level of CPU effort to reduce file size, int.
6272
+ * - **target_size** -- Desired target size in bytes, int.
6179
6273
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6274
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6275
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6180
6276
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6181
6277
  * - **background** -- Background value, std::vector<double>.
6182
6278
  * - **page_height** -- Set page height for multipage save, int.
6279
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6183
6280
  *
6184
6281
  * @param filename Filename to save to.
6185
6282
  * @param options Set of options.
@@ -6192,7 +6289,6 @@ public:
6192
6289
  * **Optional parameters**
6193
6290
  * - **Q** -- Q factor, int.
6194
6291
  * - **lossless** -- Enable lossless compression, bool.
6195
- * - **profile** -- Filename of ICC profile to embed, const char *.
6196
6292
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6197
6293
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6198
6294
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6201,10 +6297,14 @@ public:
6201
6297
  * - **kmin** -- Minimum number of frames between key frames, int.
6202
6298
  * - **kmax** -- Maximum number of frames between key frames, int.
6203
6299
  * - **effort** -- Level of CPU effort to reduce file size, int.
6300
+ * - **target_size** -- Desired target size in bytes, int.
6204
6301
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6302
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6303
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6205
6304
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6206
6305
  * - **background** -- Background value, std::vector<double>.
6207
6306
  * - **page_height** -- Set page height for multipage save, int.
6307
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6208
6308
  *
6209
6309
  * @param options Set of options.
6210
6310
  * @return Buffer to save to.
@@ -6217,7 +6317,6 @@ public:
6217
6317
  * **Optional parameters**
6218
6318
  * - **Q** -- Q factor, int.
6219
6319
  * - **lossless** -- Enable lossless compression, bool.
6220
- * - **profile** -- Filename of ICC profile to embed, const char *.
6221
6320
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6222
6321
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6223
6322
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6226,10 +6325,14 @@ public:
6226
6325
  * - **kmin** -- Minimum number of frames between key frames, int.
6227
6326
  * - **kmax** -- Maximum number of frames between key frames, int.
6228
6327
  * - **effort** -- Level of CPU effort to reduce file size, int.
6328
+ * - **target_size** -- Desired target size in bytes, int.
6229
6329
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6330
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6331
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6230
6332
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6231
6333
  * - **background** -- Background value, std::vector<double>.
6232
6334
  * - **page_height** -- Set page height for multipage save, int.
6335
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6233
6336
  *
6234
6337
  * @param options Set of options.
6235
6338
  */
@@ -6241,7 +6344,6 @@ public:
6241
6344
  * **Optional parameters**
6242
6345
  * - **Q** -- Q factor, int.
6243
6346
  * - **lossless** -- Enable lossless compression, bool.
6244
- * - **profile** -- Filename of ICC profile to embed, const char *.
6245
6347
  * - **preset** -- Preset for lossy compression, VipsForeignWebpPreset.
6246
6348
  * - **smart_subsample** -- Enable high quality chroma subsampling, bool.
6247
6349
  * - **near_lossless** -- Enable preprocessing in lossless mode (uses Q), bool.
@@ -6250,10 +6352,14 @@ public:
6250
6352
  * - **kmin** -- Minimum number of frames between key frames, int.
6251
6353
  * - **kmax** -- Maximum number of frames between key frames, int.
6252
6354
  * - **effort** -- Level of CPU effort to reduce file size, int.
6355
+ * - **target_size** -- Desired target size in bytes, int.
6253
6356
  * - **mixed** -- Allow mixed encoding (might reduce file size), bool.
6357
+ * - **smart_deblock** -- Enable auto-adjusting of the deblocking filter, bool.
6358
+ * - **passes** -- Number of entropy-analysis passes (in [1..10]), int.
6254
6359
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
6255
6360
  * - **background** -- Background value, std::vector<double>.
6256
6361
  * - **page_height** -- Set page height for multipage save, int.
6362
+ * - **profile** -- Filename of ICC profile to embed, const char *.
6257
6363
  *
6258
6364
  * @param target Target to save to.
6259
6365
  * @param options Set of options.