wasm-vips 0.0.14 → 0.0.15

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.
package/lib/vips.d.ts CHANGED
@@ -677,10 +677,6 @@ declare module Vips {
677
677
  * loaders are permissive, that is, {@link FailOn.none}.
678
678
  */
679
679
  fail_on?: FailOn | Enum
680
- /**
681
- * Don't use a cached result for this operation.
682
- */
683
- revalidate?: boolean
684
680
  }): Image;
685
681
 
686
682
  /**
@@ -703,10 +699,6 @@ declare module Vips {
703
699
  * loaders are permissive, that is, {@link FailOn.none}.
704
700
  */
705
701
  fail_on?: FailOn | Enum
706
- /**
707
- * Don't use a cached result for this operation.
708
- */
709
- revalidate?: boolean
710
702
  }): Image;
711
703
 
712
704
  /**
@@ -2281,32 +2273,6 @@ declare module Vips {
2281
2273
  approximate = 2 // 'approximate'
2282
2274
  }
2283
2275
 
2284
- /**
2285
- * Sets the word wrapping style for [ctor@Image.text] when used with a maximum
2286
- * width.
2287
- *
2288
- * ::: seealso
2289
- * [ctor@Image.text].
2290
- */
2291
- enum TextWrap {
2292
- /**
2293
- * Wrap at word boundaries
2294
- */
2295
- word = 0, // 'word'
2296
- /**
2297
- * Wrap at character boundaries
2298
- */
2299
- char = 1, // 'char'
2300
- /**
2301
- * Wrap at word boundaries, but fall back to character boundaries if there is not enough space for a full word
2302
- */
2303
- word_char = 2, // 'word-char'
2304
- /**
2305
- * No wrapping
2306
- */
2307
- none = 3 // 'none'
2308
- }
2309
-
2310
2276
  /**
2311
2277
  * The SDF to generate,
2312
2278
  *
@@ -2413,98 +2379,6 @@ declare module Vips {
2413
2379
  off = 2 // 'off'
2414
2380
  }
2415
2381
 
2416
- /**
2417
- * What directory layout and metadata standard to use.
2418
- */
2419
- enum ForeignDzLayout {
2420
- /**
2421
- * Use DeepZoom directory layout
2422
- */
2423
- dz = 0, // 'dz'
2424
- /**
2425
- * Use Zoomify directory layout
2426
- */
2427
- zoomify = 1, // 'zoomify'
2428
- /**
2429
- * Use Google maps directory layout
2430
- */
2431
- google = 2, // 'google'
2432
- /**
2433
- * Use IIIF v2 directory layout
2434
- */
2435
- iiif = 3, // 'iiif'
2436
- /**
2437
- * Use IIIF v3 directory layout
2438
- */
2439
- iiif3 = 4 // 'iiif3'
2440
- }
2441
-
2442
- /**
2443
- * How many pyramid layers to create.
2444
- */
2445
- enum ForeignDzDepth {
2446
- /**
2447
- * Create layers down to 1x1 pixel
2448
- */
2449
- onepixel = 0, // 'onepixel'
2450
- /**
2451
- * Create layers down to 1x1 tile
2452
- */
2453
- onetile = 1, // 'onetile'
2454
- /**
2455
- * Only create a single layer
2456
- */
2457
- one = 2 // 'one'
2458
- }
2459
-
2460
- /**
2461
- * How many pyramid layers to create.
2462
- */
2463
- enum ForeignDzContainer {
2464
- /**
2465
- * Write tiles to the filesystem
2466
- */
2467
- fs = 0, // 'fs'
2468
- /**
2469
- * Write tiles to a zip file
2470
- */
2471
- zip = 1, // 'zip'
2472
- /**
2473
- * Write to a szi file
2474
- */
2475
- szi = 2 // 'szi'
2476
- }
2477
-
2478
- /**
2479
- * How to calculate the output pixels when shrinking a 2x2 region.
2480
- */
2481
- enum RegionShrink {
2482
- /**
2483
- * Use the average
2484
- */
2485
- mean = 0, // 'mean'
2486
- /**
2487
- * Use the median
2488
- */
2489
- median = 1, // 'median'
2490
- /**
2491
- * Use the mode
2492
- */
2493
- mode = 2, // 'mode'
2494
- /**
2495
- * Use the maximum
2496
- */
2497
- max = 3, // 'max'
2498
- /**
2499
- * Use the minimum
2500
- */
2501
- min = 4, // 'min'
2502
- /**
2503
- * Use the top-left pixel
2504
- */
2505
- nearest = 5 // 'nearest'
2506
- }
2507
-
2508
2382
  /**
2509
2383
  * Tune lossy encoder settings for different image types.
2510
2384
  */
@@ -2618,6 +2492,54 @@ declare module Vips {
2618
2492
  inch = 1 // 'inch'
2619
2493
  }
2620
2494
 
2495
+ /**
2496
+ * How to calculate the output pixels when shrinking a 2x2 region.
2497
+ */
2498
+ enum RegionShrink {
2499
+ /**
2500
+ * Use the average
2501
+ */
2502
+ mean = 0, // 'mean'
2503
+ /**
2504
+ * Use the median
2505
+ */
2506
+ median = 1, // 'median'
2507
+ /**
2508
+ * Use the mode
2509
+ */
2510
+ mode = 2, // 'mode'
2511
+ /**
2512
+ * Use the maximum
2513
+ */
2514
+ max = 3, // 'max'
2515
+ /**
2516
+ * Use the minimum
2517
+ */
2518
+ min = 4, // 'min'
2519
+ /**
2520
+ * Use the top-left pixel
2521
+ */
2522
+ nearest = 5 // 'nearest'
2523
+ }
2524
+
2525
+ /**
2526
+ * How many pyramid layers to create.
2527
+ */
2528
+ enum ForeignDzDepth {
2529
+ /**
2530
+ * Create layers down to 1x1 pixel
2531
+ */
2532
+ onepixel = 0, // 'onepixel'
2533
+ /**
2534
+ * Create layers down to 1x1 tile
2535
+ */
2536
+ onetile = 1, // 'onetile'
2537
+ /**
2538
+ * Only create a single layer
2539
+ */
2540
+ one = 2 // 'one'
2541
+ }
2542
+
2621
2543
  /**
2622
2544
  * The compression format to use inside a HEIF container.
2623
2545
  *
@@ -3067,10 +2989,6 @@ declare module Vips {
3067
2989
  * Error level to fail on.
3068
2990
  */
3069
2991
  fail_on?: FailOn | Enum
3070
- /**
3071
- * Don't use a cached result for this operation.
3072
- */
3073
- revalidate?: boolean
3074
2992
  /**
3075
2993
  * Flags for this file (output).
3076
2994
  */
@@ -3095,64 +3013,6 @@ declare module Vips {
3095
3013
  factor?: number
3096
3014
  }): Image;
3097
3015
 
