wasm-vips 0.0.10 → 0.0.11

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
@@ -41,7 +41,7 @@ declare module Vips {
41
41
 
42
42
  /**
43
43
  * Queue of handles to be deleted.
44
- * This is filled when [[deleteLater]] is called on the handle.
44
+ * This is filled when {@link deleteLater} is called on the handle.
45
45
  */
46
46
  const deletionQueue: DeletionFuncs<Image | Connection | Interpolate>;
47
47
 
@@ -112,14 +112,6 @@ declare module Vips {
112
112
  */
113
113
  function shutdown(): void;
114
114
 
115
- /**
116
- * Convert a bigint value (usually coming from Wasm->JS call) into an int53 JS Number.
117
- * This is used when we have an incoming i64 that we know is a pointer or size_t and
118
- * is expected to be withing the int53 range.
119
- * @return The converted bigint value or NaN if the incoming bigint is outside the range.
120
- */
121
- function bigintToI53Checked(num: bigint): number;
122
-
123
115
  //#endregion
124
116
 
125
117
  //#region APIs
@@ -129,8 +121,8 @@ declare module Vips {
129
121
  */
130
122
  abstract class EmbindClassHandle<T extends EmbindClassHandle<T>> {
131
123
  /**
132
- * Returns a new handle. It must eventually also be disposed with [[delete]] or
133
- * [[deleteLater]].
124
+ * Returns a new handle. It must eventually also be disposed with {@link delete} or
125
+ * {@link deleteLater}.
134
126
  * @return A new handle.
135
127
  */
136
128
  clone(): T;
@@ -317,7 +309,7 @@ declare module Vips {
317
309
  * ```js
318
310
  * const source = vips.Source.newFromFile('myfile.jpg');
319
311
  * ```
320
- * You can pass this source to (for example) [[Image.newFromSource]].
312
+ * You can pass this source to (for example) {@link Image.newFromSource}.
321
313
  * @param filename The file.
322
314
  * @return A new source.
323
315
  */
@@ -331,7 +323,7 @@ declare module Vips {
331
323
  * const data = image.writeToBuffer('.jpg');
332
324
  * const source = vips.Source.newFromMemory(data);
333
325
  * ```
334
- * You can pass this source to (for example) [[Image.newFromSource]].
326
+ * You can pass this source to (for example) {@link Image.newFromSource}.
335
327
  * @param memory The memory object.
336
328
  * @return A new source.
337
329
  */
@@ -344,11 +336,13 @@ declare module Vips {
344
336
  class SourceCustom extends Source {
345
337
  /**
346
338
  * Attach a read handler.
347
- * @param ptr A pointer to an array of bytes where the read content is stored.
348
- * @param size The maximum number of bytes to be read.
349
- * @return The total number of bytes read into the buffer.
339
+ * The handler is given a number of bytes to fetch {@link length}, and should return a
340
+ * bytes-like object containing up to that number of bytes. If there's no more data
341
+ * available, it should return `undefined`.
342
+ * @param length The maximum number of bytes to be read.
343
+ * @return A blob up to {@link length} bytes or `undefined` if there's no more data available.
350
344
  */
351
- onRead: (ptr: number, size: bigint) => bigint;
345
+ onRead: (length: number) => Blob | undefined;
352
346
 
353
347
  /**
354
348
  * Attach a seek handler.
@@ -358,7 +352,7 @@ declare module Vips {
358
352
  * @param size A value indicating the reference point used to obtain the new position.
359
353
  * @return The new position within the current source.
360
354
  */
361
- onSeek: (offset: bigint, whence: number) => bigint;
355
+ onSeek: (offset: number, whence: number) => number;
362
356
  }
363
357
 
364
358
  /**
@@ -372,8 +366,8 @@ declare module Vips {
372
366
  * ```js
373
367
  * const target = vips.Target.newToFile('myfile.jpg');
374
368
  * ```
375
- * You can pass this target to (for example) [[image.writeToTarget]].
376
- * @param filename Write to this this file.
369
+ * You can pass this target to (for example) {@link image.writeToTarget}.
370
+ * @param filename Write to this file.
377
371
  * @return A new target.
378
372
  */
379
373
  static newToFile(filename: string): Target;
@@ -385,9 +379,9 @@ declare module Vips {
385
379
  * ```js
386
380
  * const target = vips.Target.newToMemory();
387
381
  * ```
388
- * You can pass this target to (for example) [[image.writeToTarget]].
382
+ * You can pass this target to (for example) {@link image.writeToTarget}.
389
383
  *
390
- * After writing to the target, fetch the bytes from the target object with [[getBlob]].
384
+ * After writing to the target, fetch the bytes from the target object with {@link getBlob}.
391
385
  * @return A new target.
392
386
  */
393
387
  static newToMemory(): Target;
@@ -407,22 +401,20 @@ declare module Vips {
407
401
  class TargetCustom extends Target {
408
402
  /**
409
403
  * Attach a write handler.
410
- * @param ptr A pointer to an array of bytes which will be written to.
411
- * @param length The number of bytes to write.
404
+ * @param data A typed array of 8-bit unsigned integer values.
412
405
  * @return The number of bytes that were written.
413
406
  */
414
- onWrite: (ptr: number, size: bigint) => bigint;
407
+ onWrite: (data: Uint8Array) => number;
415
408
 
416
409
  /* libtiff needs to be able to seek and read on targets, unfortunately.
417
410
  */
418
411
 
419
412
  /**
420
413
  * Attach a read handler.
421
- * @param ptr A pointer to an array of bytes where the read content is stored.
422
- * @param size The maximum number of bytes to be read.
423
- * @return The total number of bytes read from the target.
414
+ * @param length The maximum number of bytes to be read.
415
+ * @return A blob up to {@link length} bytes or `undefined` if there's no more data available.
424
416
  */
425
- onRead: (ptr: number, size: bigint) => bigint;
417
+ onRead: (length: number) => Blob | undefined;
426
418
 
427
419
  /**
428
420
  * Attach a seek handler.
@@ -430,7 +422,7 @@ declare module Vips {
430
422
  * @param size A value indicating the reference point used to obtain the new position.
431
423
  * @return The new position within the current target.
432
424
  */
433
- onSeek: (offset: bigint, whence: number) => bigint;
425
+ onSeek: (offset: number, whence: number) => number;
434
426
 
435
427
  /**
436
428
  * Attach an end handler.
@@ -550,7 +542,7 @@ declare module Vips {
550
542
  * Make a new temporary image.
551
543
  *
552
544
  * Returns an image backed by a temporary file. When written to with
553
- * [[write]], a temporary file will be created on disc in the
545
+ * {@link write}, a temporary file will be created on disc in the
554
546
  * specified format. When the image is closed, the file will be deleted
555
547
  * automatically.
556
548
  *
@@ -605,7 +597,7 @@ declare module Vips {
605
597
  access?: Access | Enum
606
598
  /**
607
599
  * The type of error that will cause load to fail. By default,
608
- * loaders are permissive, that is, [[FailOn.none]].
600
+ * loaders are permissive, that is, {@link FailOn.none}.
609
601
  */
610
602
  fail_on?: FailOn | Enum
611
603
  /**
@@ -630,8 +622,8 @@ declare module Vips {
630
622
  * This method is useful for efficiently transferring images from WebGL into
631
623
  * libvips.
632
624
  *
633
- * See [[writeToMemory]] for the opposite operation.
634
- * Use [[copy]] to set other image attributes.
625
+ * See {@link writeToMemory} for the opposite operation.
626
+ * Use {@link copy} to set other image attributes.
635
627
  * @param data A C-style JavaScript array.
636
628
  * @param width Image width in pixels.
637
629
  * @param height Image height in pixels.
@@ -644,7 +636,7 @@ declare module Vips {
644
636
  /**
645
637
  * Wrap an image around a pointer.
646
638
  *
647
- * This behaves exactly as [[newFromMemory]], but the image is
639
+ * This behaves exactly as {@link newFromMemory}, but the image is
648
640
  * loaded from a pointer rather than from a JavaScript array.
649
641
  * @param ptr A memory address.
650
642
  * @param size Length of memory area.
@@ -659,7 +651,7 @@ declare module Vips {
659
651
  /**
660
652
  * Load a formatted image from memory.
661
653
  *
662
- * This behaves exactly as [[newFromFile]], but the image is
654
+ * This behaves exactly as {@link newFromFile}, but the image is
663
655
  * loaded from the memory object rather than from a file. The
664
656
  * memory object can be a string or buffer.
665
657
  * @param data The memory object to load the image from.
@@ -674,7 +666,7 @@ declare module Vips {
674
666
  access?: Access | Enum
675
667
  /**
676
668
  * The type of error that will cause load to fail. By default,
677
- * loaders are permissive, that is, [[FailOn.none]].
669
+ * loaders are permissive, that is, {@link FailOn.none}.
678
670
  */
679
671
  fail_on?: FailOn | Enum
680
672
  /**
@@ -686,7 +678,7 @@ declare module Vips {
686
678
  /**
687
679
  * Load a formatted image from a source.
688
680
  *
689
- * This behaves exactly as [[newFromFile]], but the image is
681
+ * This behaves exactly as {@link newFromFile}, but the image is
690
682
  * loaded from a source rather than from a file.
691
683
  * @param source The source to load the image from.
692
684
  * @param strOptions Load options as a string.
@@ -700,7 +692,7 @@ declare module Vips {
700
692
  access?: Access | Enum
701
693
  /**
702
694
  * The type of error that will cause load to fail. By default,
703
- * loaders are permissive, that is, [[FailOn.none]].
695
+ * loaders are permissive, that is, {@link FailOn.none}.
704
696
  */
705
697
  fail_on?: FailOn | Enum
706
698
  /**
@@ -712,9 +704,9 @@ declare module Vips {
712
704
  /**
713
705
  * Create an image from a 1D array.
714
706
  *
715
- * A new one-band image with [[BandFormat.double]] pixels is
707
+ * A new one-band image with {@link BandFormat.double} pixels is
716
708
  * created from the array. These images are useful with the libvips
717
- * convolution operator [[conv]].
709
+ * convolution operator {@link conv}.
718
710
  * @param width Image width.
719
711
  * @param height Image height.
720
712
  * @param array Create the image from these values.
@@ -725,9 +717,9 @@ declare module Vips {
725
717
  /**
726
718
  * Create an image from a 2D array.
727
719
  *
728
- * A new one-band image with [[BandFormat.double]] pixels is
720
+ * A new one-band image with {@link BandFormat.double} pixels is
729
721
  * created from the array. These images are useful with the libvips
730
- * convolution operator [[conv]].
722
+ * convolution operator {@link conv}.
731
723
  * @param array Create the image from these values.
732
724
  * @param scale Default to 1.0. What to divide each pixel by after
733
725
  * convolution. Useful for integer convolution masks.
@@ -766,7 +758,7 @@ declare module Vips {
766
758
  * Write an image to another image.
767
759
  *
768
760
  * This function writes itself to another image. Use something like
769
- * [[newTempFile]] to make an image that can be written to.
761
+ * {@link newTempFile} to make an image that can be written to.
770
762
  * @param other The image to write to.
771
763
  * @return A new image.
772
764
  */
@@ -777,7 +769,7 @@ declare module Vips {
777
769
  *
778
770
  * This method can save images in any format supported by libvips. The format
779
771
  * is selected from the filename suffix. The filename can include embedded
780
- * save options, see [[newFromFile]].
772
+ * save options, see {@link newFromFile}.
781
773
  *
782
774
  * For example:
783
775
  * ```js
@@ -806,7 +798,7 @@ declare module Vips {
806
798
  *
807
799
  * This method can save images in any format supported by libvips. The format
808
800
  * is selected from the suffix in the format string. This can include
809
- * embedded save options, see [[newFromFile]].
801
+ * embedded save options, see {@link newFromFile}.
810
802
  *
811
803
  * For example:
812
804
  * ```js
@@ -834,7 +826,7 @@ declare module Vips {
834
826
  /**
835
827
  * Write an image to a target.
836
828
  *
837
- * This behaves exactly as [[writeToFile]], but the image is
829
+ * This behaves exactly as {@link writeToFile}, but the image is
838
830
  * written to a target rather than a file.
839
831
  * @param target Write to this target.
840
832
  * @param formatString The suffix, plus any string-form arguments.
@@ -879,28 +871,28 @@ declare module Vips {
879
871
  setArrayInt(name: string, value: ArrayConstant): void;
880
872
 
881
873
  /**
882
- * Set an double array on an image as metadata.
874
+ * Set a double array on an image as metadata.
883
875
  * @param name The name of the piece of metadata to set the value of.
884
876
  * @param value The metadata value.
885
877
  */
886
878
  setArrayDouble(name: string, value: ArrayConstant): void;
887
879
 
888
880
  /**
889
- * Set an double on an image as metadata.
881
+ * Set a double on an image as metadata.
890
882
  * @param name The name of the piece of metadata to set the value of.
891
883
  * @param value The metadata value.
892
884
  */
893
885
  setDouble(name: string, value: number): void;
894
886
 
895
887
  /**
896
- * Set an string on an image as metadata.
888
+ * Set a string on an image as metadata.
897
889
  * @param name The name of the piece of metadata to set the value of.
898
890
  * @param value The metadata value.
899
891
  */
900
892
  setString(name: string, value: string): void;
901
893
 
902
894
  /**
903
- * Set an blob on an image as metadata.
895
+ * Set a blob on an image as metadata.
904
896
  * The value will internally be copied from JavaScript to WASM.
905
897
  * @param name The name of the piece of metadata to set the value of.
906
898
  * @param value The metadata value.
@@ -908,7 +900,7 @@ declare module Vips {
908
900
  setBlob(name: string, value: Blob): void;
909
901
 
910
902
  /**
911
- * Set an blob pointer on an image as metadata.
903
+ * Set a blob pointer on an image as metadata.
912
904
  * @param name The name of the piece of metadata to set the value of.
913
905
  * @param ptr The metadata value as memory address.
914
906
  * @param size Length of blob.
@@ -938,30 +930,30 @@ declare module Vips {
938
930
  getArrayInt(name: string): number[];
939
931
 
940
932
  /**
941
- * Get an double array from an image.
933
+ * Get a double array from an image.
942
934
  * @param name The name of the piece of metadata to get.
943
- * @return The metadata item as an double array.
935
+ * @return The metadata item as a double array.
944
936
  */
945
937
  getArrayDouble(name: string): number[];
946
938
 
947
939
  /**
948
940
  * Get an double from an image.
949
941
  * @param name The name of the piece of metadata to get.
950
- * @return The metadata item as an double.
942
+ * @return The metadata item as a double.
951
943
  */
952
944
  getDouble(name: string): number;
953
945
 
954
946
  /**
955
- * Get an string from an image.
947
+ * Get a string from an image.
956
948
  * @param name The name of the piece of metadata to get.
957
- * @return The metadata item as an string.
949
+ * @return The metadata item as a string.
958
950
  */
959
951
  getString(name: string): string;
960
952
 
961
953
  /**
962
- * Get an blob from an image.
954
+ * Get a blob from an image.
963
955
  * @param name The name of the piece of metadata to get.
964
- * @return The metadata item as an typed array of 8-bit unsigned integer values.
956
+ * @return The metadata item as a typed array of 8-bit unsigned integer values.
965
957
  */
966
958
  getBlob(name: string): Uint8Array;
967
959
 
@@ -991,7 +983,7 @@ declare module Vips {
991
983
  /**
992
984
  * Sets the `delete_on_close` flag for the image.
993
985
  * If this flag is set, when image is finalized, the filename held in
994
- * [[image.filename]] at the time of this call is deleted.
986
+ * {@link image.filename} at the time of this call is deleted.
995
987
  * This function is clearly extremely dangerous, use with great caution.
996
988
  */
997
989
  setDeleteOnClose(flag: boolean): void;
@@ -2346,6 +2338,30 @@ declare module Vips {
2346
2338
  none = 3 // 'none'
2347
2339
  }
2348
2340
 
2341
+ /**
2342
+ * The SDF to generate,
2343
+ *
2344
+ * See also: vips_sdf().
2345
+ */
2346
+ enum SdfShape {
2347
+ /**
2348
+ * A circle at @a, radius @r
2349
+ */
2350
+ circle = 0, // 'circle'
2351
+ /**
2352
+ * A box from @a to @b
2353
+ */
2354
+ box = 1, // 'box'
2355
+ /**
2356
+ * A box with rounded @corners from @a to @b
2357
+ */
2358
+ rounded_box = 2, // 'rounded-box'
2359
+ /**
2360
+ * A line from @a to @b
2361
+ */
2362
+ line = 3 // 'line'
2363
+ }
2364
+
2349
2365
  /**
2350
2366
  * How sensitive loaders are to errors, from never stop (very insensitive), to
2351
2367
  * stop on the smallest warning (very sensitive).
@@ -3710,6 +3726,14 @@ declare module Vips {
3710
3726
  * @return Output image.
3711
3727
  */
3712
3728
  static jxlload(filename: string, options?: {
3729
+ /**
3730
+ * First page to load.
3731
+ */
3732
+ page?: number
3733
+ /**
3734
+ * Number of pages to load, -1 for all.
3735
+ */
3736
+ n?: number
3713
3737
  /**
3714
3738
  * Force open via memory.
3715
3739
  */
@@ -3739,6 +3763,14 @@ declare module Vips {
3739
3763
  * @return Output image.
3740
3764
  */
3741
3765
  static jxlloadBuffer(buffer: Blob, options?: {
3766
+ /**
3767
+ * First page to load.
3768
+ */
3769
+ page?: number
3770
+ /**
3771
+ * Number of pages to load, -1 for all.
3772
+ */
3773
+ n?: number
3742
3774
  /**
3743
3775
  * Force open via memory.
3744
3776
  */
@@ -3768,6 +3800,14 @@ declare module Vips {
3768
3800
  * @return Output image.
3769
3801
  */
3770
3802
  static jxlloadSource(source: Source, options?: {
3803
+ /**
3804
+ * First page to load.
3805
+ */
3806
+ page?: number
3807
+ /**
3808
+ * Number of pages to load, -1 for all.
3809
+ */
3810
+ n?: number
3771
3811
  /**
3772
3812
  * Force open via memory.
3773
3813
  */
@@ -4926,6 +4966,33 @@ declare module Vips {
4926
4966
  flags?: number | undefined
4927
4967
  }): Image;
4928
4968
 
4969
+ /**
4970
+ * Create an sdf image.
4971
+ * @param width Image width in pixels.
4972
+ * @param height Image height in pixels.
4973
+ * @param shape SDF shape to create.
4974
+ * @param options Optional options.
4975
+ * @return Output image.
4976
+ */
4977
+ static sdf(width: number, height: number, shape: SdfShape | Enum, options?: {
4978
+ /**
4979
+ * Radius.
4980
+ */
4981
+ r?: number
4982
+ /**
4983
+ * Point a.
4984
+ */
4985
+ a?: ArrayConstant
4986
+ /**
4987
+ * Point b.
4988
+ */
4989
+ b?: ArrayConstant
4990
+ /**
4991
+ * Corner radii.
4992
+ */
4993
+ corners?: ArrayConstant
4994
+ }): Image;
4995
+
4929
4996
  /**
4930
4997
  * Make a 2d sine wave.
4931
4998
  * @param width Image width in pixels.
@@ -5869,6 +5936,12 @@ declare module Vips {
5869
5936
  */
5870
5937
  add(right: Image | ArrayConstant): Image;
5871
5938
 
5939
+ /**
5940
+ * Append an alpha channel.
5941
+ * @return Output image.
5942
+ */
5943
+ addalpha(): Image;
5944
+
5872
5945
  /**
5873
5946
  * Affine transform of an image.
5874
5947
  * @param matrix Transformation matrix.
@@ -5993,26 +6066,6 @@ declare module Vips {
5993
6066
  */
5994
6067
  byteswap(): Image;
5995
6068
 
5996
- /**
5997
- * Cache an image.
5998
- * @param options Optional options.
5999
- * @return Output image.
6000
- */
6001
- cache(options?: {
6002
- /**
6003
- * Maximum number of tiles to cache.
6004
- */
6005
- max_tiles?: number
6006
- /**
6007
- * Tile height in pixels.
6008
- */
6009
- tile_height?: number
6010
- /**
6011
- * Tile width in pixels.
6012
- */
6013
- tile_width?: number
6014
- }): Image;
6015
-
6016
6069
  /**
6017
6070
  * Canny edge detector.
6018
6071
  * @param options Optional options.
@@ -6049,6 +6102,22 @@ declare module Vips {
6049
6102
  shift?: boolean
6050
6103
  }): Image;
6051
6104
 
6105
+ /**
6106
+ * Clamp values of an image.
6107
+ * @param options Optional options.
6108
+ * @return Output image.
6109
+ */
6110
+ clamp(options?: {
6111
+ /**
6112
+ * Minimum value.
6113
+ */
6114
+ min?: number
6115
+ /**
6116
+ * Maximum value.
6117
+ */
6118
+ max?: number
6119
+ }): Image;
6120
+
6052
6121
  /**
6053
6122
  * Convert to a new colorspace.
6054
6123
  * @param space Destination color space.
@@ -6905,9 +6974,15 @@ declare module Vips {
6905
6974
  * Read a point from an image.
6906
6975
  * @param x Point to read.
6907
6976
  * @param y Point to read.
6977
+ * @param options Optional options.
6908
6978
  * @return Array of output values.
6909
6979
  */
6910
- getpoint(x: number, y: number): number[];
6980
+ getpoint(x: number, y: number, options?: {
6981
+ /**
6982
+ * Complex pixels should be unpacked.
6983
+ */
6984
+ unpack_complex?: boolean
6985
+ }): number[];
6911
6986
 
6912
6987
  /**
6913
6988
  * Save as gif.
@@ -7581,7 +7656,7 @@ declare module Vips {
7581
7656
 
7582
7657
  /**
7583
7658
  * Save image in jpeg2000 format.
7584
- * @param filename Filename to load from.
7659
+ * @param filename Filename to save to.
7585
7660
  * @param options Optional options.
7586
7661
  */
7587
7662
  jp2ksave(filename: string, options?: {
@@ -7952,7 +8027,7 @@ declare module Vips {
7952
8027
 
7953
8028
  /**
7954
8029
  * Save image in jpeg-xl format.
7955
- * @param filename Filename to load from.
8030
+ * @param filename Filename to save to.
7956
8031
  * @param options Optional options.
7957
8032
  */
7958
8033
  jxlsave(filename: string, options?: {
@@ -8415,6 +8490,13 @@ declare module Vips {
8415
8490
  y_array?: number[] | undefined
8416
8491
  }): number;
8417
8492
 
8493
+ /**
8494
+ * Maximum of a pair of images.
8495
+ * @param right Right-hand image argument.
8496
+ * @return Output image.
8497
+ */
8498
+ maxpair(right: Image | ArrayConstant): Image;
8499
+
8418
8500
  /**
8419
8501
  * Measure a set of patches on a color chart.
8420
8502
  * @param h Number of patches across chart.
@@ -8489,6 +8571,13 @@ declare module Vips {
8489
8571
  y_array?: number[] | undefined
8490
8572
  }): number;
8491
8573
 
8574
+ /**
8575
+ * Minimum of a pair of images.
8576
+ * @param right Right-hand image argument.
8577
+ * @return Output image.
8578
+ */
8579
+ minpair(right: Image | ArrayConstant): Image;
8580
+
8492
8581
  /**
8493
8582
  * Morphology operation.
8494
8583
  * @param mask Input matrix image.
@@ -9029,11 +9118,35 @@ declare module Vips {
9029
9118
  }): void;
9030
9119
 
9031
9120
  /**
9032
- * Write raw image to file descriptor.
9033
- * @param fd File descriptor to write to.
9121
+ * Write raw image to buffer.
9122
+ * @param options Optional options.
9123
+ * @return Buffer to save to.
9124
+ */
9125
+ rawsaveBuffer(options?: {
9126
+ /**
9127
+ * Which metadata to retain.
9128
+ */
9129
+ keep?: ForeignKeep | Flag
9130
+ /**
9131
+ * Background value.
9132
+ */
9133
+ background?: ArrayConstant
9134
+ /**
9135
+ * Set page height for multipage save.
9136
+ */
9137
+ page_height?: number
9138
+ /**
9139
+ * Filename of icc profile to embed.
9140
+ */
9141
+ profile?: string
9142
+ }): Uint8Array;
9143
+
9144
+ /**
9145
+ * Write raw image to target.
9146
+ * @param target Target to save to.
9034
9147
  * @param options Optional options.
9035
9148
  */
9036
- rawsaveFd(fd: number, options?: {
9149
+ rawsaveTarget(target: Target, options?: {
9037
9150
  /**
9038
9151
  * Which metadata to retain.
9039
9152
  */
@@ -9176,7 +9289,7 @@ declare module Vips {
9176
9289
 
9177
9290
  /**
9178
9291
  * Rotate an image by a number of degrees.
9179
- * @param angle Rotate anticlockwise by this many degrees.
9292
+ * @param angle Rotate clockwise by this many degrees.
9180
9293
  * @param options Optional options.
9181
9294
  * @return Output image.
9182
9295
  */
@@ -9379,7 +9492,7 @@ declare module Vips {
9379
9492
  */
9380
9493
  scale?: number
9381
9494
  /**
9382
- * Rotate anticlockwise by this many degrees.
9495
+ * Rotate clockwise by this many degrees.
9383
9496
  */
9384
9497
  angle?: number
9385
9498
  /**
@@ -9618,7 +9731,7 @@ declare module Vips {
9618
9731
  */
9619
9732
  region_shrink?: RegionShrink | Enum
9620
9733
  /**
9621
- * Zstd compression level.
9734
+ * Deflate (1-9, default 6) or zstd (1-22, default 9) compression level.
9622
9735
  */
9623
9736
  level?: number
9624
9737
  /**
@@ -9722,7 +9835,7 @@ declare module Vips {
9722
9835
  */
9723
9836
  region_shrink?: RegionShrink | Enum
9724
9837
  /**
9725
- * Zstd compression level.
9838
+ * Deflate (1-9, default 6) or zstd (1-22, default 9) compression level.
9726
9839
  */
9727
9840
  level?: number
9728
9841
  /**
@@ -9826,7 +9939,7 @@ declare module Vips {
9826
9939
  */
9827
9940
  region_shrink?: RegionShrink | Enum
9828
9941
  /**
9829
- * Zstd compression level.
9942
+ * Deflate (1-9, default 6) or zstd (1-22, default 9) compression level.
9830
9943
  */
9831
9944
  level?: number
9832
9945
  /**
@@ -10017,10 +10130,22 @@ declare module Vips {
10017
10130
  * Level of cpu effort to reduce file size.
10018
10131
  */
10019
10132
  effort?: number
10133
+ /**
10134
+ * Desired target size in bytes.
10135
+ */
10136
+ target_size?: number
10020
10137
  /**
10021
10138
  * Allow mixed encoding (might reduce file size).
10022
10139
  */
10023
10140
  mixed?: boolean
10141
+ /**
10142
+ * Enable auto-adjusting of the deblocking filter.
10143
+ */
10144
+ smart_deblock?: boolean
10145
+ /**
10146
+ * Number of entropy-analysis passes (in [1..10]).
10147
+ */
10148
+ passes?: number
10024
10149
  /**
10025
10150
  * Which metadata to retain.
10026
10151
  */
@@ -10085,10 +10210,22 @@ declare module Vips {
10085
10210
  * Level of cpu effort to reduce file size.
10086
10211
  */
10087
10212
  effort?: number
10213
+ /**
10214
+ * Desired target size in bytes.
10215
+ */
10216
+ target_size?: number
10088
10217
  /**
10089
10218
  * Allow mixed encoding (might reduce file size).
10090
10219
  */
10091
10220
  mixed?: boolean
10221
+ /**
10222
+ * Enable auto-adjusting of the deblocking filter.
10223
+ */
10224
+ smart_deblock?: boolean
10225
+ /**
10226
+ * Number of entropy-analysis passes (in [1..10]).
10227
+ */
10228
+ passes?: number
10092
10229
  /**
10093
10230
  * Which metadata to retain.
10094
10231
  */
@@ -10152,10 +10289,22 @@ declare module Vips {
10152
10289
  * Level of cpu effort to reduce file size.
10153
10290
  */
10154
10291
  effort?: number
10292
+ /**
10293
+ * Desired target size in bytes.
10294
+ */
10295
+ target_size?: number
10155
10296
  /**
10156
10297
  * Allow mixed encoding (might reduce file size).
10157
10298
  */
10158
10299
  mixed?: boolean
10300
+ /**
10301
+ * Enable auto-adjusting of the deblocking filter.
10302
+ */
10303
+ smart_deblock?: boolean
10304
+ /**
10305
+ * Number of entropy-analysis passes (in [1..10]).
10306
+ */
10307
+ passes?: number
10159
10308
  /**
10160
10309
  * Which metadata to retain.
10161
10310
  */
@@ -10220,10 +10369,22 @@ declare module Vips {
10220
10369
  * Level of cpu effort to reduce file size.
10221
10370
  */
10222
10371
  effort?: number
10372
+ /**
10373
+ * Desired target size in bytes.
10374
+ */
10375
+ target_size?: number
10223
10376
  /**
10224
10377
  * Allow mixed encoding (might reduce file size).
10225
10378
  */
10226
10379
  mixed?: boolean
10380
+ /**
10381
+ * Enable auto-adjusting of the deblocking filter.
10382
+ */
10383
+ smart_deblock?: boolean
10384
+ /**
10385
+ * Number of entropy-analysis passes (in [1..10]).
10386
+ */
10387
+ passes?: number
10227
10388
  /**
10228
10389
  * Which metadata to retain.
10229
10390
  */