Steven D'Onfro
38b6f44611
TypeScript: Add missing properties for animated images ( #4369 )
2025-04-12 11:38:24 +01:00
Steven
3c7dbb8fba
fix(types): update autoOrient
type to include undefined ( #4362 )
...
This PR fixes the following error:
```
node_modules/.pnpm/sharp@0.34.0/node_modules/sharp/lib/index.d.ts(1590,15): error TS2430: Interface 'OverlayOptions' incorrectly extends interface 'SharpOptions'.
Types of property 'autoOrient' are incompatible.
Type 'boolean | undefined' is not assignable to type 'boolean'.
Type 'undefined' is not assignable to type 'boolean'.
```
2025-04-04 21:53:46 +01:00
Quentin Pinçon
031c808aa5
Expose erode and dilate operations #4243
2025-03-27 13:17:19 +00:00
Lovell Fuller
9d01dd20bf
TypeScript: ensure definition of sharp.versions matches reality
2025-02-10 17:37:54 +00:00
Lovell Fuller
5ab9168813
Add support for input array to join or animate #1580
2025-02-07 13:53:27 +00:00
Don Denton
14c83e1f4c
Add autoOrient operation and constructor option #4144
2025-01-17 11:09:59 +00:00
Kleis Auke Wolthuizen
92083ea64c
Docs: prebuilt binaries support tile-based output ( #4305 )
...
Except when targeting WebAssembly.
2024-12-28 11:51:50 +00:00
Lovell Fuller
04e7f58cea
Ensure background metadata can be parsed #4090
2024-11-02 13:03:58 +00:00
Lovell Fuller
3154af776e
Add isPalette and bitsPerSample metadata, deprecate paletteBitDepth
2024-10-29 09:11:19 +00:00
David Vaness
1533bf995a
TypeScript: Ensure channel counts use the correct range #4197
2024-10-13 13:37:43 +01:00
Lovell Fuller
b249357732
Docs: improve colour vs color consistency
...
API supports both, docs prefer colour
2024-09-06 13:40:34 +01:00
Caleb Meredith
7ee54810d4
Add pdfBackground constructor property ( #4207 )
2024-09-06 12:31:43 +01:00
David Vaness
ab65b7a0f1
TypeScript: chromaSubsampling can be undefined ( #4191 )
2024-08-14 12:59:10 +01:00
Marcos Casagrande
735fee74db
Expose optional minAmplitude parameter of blur operation ( #4172 )
2024-07-23 11:31:11 +01:00
Marcos Casagrande
67a4592756
Expose optional precision parameter of blur operation ( #4168 )
2024-07-20 13:53:23 +01:00
Nathan Keynes
d642108be2
Expose PNG metadata comments ( #4157 )
2024-07-18 18:08:03 +01:00
Denice
60c5c5083d
Add support to recomb operation for 4x4 matrices
2024-07-05 15:31:51 +01:00
ike
0981b24f60
TypeScript: add missing definitions for OverlayOptions ( #4048 )
2024-04-02 14:42:10 +01:00
Mert
3c26080c39
Add bitdepth option to heif output ( #4036 )
...
Prebuilt binaries support only AVIF with a bitdepth of 8
2024-03-21 14:36:17 +00:00
Aaron Che
8fbb1cd154
Ensure text.wrap property can accept word-char as value ( #4028 )
2024-03-17 08:15:03 +00:00
Abhishek V
77ab5d7a51
TypeScript: add definition for keepMetadata ( #3914 )
2023-12-24 10:24:54 +00:00
Lovell Fuller
19fa4cd1d3
Docs: update liborc references to highway
2023-12-12 12:01:41 +00:00
Lovell Fuller
e78200cc84
Increase control over output metadata ( #3856 )
...
Add withX and keepX functions to take advantage of
libvips 8.15.0 new 'keep' metadata feature.
2023-11-22 09:03:57 +00:00
Lovell Fuller
3f7313d031
Improve tint luminance with weighting function ( #3859 )
...
Co-authored-by: John Cupitt <jcupitt@gmail.com>
2023-11-19 13:19:34 +00:00
Lovell Fuller
0bd1715f36
Options for trim op must be an Object, add lineArt #2363
2023-11-04 14:09:50 +00:00
Dennis Beatty
28aa176957
Add support for miniswhite when using TIFF output
2023-11-03 11:27:49 +00:00
Thomas
e6942805b4
TypeScript: withMetadata accepts boolean ( #3823 )
2023-10-11 20:38:13 +01:00
Lovell Fuller
3043e01171
Make heif compression option mandatory #3740
2023-09-27 11:55:42 +01:00
Lovell Fuller
aabbe1fa08
Distribute prebuilt binaries via the npm registry #3750
...
- Remove all custom download logic for prebuilt binaries
- Add scripts to populate package contents
- Specify minimum versions of common package managers
- Remove sharp.vendor runtime API as no-longer relevant
- Update installation docs and issue templates
2023-09-26 20:26:39 +01:00
ldrick
846563e45f
TypeScript: add definitions for block and unblock ( #3799 )
2023-09-18 10:42:13 +01:00
sho-xizz
87562a5111
TypeScript: Ensure WebpOptions minSize is boolean ( #3758 )
2023-08-09 13:45:10 +01:00
pilotso11
ffefbd2ecc
TypeScript: add missing WebpPresetEnum ( #3748 )
2023-08-04 10:51:06 +01:00
Lovell Fuller
3340120aea
Types: include base input options for composite #3669
2023-05-16 13:55:28 +01:00
Lovell Fuller
bf9bb56367
Docs: fix affine interpolator example
2023-04-22 13:56:33 +01:00
Lovell Fuller
e87204b92c
Doc update and changelog entry for #3461
2023-04-07 11:21:15 +01:00
Anton Marsden
a4c6eba7d4
Add unflatten operation to create an alpha channel ( #3461 )
2023-04-07 11:01:29 +01:00
Lovell Fuller
148760fe55
Docs: clarify resize reduction/enlargement options refer to scaling
...
Types: options can be passed as first resize parameter
2023-03-24 15:19:21 +00:00
LachlanNewman
d7776e3b98
Add support to normalise for lower and upper percentiles ( #3583 )
2023-03-21 10:13:12 +00:00
Lovell Fuller
6c61ad256f
Ensure all source code files contain SPDX licence
2023-02-28 17:01:58 +00:00
Lovell Fuller
863e37455a
Docs: changelog and credit for #3556
2023-02-18 12:50:58 +00:00
Tomasz Janowski
6f0e6f2e65
Add support to extend for extendWith, allows copy/mirror/repeat ( #3556 )
2023-02-17 14:01:24 +00:00
Lovell Fuller
42d2f07e44
Add ignoreIcc input option to ignore embedded ICC profile
2023-02-12 17:51:24 +00:00
Jérémy Lal
9608f219bd
Add support for ArrayBuffer input ( #3548 )
2023-02-05 09:45:17 +00:00
Lovell Fuller
a532659b0f
Types: changes/additions relating to new v0.32.0 features
...
A separate commit is required as these were not part of the
initial definitions in the v0.31.3 snapshot.
From now on, new features and updates can include the relevant
TypeScript definition changes as part of the same
code/docs/tests commits.
2023-01-17 16:11:04 +00:00
Lovell Fuller
f79760b4f2
Docs: changelog and help for TypeScript defs #3369 #3370
2023-01-16 11:12:00 +00:00
Espen Hovlandsdal
aa5f0f4e40
Include and publish TypeScript definitions ( #3370 )
...
Definitions are a snapshot taken from `@types/sharp`,
which remain under the terms of MIT licensing.
2023-01-16 10:48:37 +00:00