3098
- /**
3099
- * Load a fits image.
3100
- * @param filename Filename to load from.
3101
- * @param options Optional options.
3102
- * @return Output image.
3103
- */
3104
- static fitsload(filename: string, options?: {
3105
- /**
3106
- * Force open via memory.
3107
- */
3108
- memory?: boolean
3109
- /**
3110
- * Required access pattern for this file.
3111
- */
3112
- access?: Access | Enum
3113
- /**
3114
- * Error level to fail on.
3115
- */
3116
- fail_on?: FailOn | Enum
3117
- /**
3118
- * Don't use a cached result for this operation.
3119
- */
3120
- revalidate?: boolean
3121
- /**
3122
- * Flags for this file (output).
3123
- */
3124
- flags?: number | undefined
3125
- }): Image;
3126
-
3127
- /**
3128
- * Load fits from a source.
3129
- * @param source Source to load from.
3130
- * @param options Optional options.
3131
- * @return Output image.
3132
- */
3133
- static fitsloadSource(source: Source, options?: {
3134
- /**
3135
- * Force open via memory.
3136
- */
3137
- memory?: boolean
3138
- /**
3139
- * Required access pattern for this file.
3140
- */
3141
- access?: Access | Enum
3142
- /**
3143
- * Error level to fail on.
3144
- */
3145
- fail_on?: FailOn | Enum
3146
- /**
3147
- * Don't use a cached result for this operation.
3148
- */
3149
- revalidate?: boolean
3150
- /**
3151
- * Flags for this file (output).
3152
- */
3153
- flags?: number | undefined
3154
- }): Image;
3155
-
3156
3016
  /**
3157
3017
  * Make a fractal surface.
3158
3018
  * @param width Image width in pixels.
@@ -3266,10 +3126,6 @@ declare module Vips {
3266
3126
  * Error level to fail on.
3267
3127
  */
3268
3128
  fail_on?: FailOn | Enum
3269
- /**
3270
- * Don't use a cached result for this operation.
3271
- */
3272
- revalidate?: boolean
3273
3129
  /**
3274
3130
  * Flags for this file (output).
3275
3131
  */
@@ -3303,10 +3159,6 @@ declare module Vips {
3303
3159
  * Error level to fail on.
3304
3160
  */
3305
3161
  fail_on?: FailOn | Enum
3306
- /**
3307
- * Don't use a cached result for this operation.
3308
- */
3309
- revalidate?: boolean
3310
3162
  /**
3311
3163
  * Flags for this file (output).
3312
3164
  */
@@ -3407,10 +3259,6 @@ declare module Vips {
3407
3259
  * Error level to fail on.
3408
3260
  */
3409
3261
  fail_on?: FailOn | Enum
3410
- /**
3411
- * Don't use a cached result for this operation.
3412
- */
3413
- revalidate?: boolean
3414
3262
  /**
3415
3263
  * Flags for this file (output).
3416
3264
  */
@@ -3452,10 +3300,6 @@ declare module Vips {
3452
3300
  * Error level to fail on.
3453
3301
  */
3454
3302
  fail_on?: FailOn | Enum
3455
- /**
3456
- * Don't use a cached result for this operation.
3457
- */
3458
- revalidate?: boolean
3459
3303
  /**
3460
3304
  * Flags for this file (output).
3461
3305
  */
@@ -3483,20 +3327,24 @@ declare module Vips {
3483
3327
  }): Image;
3484
3328
 
3485
3329
  /**
3486
- * Load jpeg2000 image.
3330
+ * Load jpeg from file.
3487
3331
  * @param filename Filename to load from.
3488
3332
  * @param options Optional options.
3489
3333
  * @return Output image.
3490
3334
  */
3491
- static jp2kload(filename: string, options?: {
3335
+ static jpegload(filename: string, options?: {
3492
3336
  /**
3493
- * Load this page from the image.
3337
+ * Shrink factor on load.
3494
3338
  */
3495
- page?: number
3339
+ shrink?: number
3340
+ /**
3341
+ * Rotate image using exif orientation.
3342
+ */
3343
+ autorotate?: boolean
3496
3344
  /**
3497
- * Load images a frame at a time.
3345
+ * Remove all denial of service limits.
3498
3346
  */
3499
- oneshot?: boolean
3347
+ unlimited?: boolean
3500
3348
  /**
3501
3349
  * Force open via memory.
3502
3350
  */
@@ -3520,20 +3368,24 @@ declare module Vips {
3520
3368
  }): Image;
3521
3369
 
3522
3370
  /**
3523
- * Load jpeg2000 image.
3371
+ * Load jpeg from buffer.
3524
3372
  * @param buffer Buffer to load from.
3525
3373
  * @param options Optional options.
3526
3374
  * @return Output image.
3527
3375
  */
3528
- static jp2kloadBuffer(buffer: Blob, options?: {
3376
+ static jpegloadBuffer(buffer: Blob, options?: {
3377
+ /**
3378
+ * Shrink factor on load.
3379
+ */
3380
+ shrink?: number
3529
3381
  /**
3530
- * Load this page from the image.
3382
+ * Rotate image using exif orientation.
3531
3383
  */
3532
- page?: number
3384
+ autorotate?: boolean
3533
3385
  /**
3534
- * Load images a frame at a time.
3386
+ * Remove all denial of service limits.
3535
3387
  */
3536
- oneshot?: boolean
3388
+ unlimited?: boolean
3537
3389
  /**
3538
3390
  * Force open via memory.
3539
3391
  */
@@ -3546,10 +3398,6 @@ declare module Vips {
3546
3398
  * Error level to fail on.
3547
3399
  */
3548
3400
  fail_on?: FailOn | Enum
3549
- /**
3550
- * Don't use a cached result for this operation.
3551
- */
3552
- revalidate?: boolean
3553
3401
  /**
3554
3402
  * Flags for this file (output).
3555
3403
  */
@@ -3557,20 +3405,24 @@ declare module Vips {
3557
3405
  }): Image;
3558
3406
 
3559
3407
  /**
3560
- * Load jpeg2000 image.
3408
+ * Load image from jpeg source.
3561
3409
  * @param source Source to load from.
3562
3410
  * @param options Optional options.
3563
3411
  * @return Output image.
3564
3412
  */
3565
- static jp2kloadSource(source: Source, options?: {
3413
+ static jpegloadSource(source: Source, options?: {
3566
3414
  /**
3567
- * Load this page from the image.
3415
+ * Shrink factor on load.
3568
3416
  */
3569
- page?: number
3417
+ shrink?: number
3418
+ /**
3419
+ * Rotate image using exif orientation.
3420
+ */
3421
+ autorotate?: boolean
3570
3422
  /**
3571
- * Load images a frame at a time.
3423
+ * Remove all denial of service limits.
3572
3424
  */
3573
- oneshot?: boolean
3425
+ unlimited?: boolean
3574
3426
  /**
3575
3427
  * Force open via memory.
3576
3428
  */
@@ -3583,133 +3435,6 @@ declare module Vips {
3583
3435
  * Error level to fail on.
3584
3436
  */
3585
3437
  fail_on?: FailOn | Enum
3586
- /**
3587
- * Don't use a cached result for this operation.
3588
- */
3589
- revalidate?: boolean
3590
- /**
3591
- * Flags for this file (output).
3592
- */
3593
- flags?: number | undefined
3594
- }): Image;
3595
-
3596
- /**
3597
- * Load jpeg from file.
3598
- * @param filename Filename to load from.
3599
- * @param options Optional options.
3600
- * @return Output image.
3601
- */
3602
- static jpegload(filename: string, options?: {
3603
- /**
3604
- * Shrink factor on load.
3605
- */
3606
- shrink?: number
3607
- /**
3608
- * Rotate image using exif orientation.
3609
- */
3610
- autorotate?: boolean
3611
- /**
3612
- * Remove all denial of service limits.
3613
- */
3614
- unlimited?: boolean
3615
- /**
3616
- * Force open via memory.
3617
- */
3618
- memory?: boolean
3619
- /**
3620
- * Required access pattern for this file.
3621
- */
3622
- access?: Access | Enum
3623
- /**
3624
- * Error level to fail on.
3625
- */
3626
- fail_on?: FailOn | Enum
3627
- /**
3628
- * Don't use a cached result for this operation.
3629
- */
3630
- revalidate?: boolean
3631
- /**
3632
- * Flags for this file (output).
3633
- */
3634
- flags?: number | undefined
3635
- }): Image;
3636
-
3637
- /**
3638
- * Load jpeg from buffer.
3639
- * @param buffer Buffer to load from.
3640
- * @param options Optional options.
3641
- * @return Output image.
3642
- */
3643
- static jpegloadBuffer(buffer: Blob, options?: {
3644
- /**
3645
- * Shrink factor on load.
3646
- */
3647
- shrink?: number
3648
- /**
3649
- * Rotate image using exif orientation.
3650
- */
3651
- autorotate?: boolean
3652
- /**
3653
- * Remove all denial of service limits.
3654
- */
3655
- unlimited?: boolean
3656
- /**
3657
- * Force open via memory.
3658
- */
3659
- memory?: boolean
3660
- /**
3661
- * Required access pattern for this file.
3662
- */
3663
- access?: Access | Enum
3664
- /**
3665
- * Error level to fail on.
3666
- */
3667
- fail_on?: FailOn | Enum
3668
- /**
3669
- * Don't use a cached result for this operation.
3670
- */
3671
- revalidate?: boolean
3672
- /**
3673
- * Flags for this file (output).
3674
- */
3675
- flags?: number | undefined
3676
- }): Image;
3677
-
3678
- /**
3679
- * Load image from jpeg source.
3680
- * @param source Source to load from.
3681
- * @param options Optional options.
3682
- * @return Output image.
3683
- */
3684
- static jpegloadSource(source: Source, options?: {
3685
- /**
3686
- * Shrink factor on load.
3687
- */
3688
- shrink?: number
3689
- /**
3690
- * Rotate image using exif orientation.
3691
- */
3692
- autorotate?: boolean
3693
- /**
3694
- * Remove all denial of service limits.
3695
- */
3696
- unlimited?: boolean
3697
- /**
3698
- * Force open via memory.
3699
- */
3700
- memory?: boolean
3701
- /**
3702
- * Required access pattern for this file.
3703
- */
3704
- access?: Access | Enum
3705
- /**
3706
- * Error level to fail on.
3707
- */
3708
- fail_on?: FailOn | Enum
3709
- /**
3710
- * Don't use a cached result for this operation.
3711
- */
3712
- revalidate?: boolean
3713
3438
  /**
3714
3439
  * Flags for this file (output).
3715
3440
  */
@@ -3780,10 +3505,6 @@ declare module Vips {
3780
3505
  * Error level to fail on.
3781
3506
  */
3782
3507
  fail_on?: FailOn | Enum
3783
- /**
3784
- * Don't use a cached result for this operation.
3785
- */
3786
- revalidate?: boolean
3787
3508
  /**
3788
3509
  * Flags for this file (output).
3789
3510
  */
@@ -3817,10 +3538,6 @@ declare module Vips {
3817
3538
  * Error level to fail on.
3818
3539
  */
3819
3540
  fail_on?: FailOn | Enum
3820
- /**
3821
- * Don't use a cached result for this operation.
3822
- */
3823
- revalidate?: boolean
3824
3541
  /**
3825
3542
  * Flags for this file (output).
3826
3543
  */
@@ -3845,88 +3562,6 @@ declare module Vips {
3845
3562
  precision?: Precision | Enum
3846
3563
  }): Image;
3847
3564
 
3848
- /**
3849
- * Load file with imagemagick.
3850
- * @param filename Filename to load from.
3851
- * @param options Optional options.
3852
- * @return Output image.
3853
- */
3854
- static magickload(filename: string, options?: {
3855
- /**
3856
- * Canvas resolution for rendering vector formats like svg.
3857
- */
3858
- density?: string
3859
- /**
3860
- * First page to load.
3861
- */
3862
- page?: number
3863
- /**
3864
- * Number of pages to load, -1 for all.
3865
- */
3866
- n?: number
3867
- /**
3868
- * Force open via memory.
3869
- */
3870
- memory?: boolean
3871
- /**
3872
- * Required access pattern for this file.
3873
- */
3874
- access?: Access | Enum
3875
- /**
3876
- * Error level to fail on.
3877
- */
3878
- fail_on?: FailOn | Enum
3879
- /**
3880
- * Don't use a cached result for this operation.
3881
- */
3882
- revalidate?: boolean
3883
- /**
3884
- * Flags for this file (output).
3885
- */
3886
- flags?: number | undefined
3887
- }): Image;
3888
-
3889
- /**
3890
- * Load buffer with imagemagick.
3891
- * @param buffer Buffer to load from.
3892
- * @param options Optional options.
3893
- * @return Output image.
3894
- */
3895
- static magickloadBuffer(buffer: Blob, options?: {
3896
- /**
3897
- * Canvas resolution for rendering vector formats like svg.
3898
- */
3899
- density?: string
3900
- /**
3901
- * First page to load.
3902
- */
3903
- page?: number
3904
- /**
3905
- * Number of pages to load, -1 for all.
3906
- */
3907
- n?: number
3908
- /**
3909
- * Force open via memory.
3910
- */
3911
- memory?: boolean
3912
- /**
3913
- * Required access pattern for this file.
3914
- */
3915
- access?: Access | Enum
3916
- /**
3917
- * Error level to fail on.
3918
- */
3919
- fail_on?: FailOn | Enum
3920
- /**
3921
- * Don't use a cached result for this operation.
3922
- */
3923
- revalidate?: boolean
3924
- /**
3925
- * Flags for this file (output).
3926
- */
3927
- flags?: number | undefined
3928
- }): Image;
3929
-
3930
3565
  /**
3931
3566
  * Make a butterworth filter.
3932
3567
  * @param width Image width in pixels.
@@ -4216,12 +3851,12 @@ declare module Vips {
4216
3851
  }): Image;
4217
3852
 
4218
3853
  /**
4219
- * Load mat from file.
3854
+ * Load matrix.
4220
3855
  * @param filename Filename to load from.
4221
3856
  * @param options Optional options.
4222
3857
  * @return Output image.
4223
3858
  */
4224
- static matload(filename: string, options?: {
3859
+ static matrixload(filename: string, options?: {
4225
3860
  /**
4226
3861
  * Force open via memory.
4227
3862
  */
@@ -4246,11 +3881,11 @@ declare module Vips {
4246
3881
 
4247
3882
  /**
4248
3883
  * Load matrix.
4249
- * @param filename Filename to load from.
3884
+ * @param source Source to load from.
4250
3885
  * @param options Optional options.
4251
3886
  * @return Output image.
4252
3887
  */
4253
- static matrixload(filename: string, options?: {
3888
+ static matrixloadSource(source: Source, options?: {
4254
3889
  /**
4255
3890
  * Force open via memory.
4256
3891
  */
@@ -4263,10 +3898,6 @@ declare module Vips {
4263
3898
  * Error level to fail on.
4264
3899
  */
4265
3900
  fail_on?: FailOn | Enum
4266
- /**
4267
- * Don't use a cached result for this operation.
4268
- */
4269
- revalidate?: boolean
4270
3901
  /**
4271
3902
  * Flags for this file (output).
4272
3903
  */
@@ -4274,41 +3905,38 @@ declare module Vips {
4274
3905
  }): Image;
4275
3906
 
4276
3907
  /**
4277
- * Load matrix.
4278
- * @param source Source to load from.
3908
+ * Make a perlin noise image.
3909
+ * @param width Image width in pixels.
3910
+ * @param height Image height in pixels.
4279
3911
  * @param options Optional options.
4280
3912
  * @return Output image.
4281
3913
  */
4282
- static matrixloadSource(source: Source, options?: {
4283
- /**
4284
- * Force open via memory.
4285
- */
4286
- memory?: boolean
4287
- /**
4288
- * Required access pattern for this file.
4289
- */
4290
- access?: Access | Enum
3914
+ static perlin(width: number, height: number, options?: {
4291
3915
  /**
4292
- * Error level to fail on.
3916
+ * Size of perlin cells.
4293
3917
  */
4294
- fail_on?: FailOn | Enum
3918
+ cell_size?: number
4295
3919
  /**
4296
- * Don't use a cached result for this operation.
3920
+ * Output an unsigned char image.
4297
3921
  */
4298
- revalidate?: boolean
3922
+ uchar?: boolean
4299
3923
  /**
4300
- * Flags for this file (output).
3924
+ * Random number seed.
4301
3925
  */
4302
- flags?: number | undefined
3926
+ seed?: number
4303
3927
  }): Image;
4304
3928
 
4305
3929
  /**
4306
- * Load nifti volume.
3930
+ * Load png from file.
4307
3931
  * @param filename Filename to load from.
4308
3932
  * @param options Optional options.
4309
3933
  * @return Output image.
4310
3934
  */
4311
- static niftiload(filename: string, options?: {
3935
+ static pngload(filename: string, options?: {
3936
+ /**
3937
+ * Remove all denial of service limits.
3938
+ */
3939
+ unlimited?: boolean
4312
3940
  /**
4313
3941
  * Force open via memory.
4314
3942
  */
@@ -4332,349 +3960,12 @@ declare module Vips {
4332
3960
  }): Image;
4333
3961
 
4334
3962
  /**
4335
- * Load nifti volumes.
4336
- * @param source Source to load from.
3963
+ * Load png from buffer.
3964
+ * @param buffer Buffer to load from.
4337
3965
  * @param options Optional options.
4338
3966
  * @return Output image.
4339
3967
  */
4340
- static niftiloadSource(source: Source, options?: {
4341
- /**
4342
- * Force open via memory.
4343
- */
4344
- memory?: boolean
4345
- /**
4346
- * Required access pattern for this file.
4347
- */
4348
- access?: Access | Enum
4349
- /**
4350
- * Error level to fail on.
4351
- */
4352
- fail_on?: FailOn | Enum
4353
- /**
4354
- * Don't use a cached result for this operation.
4355
- */
4356
- revalidate?: boolean
4357
- /**
4358
- * Flags for this file (output).
4359
- */
4360
- flags?: number | undefined
4361
- }): Image;
4362
-
4363
- /**
4364
- * Load an openexr image.
4365
- * @param filename Filename to load from.
4366
- * @param options Optional options.
4367
- * @return Output image.
4368
- */
4369
- static openexrload(filename: string, options?: {
4370
- /**
4371
- * Force open via memory.
4372
- */
4373
- memory?: boolean
4374
- /**
4375
- * Required access pattern for this file.
4376
- */
4377
- access?: Access | Enum
4378
- /**
4379
- * Error level to fail on.
4380
- */
4381
- fail_on?: FailOn | Enum
4382
- /**
4383
- * Don't use a cached result for this operation.
4384
- */
4385
- revalidate?: boolean
4386
- /**
4387
- * Flags for this file (output).
4388
- */
4389
- flags?: number | undefined
4390
- }): Image;
4391
-
4392
- /**
4393
- * Load file with openslide.
4394
- * @param filename Filename to load from.
4395
- * @param options Optional options.
4396
- * @return Output image.
4397
- */
4398
- static openslideload(filename: string, options?: {
4399
- /**
4400
- * Load this level from the file.
4401
- */
4402
- level?: number
4403
- /**
4404
- * Crop to image bounds.
4405
- */
4406
- autocrop?: boolean
4407
- /**
4408
- * Load this associated image.
4409
- */
4410
- associated?: string
4411
- /**
4412
- * Attach all associated images.
4413
- */
4414
- attach_associated?: boolean
4415
- /**
4416
- * Output rgb (not rgba).
4417
- */
4418
- rgb?: boolean
4419
- /**
4420
- * Force open via memory.
4421
- */
4422
- memory?: boolean
4423
- /**
4424
- * Required access pattern for this file.
4425
- */
4426
- access?: Access | Enum
4427
- /**
4428
- * Error level to fail on.
4429
- */
4430
- fail_on?: FailOn | Enum
4431
- /**
4432
- * Don't use a cached result for this operation.
4433
- */
4434
- revalidate?: boolean
4435
- /**
4436
- * Flags for this file (output).
4437
- */
4438
- flags?: number | undefined
4439
- }): Image;
4440
-
4441
- /**
4442
- * Load source with openslide.
4443
- * @param source Source to load from.
4444
- * @param options Optional options.
4445
- * @return Output image.
4446
- */
4447
- static openslideloadSource(source: Source, options?: {
4448
- /**
4449
- * Load this level from the file.
4450
- */
4451
- level?: number
4452
- /**
4453
- * Crop to image bounds.
4454
- */
4455
- autocrop?: boolean
4456
- /**
4457
- * Load this associated image.
4458
- */
4459
- associated?: string
4460
- /**
4461
- * Attach all associated images.
4462
- */
4463
- attach_associated?: boolean
4464
- /**
4465
- * Output rgb (not rgba).
4466
- */
4467
- rgb?: boolean
4468
- /**
4469
- * Force open via memory.
4470
- */
4471
- memory?: boolean
4472
- /**
4473
- * Required access pattern for this file.
4474
- */
4475
- access?: Access | Enum
4476
- /**
4477
- * Error level to fail on.
4478
- */
4479
- fail_on?: FailOn | Enum
4480
- /**
4481
- * Don't use a cached result for this operation.
4482
- */
4483
- revalidate?: boolean
4484
- /**
4485
- * Flags for this file (output).
4486
- */
4487
- flags?: number | undefined
4488
- }): Image;
4489
-
4490
- /**
4491
- * Load pdf from file.
4492
- * @param filename Filename to load from.
4493
- * @param options Optional options.
4494
- * @return Output image.
4495
- */
4496
- static pdfload(filename: string, options?: {
4497
- /**
4498
- * First page to load.
4499
- */
4500
- page?: number
4501
- /**
4502
- * Number of pages to load, -1 for all.
4503
- */
4504
- n?: number
4505
- /**
4506
- * Dpi to render at.
4507
- */
4508
- dpi?: number
4509
- /**
4510
- * Factor to scale by.
4511
- */
4512
- scale?: number
4513
- /**
4514
- * Background colour.
4515
- */
4516
- background?: ArrayConstant
4517
- /**
4518
- * Password to decrypt with.
4519
- */
4520
- password?: string
4521
- /**
4522
- * Force open via memory.
4523
- */
4524
- memory?: boolean
4525
- /**
4526
- * Required access pattern for this file.
4527
- */
4528
- access?: Access | Enum
4529
- /**
4530
- * Error level to fail on.
4531
- */
4532
- fail_on?: FailOn | Enum
4533
- /**
4534
- * Don't use a cached result for this operation.
4535
- */
4536
- revalidate?: boolean
4537
- /**
4538
- * Flags for this file (output).
4539
- */
4540
- flags?: number | undefined
4541
- }): Image;
4542
-
4543
- /**
4544
- * Load pdf from buffer.
4545
- * @param buffer Buffer to load from.
4546
- * @param options Optional options.
4547
- * @return Output image.
4548
- */
4549
- static pdfloadBuffer(buffer: Blob, options?: {
4550
- /**
4551
- * First page to load.
4552
- */
4553
- page?: number
4554
- /**
4555
- * Number of pages to load, -1 for all.
4556
- */
4557
- n?: number
4558
- /**
4559
- * Dpi to render at.
4560
- */
4561
- dpi?: number
4562
- /**
4563
- * Factor to scale by.
4564
- */
4565
- scale?: number
4566
- /**
4567
- * Background colour.
4568
- */
4569
- background?: ArrayConstant
4570
- /**
4571
- * Password to decrypt with.
4572
- */
4573
- password?: string
4574
- /**
4575
- * Force open via memory.
4576
- */
4577
- memory?: boolean
4578
- /**
4579
- * Required access pattern for this file.
4580
- */
4581
- access?: Access | Enum
4582
- /**
4583
- * Error level to fail on.
4584
- */
4585
- fail_on?: FailOn | Enum
4586
- /**
4587
- * Don't use a cached result for this operation.
4588
- */
4589
- revalidate?: boolean
4590
- /**
4591
- * Flags for this file (output).
4592
- */
4593
- flags?: number | undefined
4594
- }): Image;
4595
-
4596
- /**
4597
- * Load pdf from source.
4598
- * @param source Source to load from.
4599
- * @param options Optional options.
4600
- * @return Output image.
4601
- */
4602
- static pdfloadSource(source: Source, options?: {
4603
- /**
4604
- * First page to load.
4605
- */
4606
- page?: number
4607
- /**
4608
- * Number of pages to load, -1 for all.
4609
- */
4610
- n?: number
4611
- /**
4612
- * Dpi to render at.
4613
- */
4614
- dpi?: number
4615
- /**
4616
- * Factor to scale by.
4617
- */
4618
- scale?: number
4619
- /**
4620
- * Background colour.
4621
- */
4622
- background?: ArrayConstant
4623
- /**
4624
- * Password to decrypt with.
4625
- */
4626
- password?: string
4627
- /**
4628
- * Force open via memory.
4629
- */
4630
- memory?: boolean
4631
- /**
4632
- * Required access pattern for this file.
4633
- */
4634
- access?: Access | Enum
4635
- /**
4636
- * Error level to fail on.
4637
- */
4638
- fail_on?: FailOn | Enum
4639
- /**
4640
- * Don't use a cached result for this operation.
4641
- */
4642
- revalidate?: boolean
4643
- /**
4644
- * Flags for this file (output).
4645
- */
4646
- flags?: number | undefined
4647
- }): Image;
4648
-
4649
- /**
4650
- * Make a perlin noise image.
4651
- * @param width Image width in pixels.
4652
- * @param height Image height in pixels.
4653
- * @param options Optional options.
4654
- * @return Output image.
4655
- */
4656
- static perlin(width: number, height: number, options?: {
4657
- /**
4658
- * Size of perlin cells.
4659
- */
4660
- cell_size?: number
4661
- /**
4662
- * Output an unsigned char image.
4663
- */
4664
- uchar?: boolean
4665
- /**
4666
- * Random number seed.
4667
- */
4668
- seed?: number
4669
- }): Image;
4670
-
4671
- /**
4672
- * Load png from file.
4673
- * @param filename Filename to load from.
4674
- * @param options Optional options.
4675
- * @return Output image.
4676
- */
4677
- static pngload(filename: string, options?: {
3968
+ static pngloadBuffer(buffer: Blob, options?: {
4678
3969
  /**
4679
3970
  * Remove all denial of service limits.
4680
3971
  */
@@ -4691,43 +3982,6 @@ declare module Vips {
4691
3982
  * Error level to fail on.
4692
3983
  */
4693
3984
  fail_on?: FailOn | Enum
4694
- /**
4695
- * Don't use a cached result for this operation.
4696
- */
4697
- revalidate?: boolean
4698
- /**
4699
- * Flags for this file (output).
4700
- */
4701
- flags?: number | undefined
4702
- }): Image;
4703
-
4704
- /**
4705
- * Load png from buffer.
4706
- * @param buffer Buffer to load from.
4707
- * @param options Optional options.
4708
- * @return Output image.
4709
- */
4710
- static pngloadBuffer(buffer: Blob, options?: {
4711
- /**
4712
- * Remove all denial of service limits.
4713
- */
4714
- unlimited?: boolean
4715
- /**
4716
- * Force open via memory.
4717
- */
4718
- memory?: boolean
4719
- /**
4720
- * Required access pattern for this file.
4721
- */
4722
- access?: Access | Enum
4723
- /**
4724
- * Error level to fail on.
4725
- */
4726
- fail_on?: FailOn | Enum
4727
- /**
4728
- * Don't use a cached result for this operation.
4729
- */
4730
- revalidate?: boolean
4731
3985
  /**
4732
3986
  * Flags for this file (output).
4733
3987
  */
@@ -4757,10 +4011,6 @@ declare module Vips {
4757
4011
  * Error level to fail on.
4758
4012
  */
4759
4013
  fail_on?: FailOn | Enum
4760
- /**
4761
- * Don't use a cached result for this operation.
4762
- */
4763
- revalidate?: boolean
4764
4014
  /**
4765
4015
  * Flags for this file (output).
4766
4016
  */
@@ -4815,10 +4065,6 @@ declare module Vips {
4815
4065
  * Error level to fail on.
4816
4066
  */
4817
4067
  fail_on?: FailOn | Enum
4818
- /**
4819
- * Don't use a cached result for this operation.
4820
- */
4821
- revalidate?: boolean
4822
4068
  /**
4823
4069
  * Flags for this file (output).
4824
4070
  */
@@ -4844,10 +4090,6 @@ declare module Vips {
4844
4090
  * Error level to fail on.
4845
4091
  */
4846
4092
  fail_on?: FailOn | Enum
4847
- /**
4848
- * Don't use a cached result for this operation.
4849
- */
4850
- revalidate?: boolean
4851
4093
  /**
4852
4094
  * Flags for this file (output).
4853
4095
  */
@@ -4909,10 +4151,6 @@ declare module Vips {
4909
4151
  * Error level to fail on.
4910
4152
  */
4911
4153
  fail_on?: FailOn | Enum
4912
- /**
4913
- * Don't use a cached result for this operation.
4914
- */
4915
- revalidate?: boolean
4916
4154
  /**
4917
4155
  * Flags for this file (output).
4918
4156
  */
@@ -4938,10 +4176,6 @@ declare module Vips {
4938
4176
  * Error level to fail on.
4939
4177
  */
4940
4178
  fail_on?: FailOn | Enum
4941
- /**
4942
- * Don't use a cached result for this operation.
4943
- */
4944
- revalidate?: boolean
4945
4179
  /**
4946
4180
  * Flags for this file (output).
4947
4181
  */
@@ -5030,80 +4264,31 @@ declare module Vips {
5030
4264
  /**
5031
4265
  * Output an unsigned char image.
5032
4266
  */
5033
- uchar?: boolean
5034
- /**
5035
- * Horizontal spatial frequency.
5036
- */
5037
- hfreq?: number
5038
- /**
5039
- * Vertical spatial frequency.
5040
- */
5041
- vfreq?: number
5042
- }): Image;
5043
-
5044
- /**
5045
- * Sum an array of images.
5046
- * @param _in Array of input images.
5047
- * @return Output image.
5048
- */
5049
- static sum(_in: ArrayImage | ArrayConstant): Image;
5050
-
5051
- /**
5052
- * Load svg with rsvg.
5053
- * @param filename Filename to load from.
5054
- * @param options Optional options.
5055
- * @return Output image.
5056
- */
5057
- static svgload(filename: string, options?: {
5058
- /**
5059
- * Render at this dpi.
5060
- */
5061
- dpi?: number
5062
- /**
5063
- * Scale output by this factor.
5064
- */
5065
- scale?: number
5066
- /**
5067
- * Allow svg of any size.
5068
- */
5069
- unlimited?: boolean
5070
- /**
5071
- * Custom css.
5072
- */
5073
- stylesheet?: string
5074
- /**
5075
- * Enable scrgb 128-bit output (32-bit per channel).
5076
- */
5077
- high_bitdepth?: boolean
5078
- /**
5079
- * Force open via memory.
5080
- */
5081
- memory?: boolean
5082
- /**
5083
- * Required access pattern for this file.
5084
- */
5085
- access?: Access | Enum
5086
- /**
5087
- * Error level to fail on.
5088
- */
5089
- fail_on?: FailOn | Enum
4267
+ uchar?: boolean
5090
4268
  /**
5091
- * Don't use a cached result for this operation.
4269
+ * Horizontal spatial frequency.
5092
4270
  */
5093
- revalidate?: boolean
4271
+ hfreq?: number
5094
4272
  /**
5095
- * Flags for this file (output).
4273
+ * Vertical spatial frequency.
5096
4274
  */
5097
- flags?: number | undefined
4275
+ vfreq?: number
5098
4276
  }): Image;
5099
4277
 
4278
+ /**
4279
+ * Sum an array of images.
4280
+ * @param _in Array of input images.
4281
+ * @return Output image.
4282
+ */
4283
+ static sum(_in: ArrayImage | ArrayConstant): Image;
4284
+
5100
4285
  /**
5101
4286
  * Load svg with rsvg.
5102
- * @param buffer Buffer to load from.
4287
+ * @param filename Filename to load from.
5103
4288
  * @param options Optional options.
5104
4289
  * @return Output image.
5105
4290
  */
5106
- static svgloadBuffer(buffer: Blob, options?: {
4291
+ static svgload(filename: string, options?: {
5107
4292
  /**
5108
4293
  * Render at this dpi.
5109
4294
  */
@@ -5147,12 +4332,12 @@ declare module Vips {
5147
4332
  }): Image;
5148
4333
 
5149
4334
  /**
5150
- * Load svg from source.
5151
- * @param source Source to load from.
4335
+ * Load svg with rsvg.
4336
+ * @param buffer Buffer to load from.
5152
4337
  * @param options Optional options.
5153
4338
  * @return Output image.
5154
4339
  */
5155
- static svgloadSource(source: Source, options?: {
4340
+ static svgloadBuffer(buffer: Blob, options?: {
5156
4341
  /**
5157
4342
  * Render at this dpi.
5158
4343
  */
@@ -5185,10 +4370,6 @@ declare module Vips {
5185
4370
  * Error level to fail on.
5186
4371
  */
5187
4372
  fail_on?: FailOn | Enum
5188
- /**
5189
- * Don't use a cached result for this operation.
5190
- */
5191
- revalidate?: boolean
5192
4373
  /**
5193
4374
  * Flags for this file (output).
5194
4375
  */
@@ -5230,59 +4411,6 @@ declare module Vips {
5230
4411
  log?: string | undefined
5231
4412
  }): void;
5232
4413
 
5233
- /**
5234
- * Make a text image.
5235
- * @param text Text to render.
5236
- * @param options Optional options.
5237
- * @return Output image.
5238
- */
5239
- static text(text: string, options?: {
5240
- /**
5241
- * Font to render with.
5242
- */
5243
- font?: string
5244
- /**
5245
- * Maximum image width in pixels.
5246
- */
5247
- width?: number
5248
- /**
5249
- * Maximum image height in pixels.
5250
- */
5251
- height?: number
5252
- /**
5253
- * Align on the low, centre or high edge.
5254
- */
5255
- align?: Align | Enum
5256
- /**
5257
- * Justify lines.
5258
- */
5259
- justify?: boolean
5260
- /**
5261
- * Dpi to render at.
5262
- */
5263
- dpi?: number
5264
- /**
5265
- * Line spacing.
5266
- */
5267
- spacing?: number
5268
- /**
5269
- * Load this font file.
5270
- */
5271
- fontfile?: string
5272
- /**
5273
- * Enable rgba output.
5274
- */
5275
- rgba?: boolean
5276
- /**
5277
- * Wrap lines on word or character boundaries.
5278
- */
5279
- wrap?: TextWrap | Enum
5280
- /**
5281
- * Dpi selected by autofit (output).
5282
- */
5283
- autofit_dpi?: number | undefined
5284
- }): Image;
5285
-
5286
4414
  /**
5287
4415
  * Generate thumbnail from file.
5288
4416
  * @param filename Filename to read from.
@@ -5517,10 +4645,6 @@ declare module Vips {
5517
4645
  * Error level to fail on.
5518
4646
  */
5519
4647
  fail_on?: FailOn | Enum
5520
- /**
5521
- * Don't use a cached result for this operation.
5522
- */
5523
- revalidate?: boolean
5524
4648
  /**
5525
4649
  * Flags for this file (output).
5526
4650
  */
@@ -5566,10 +4690,6 @@ declare module Vips {
5566
4690
  * Error level to fail on.
5567
4691
  */
5568
4692
  fail_on?: FailOn | Enum
5569
- /**
5570
- * Don't use a cached result for this operation.
5571
- */
5572
- revalidate?: boolean
5573
4693
  /**
5574
4694
  * Flags for this file (output).
5575
4695
  */
@@ -5672,10 +4792,6 @@ declare module Vips {
5672
4792
  * Error level to fail on.
5673
4793
  */
5674
4794
  fail_on?: FailOn | Enum
5675
- /**
5676
- * Don't use a cached result for this operation.
5677
- */
5678
- revalidate?: boolean
5679
4795
  /**
5680
4796
  * Flags for this file (output).
5681
4797
  */
@@ -5754,10 +4870,6 @@ declare module Vips {
5754
4870
  * Error level to fail on.
5755
4871
  */
5756
4872
  fail_on?: FailOn | Enum
5757
- /**
5758
- * Don't use a cached result for this operation.
5759
- */
5760
- revalidate?: boolean
5761
4873
  /**
5762
4874
  * Flags for this file (output).
5763
4875
  */
@@ -5795,10 +4907,6 @@ declare module Vips {
5795
4907
  * Error level to fail on.
5796
4908
  */
5797
4909
  fail_on?: FailOn | Enum
5798
- /**
5799
- * Don't use a cached result for this operation.
5800
- */
5801
- revalidate?: boolean
5802
4910
  /**
5803
4911
  * Flags for this file (output).
5804
4912
  */
@@ -6624,250 +5732,10 @@ declare module Vips {
6624
5732
  * Blur a rectangle on an image.
6625
5733
  * @param left Rect to fill.
6626
5734
  * @param top Rect to fill.
6627
- * @param width Rect to fill.
6628
- * @param height Rect to fill.
6629
- */
6630
- drawSmudge(left: number, top: number, width: number, height: number): void;
6631
-
6632
- /**
6633
- * Save image to deepzoom file.
6634
- * @param filename Filename to save to.
6635
- * @param options Optional options.
6636
- */
6637
- dzsave(filename: string, options?: {
6638
- /**
6639
- * Image name.
6640
- */
6641
- imagename?: string
6642
- /**
6643
- * Directory layout.
6644
- */
6645
- layout?: ForeignDzLayout | Enum
6646
- /**
6647
- * Filename suffix for tiles.
6648
- */
6649
- suffix?: string
6650
- /**
6651
- * Tile overlap in pixels.
6652
- */
6653
- overlap?: number
6654
- /**
6655
- * Tile size in pixels.
6656
- */
6657
- tile_size?: number
6658
- /**
6659
- * Center image in tile.
6660
- */
6661
- centre?: boolean
6662
- /**
6663
- * Pyramid depth.
6664
- */
6665
- depth?: ForeignDzDepth | Enum
6666
- /**
6667
- * Rotate image during save.
6668
- */
6669
- angle?: Angle | Enum
6670
- /**
6671
- * Pyramid container type.
6672
- */
6673
- container?: ForeignDzContainer | Enum
6674
- /**
6675
- * Zip deflate compression level.
6676
- */
6677
- compression?: number
6678
- /**
6679
- * Method to shrink regions.
6680
- */
6681
- region_shrink?: RegionShrink | Enum
6682
- /**
6683
- * Skip tiles which are nearly equal to the background.
6684
- */
6685
- skip_blanks?: number
6686
- /**
6687
- * Resource id.
6688
- */
6689
- id?: string
6690
- /**
6691
- * Q factor.
6692
- */
6693
- Q?: number
6694
- /**
6695
- * Which metadata to retain.
6696
- */
6697
- keep?: ForeignKeep | Flag
6698
- /**
6699
- * Background value.
6700
- */
6701
- background?: ArrayConstant
6702
- /**
6703
- * Set page height for multipage save.
6704
- */
6705
- page_height?: number
6706
- /**
6707
- * Filename of icc profile to embed.
6708
- */
6709
- profile?: string
6710
- }): void;
6711
-
6712
- /**
6713
- * Save image to dz buffer.
6714
- * @param options Optional options.
6715
- * @return Buffer to save to.
6716
- */
6717
- dzsaveBuffer(options?: {
6718
- /**
6719
- * Image name.
6720
- */
6721
- imagename?: string
6722
- /**
6723
- * Directory layout.
6724
- */
6725
- layout?: ForeignDzLayout | Enum
6726
- /**
6727
- * Filename suffix for tiles.
6728
- */
6729
- suffix?: string
6730
- /**
6731
- * Tile overlap in pixels.
6732
- */
6733
- overlap?: number
6734
- /**
6735
- * Tile size in pixels.
6736
- */
6737
- tile_size?: number
6738
- /**
6739
- * Center image in tile.
6740
- */
6741
- centre?: boolean
6742
- /**
6743
- * Pyramid depth.
6744
- */
6745
- depth?: ForeignDzDepth | Enum
6746
- /**
6747
- * Rotate image during save.
6748
- */
6749
- angle?: Angle | Enum
6750
- /**
6751
- * Pyramid container type.
6752
- */
6753
- container?: ForeignDzContainer | Enum
6754
- /**
6755
- * Zip deflate compression level.
6756
- */
6757
- compression?: number
6758
- /**
6759
- * Method to shrink regions.
6760
- */
6761
- region_shrink?: RegionShrink | Enum
6762
- /**
6763
- * Skip tiles which are nearly equal to the background.
6764
- */
6765
- skip_blanks?: number
6766
- /**
6767
- * Resource id.
6768
- */
6769
- id?: string
6770
- /**
6771
- * Q factor.
6772
- */
6773
- Q?: number
6774
- /**
6775
- * Which metadata to retain.
6776
- */
6777
- keep?: ForeignKeep | Flag
6778
- /**
6779
- * Background value.
6780
- */
6781
- background?: ArrayConstant
6782
- /**
6783
- * Set page height for multipage save.
6784
- */
6785
- page_height?: number
6786
- /**
6787
- * Filename of icc profile to embed.
6788
- */
6789
- profile?: string
6790
- }): Uint8Array;
6791
-
6792
- /**
6793
- * Save image to deepzoom target.
6794
- * @param target Target to save to.
6795
- * @param options Optional options.
6796
- */
6797
- dzsaveTarget(target: Target, options?: {
6798
- /**
6799
- * Image name.
6800
- */
6801
- imagename?: string
6802
- /**
6803
- * Directory layout.
6804
- */
6805
- layout?: ForeignDzLayout | Enum
6806
- /**
6807
- * Filename suffix for tiles.
6808
- */
6809
- suffix?: string
6810
- /**
6811
- * Tile overlap in pixels.
6812
- */
6813
- overlap?: number
6814
- /**
6815
- * Tile size in pixels.
6816
- */
6817
- tile_size?: number
6818
- /**
6819
- * Center image in tile.
6820
- */
6821
- centre?: boolean
6822
- /**
6823
- * Pyramid depth.
6824
- */
6825
- depth?: ForeignDzDepth | Enum
6826
- /**
6827
- * Rotate image during save.
6828
- */
6829
- angle?: Angle | Enum
6830
- /**
6831
- * Pyramid container type.
6832
- */
6833
- container?: ForeignDzContainer | Enum
6834
- /**
6835
- * Zip deflate compression level.
6836
- */
6837
- compression?: number
6838
- /**
6839
- * Method to shrink regions.
6840
- */
6841
- region_shrink?: RegionShrink | Enum
6842
- /**
6843
- * Skip tiles which are nearly equal to the background.
6844
- */
6845
- skip_blanks?: number
6846
- /**
6847
- * Resource id.
6848
- */
6849
- id?: string
6850
- /**
6851
- * Q factor.
6852
- */
6853
- Q?: number
6854
- /**
6855
- * Which metadata to retain.
6856
- */
6857
- keep?: ForeignKeep | Flag
6858
- /**
6859
- * Background value.
6860
- */
6861
- background?: ArrayConstant
6862
- /**
6863
- * Set page height for multipage save.
6864
- */
6865
- page_height?: number
6866
- /**
6867
- * Filename of icc profile to embed.
6868
- */
6869
- profile?: string
6870
- }): void;
5735
+ * @param width Rect to fill.
5736
+ * @param height Rect to fill.
5737
+ */
5738
+ drawSmudge(left: number, top: number, width: number, height: number): void;
6871
5739
 
6872
5740
  /**
6873
5741
  * Embed an image in a larger image.
@@ -6937,30 +5805,6 @@ declare module Vips {
6937
5805
  distance?: Image | undefined
6938
5806
  }): Image;
6939
5807
 
6940
- /**
6941
- * Save image to fits file.
6942
- * @param filename Filename to save to.
6943
- * @param options Optional options.
6944
- */
6945
- fitssave(filename: string, options?: {
6946
- /**
6947
- * Which metadata to retain.
6948
- */
6949
- keep?: ForeignKeep | Flag
6950
- /**
6951
- * Background value.
6952
- */
6953
- background?: ArrayConstant
6954
- /**
6955
- * Set page height for multipage save.
6956
- */
6957
- page_height?: number
6958
- /**
6959
- * Filename of icc profile to embed.
6960
- */
6961
- profile?: string
6962
- }): void;
6963
-
6964
5808
  /**
6965
5809
  * Flatten alpha out of an image.
6966
5810
  * @param options Optional options.
@@ -6997,12 +5841,6 @@ declare module Vips {
6997
5841
  */
6998
5842
  freqmult(mask: Image | ArrayConstant): Image;
6999
5843
 
7000
- /**
7001
- * Forward fft.
7002
- * @return Output image.
7003
- */
7004
- fwfft(): Image;
7005
-
7006
5844
  /**
7007
5845
  * Gamma an image.
7008
5846
  * @param options Optional options.
@@ -7690,18 +6528,6 @@ declare module Vips {
7690
6528
  size?: number
7691
6529
  }): Image;
7692
6530
 
7693
- /**
7694
- * Inverse fft.
7695
- * @param options Optional options.
7696
- * @return Output image.
7697
- */
7698
- invfft(options?: {
7699
- /**
7700
- * Output only the real part of the transform.
7701
- */
7702
- real?: boolean
7703
- }): Image;
7704
-
7705
6531
  /**
7706
6532
  * Join a pair of images.
7707
6533
  * @param in2 Second input image.
@@ -7728,138 +6554,6 @@ declare module Vips {
7728
6554
  align?: Align | Enum
7729
6555
  }): Image;
7730
6556
 
7731
- /**
7732
- * Save image in jpeg2000 format.
7733
- * @param filename Filename to save to.
7734
- * @param options Optional options.
7735
- */
7736
- jp2ksave(filename: string, options?: {
7737
- /**
7738
- * Tile width in pixels.
7739
- */
7740
- tile_width?: number
7741
- /**
7742
- * Tile height in pixels.
7743
- */
7744
- tile_height?: number
7745
- /**
7746
- * Enable lossless compression.
7747
- */
7748
- lossless?: boolean
7749
- /**
7750
- * Q factor.
7751
- */
7752
- Q?: number
7753
- /**
7754
- * Select chroma subsample operation mode.
7755
- */
7756
- subsample_mode?: ForeignSubsample | Enum
7757
- /**
7758
- * Which metadata to retain.
7759
- */
7760
- keep?: ForeignKeep | Flag
7761
- /**
7762
- * Background value.
7763
- */
7764
- background?: ArrayConstant
7765
- /**
7766
- * Set page height for multipage save.
7767
- */
7768
- page_height?: number
7769
- /**
7770
- * Filename of icc profile to embed.
7771
- */
7772
- profile?: string
7773
- }): void;
7774
-
7775
- /**
7776
- * Save image in jpeg2000 format.
7777
- * @param options Optional options.
7778
- * @return Buffer to save to.
7779
- */
7780
- jp2ksaveBuffer(options?: {
7781
- /**
7782
- * Tile width in pixels.
7783
- */
7784
- tile_width?: number
7785
- /**
7786
- * Tile height in pixels.
7787
- */
7788
- tile_height?: number
7789
- /**
7790
- * Enable lossless compression.
7791
- */
7792
- lossless?: boolean
7793
- /**
7794
- * Q factor.
7795
- */
7796
- Q?: number
7797
- /**
7798
- * Select chroma subsample operation mode.
7799
- */
7800
- subsample_mode?: ForeignSubsample | Enum
7801
- /**
7802
- * Which metadata to retain.
7803
- */
7804
- keep?: ForeignKeep | Flag
7805
- /**
7806
- * Background value.
7807
- */
7808
- background?: ArrayConstant
7809
- /**
7810
- * Set page height for multipage save.
7811
- */
7812
- page_height?: number
7813
- /**
7814
- * Filename of icc profile to embed.
7815
- */
7816
- profile?: string
7817
- }): Uint8Array;
7818
-
7819
- /**
7820
- * Save image in jpeg2000 format.
7821
- * @param target Target to save to.
7822
- * @param options Optional options.
7823
- */
7824
- jp2ksaveTarget(target: Target, options?: {
7825
- /**
7826
- * Tile width in pixels.
7827
- */
7828
- tile_width?: number
7829
- /**
7830
- * Tile height in pixels.
7831
- */
7832
- tile_height?: number
7833
- /**
7834
- * Enable lossless compression.
7835
- */
7836
- lossless?: boolean
7837
- /**
7838
- * Q factor.
7839
- */
7840
- Q?: number
7841
- /**
7842
- * Select chroma subsample operation mode.
7843
- */
7844
- subsample_mode?: ForeignSubsample | Enum
7845
- /**
7846
- * Which metadata to retain.
7847
- */
7848
- keep?: ForeignKeep | Flag
7849
- /**
7850
- * Background value.
7851
- */
7852
- background?: ArrayConstant
7853
- /**
7854
- * Set page height for multipage save.
7855
- */
7856
- page_height?: number
7857
- /**
7858
- * Filename of icc profile to embed.
7859
- */
7860
- profile?: string
7861
- }): void;
7862
-
7863
6557
  /**
7864
6558
  * Save image to jpeg file.
7865
6559
  * @param filename Filename to save to.
@@ -8281,94 +6975,6 @@ declare module Vips {
8281
6975
  persistent?: boolean
8282
6976
  }): Image;
8283
6977
 
8284
- /**
8285
- * Save file with imagemagick.
8286
- * @param filename Filename to save to.
8287
- * @param options Optional options.
8288
- */
8289
- magicksave(filename: string, options?: {
8290
- /**
8291
- * Format to save in.
8292
- */
8293
- format?: string
8294
- /**
8295
- * Quality to use.
8296
- */
8297
- quality?: number
8298
- /**
8299
- * Apply gif frames optimization.
8300
- */
8301
- optimize_gif_frames?: boolean
8302
- /**
8303
- * Apply gif transparency optimization.
8304
- */
8305
- optimize_gif_transparency?: boolean
8306
- /**
8307
- * Number of bits per pixel.
8308
- */
8309
- bitdepth?: number
8310
- /**
8311
- * Which metadata to retain.
8312
- */
8313
- keep?: ForeignKeep | Flag
8314
- /**
8315
- * Background value.
8316
- */
8317
- background?: ArrayConstant
8318
- /**
8319
- * Set page height for multipage save.
8320
- */
8321
- page_height?: number
8322
- /**
8323
- * Filename of icc profile to embed.
8324
- */
8325
- profile?: string
8326
- }): void;
8327
-
8328
- /**
8329
- * Save image to magick buffer.
8330
- * @param options Optional options.
8331
- * @return Buffer to save to.
8332
- */
8333
- magicksaveBuffer(options?: {
8334
- /**
8335
- * Format to save in.
8336
- */
8337
- format?: string
8338
- /**
8339
- * Quality to use.
8340
- */
8341
- quality?: number
8342
- /**
8343
- * Apply gif frames optimization.
8344
- */
8345
- optimize_gif_frames?: boolean
8346
- /**
8347
- * Apply gif transparency optimization.
8348
- */
8349
- optimize_gif_transparency?: boolean
8350
- /**
8351
- * Number of bits per pixel.
8352
- */
8353
- bitdepth?: number
8354
- /**
8355
- * Which metadata to retain.
8356
- */
8357
- keep?: ForeignKeep | Flag
8358
- /**
8359
- * Background value.
8360
- */
8361
- background?: ArrayConstant
8362
- /**
8363
- * Set page height for multipage save.
8364
- */
8365
- page_height?: number
8366
- /**
8367
- * Filename of icc profile to embed.
8368
- */
8369
- profile?: string
8370
- }): Uint8Array;
8371
-
8372
6978
  /**
8373
6979
  * Resample with a map image.
8374
6980
  * @param index Index pixels with this.
@@ -8778,30 +7384,6 @@ declare module Vips {
8778
7384
  */
8779
7385
  multiply(right: Image | ArrayConstant): Image;
8780
7386
 
8781
- /**
8782
- * Save image to nifti file.
8783
- * @param filename Filename to save to.
8784
- * @param options Optional options.
8785
- */
8786
- niftisave(filename: string, options?: {
8787
- /**
8788
- * Which metadata to retain.
8789
- */
8790
- keep?: ForeignKeep | Flag
8791
- /**
8792
- * Background value.
8793
- */
8794
- background?: ArrayConstant
8795
- /**
8796
- * Set page height for multipage save.
8797
- */
8798
- page_height?: number
8799
- /**
8800
- * Filename of icc profile to embed.
8801
- */
8802
- profile?: string
8803
- }): void;
8804
-
8805
7387
  /**
8806
7388
  * Find threshold for percent of pixels.
8807
7389
  * @param percent Percent of pixels.