Lovell Fuller
f43829a16a
Use Call semantics for C++ to JS callbacks
...
Reverts 4ec883e as no longer required
2023-10-19 16:14:21 +01:00
Lovell Fuller
8d1747aa6a
Add rpath to match Deno package cache layout
2023-10-13 18:54:37 +01:00
Lovell Fuller
f8b6cb6d5b
Update package names to use 'img' npm organisation
2023-10-12 17:03:37 +01:00
Lovell Fuller
4b028edfe9
Revert "Remove extraneous rpath"
...
This reverts commit 3f54ef7525ed357ce64bf375ef7ce3d70a52ba61.
The filesystem layout used by pnpm means that a nesting of 2
directories deep is used in the wild and must remain.
2023-10-10 09:56:07 +01:00
Lovell Fuller
7e25dd7be1
Ensure versions prop detects use of global libvips
2023-10-10 09:18:25 +01:00
Lovell Fuller
3b22640077
Use std::snprintf to concat libvips version parts
2023-10-09 13:35:20 +01:00
Lovell Fuller
3f54ef7525
Remove extraneous rpath
...
The sharp.node shared library should now always end up being
nested either 3 subdirectories deep into the package root or exist
within same namespace of the node_modules tree.
2023-10-09 07:58:14 +01:00
Lovell Fuller
f7da2e5970
Building from source now requires node-addon-api in dependencies
...
If you want to build sharp from source against a globally-installed
libvips then you will now need to add both node-addon-api and
node-gyp to the dependencies section of your package.json file.
The binding.gyp file is "hidden" inside the src directory to
prevent various build and package manager tooling from assuming
that everyone is going to build from source every time.
2023-10-08 15:39:02 +01:00
Lovell Fuller
08108f5fad
Use std::once for vips_init call
2023-10-06 09:44:57 +01:00
Lovell Fuller
f8cf25ca56
Ensure correct interp of 16-bit raw input #3808
2023-10-05 14:05:36 +01:00
Lovell Fuller
70ac6905c7
Use std::atomic for counters
2023-09-30 14:01:04 +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
Lovell Fuller
dbce6fab79
Upgrade to libvips v8.14.5
2023-09-18 20:09:54 +01:00
Lovell Fuller
9c217ab580
Ensure withMetadata can add RGB16 profiles #3773
2023-08-31 12:49:50 +01:00
Lovell Fuller
e7381e522e
Alternative fix for 4340d60, uses existing StaySequential
2023-08-31 12:09:11 +01:00
Lovell Fuller
4340d60ccf
Ensure composite tile images fully decoded #3767
2023-08-31 09:04:51 +01:00
Lovell Fuller
95635683ac
Ensure withMetadata skips default profile for RGB16 #3773
2023-08-24 18:13:00 +01:00
Lovell Fuller
ccd51c8cbf
Upgrade to libvips v8.14.4
2023-08-15 16:40:22 +01:00
Lovell Fuller
bb7469b2d1
Ensure withMetadata adds default sRGB profile #3761
2023-08-15 13:02:20 +01:00
Kleis Auke Wolthuizen
a2cac61209
Simplify 90/270 orient-before-resize logic ( #3762 )
2023-08-15 07:56:07 +01:00
Lovell Fuller
5c19f6dd9b
Ensure resize fit=inside respects 90/270 rotate #3756
2023-08-14 13:45:23 +01:00
Kleis Auke Wolthuizen
2829e17743
Fix build with musl 1.2.4 ( #3755 )
2023-08-07 21:57:00 +01:00
Lovell Fuller
7ecbc20d3d
Upgrade to libvips v8.14.3
2023-07-21 11:10:21 +01:00
Lovell Fuller
739b317a6f
Expose ability to (un)block libvips ops by name
2023-07-19 16:53:52 +01:00
Lovell Fuller
85b26dab68
Expose preset option for WebP output #3639
2023-07-12 19:12:04 +01:00
Lovell Fuller
bcd865cc96
Ensure decoding remains sequential for all ops #3725
2023-07-12 11:35:59 +01:00
Lovell Fuller
9c547dc321
Use copy rather than cache to prevent affine overcompute
...
More predictable behaviour, see commit 14c3346 for context
2023-07-10 13:56:42 +01:00
Lovell Fuller
5522060e9e
Limit HEIF output dimensions to 16384x16384
...
This is a slightly breaking change to sync with the behaviour of a
forthcoming libvips patch release. It also matches the libavif
limit. Having an arbitrary limit is safer than no limit.
2023-07-10 10:24:14 +01:00
Lovell Fuller
3434eef5b9
Guard use of smartcrop premultiplied option #3710
2023-07-09 09:57:20 +01:00
Lovell Fuller
2f67823c3d
Allow seq read for EXIF-based auto-orient #3725
2023-07-09 09:26:58 +01:00
Lovell Fuller
14c3346800
Prevent over-compute in affine rotate #3722
2023-07-09 09:04:07 +01:00
Lovell Fuller
de0fc07092
Ensure same access method for all inputs #3669
2023-05-16 13:53:31 +01:00
Lovell Fuller
e873978e53
Docs: clarify which axis is used when mirroring
2023-05-11 10:24:24 +01:00
Lovell Fuller
e98993a6e2
Bump node-addon-api for Buffer::NewOrCopy
2023-04-23 15:43:54 +01:00
Lovell Fuller
8408e99aa3
Ensure trim op works with CMYK input #3636
2023-04-20 10:49:39 +01:00
Lovell Fuller
5f8646d937
Support modulate op with non-sRGB pipeline colourspace #3620
2023-04-17 19:53:48 +01:00
Lovell Fuller
b763801d68
Ensure profile-less CMYK roundtrip skips space conv #3620
2023-04-11 20:31:57 +01:00
Lovell Fuller
a8645f0f38
Smartcrop performance can take future advantage of
...
https://github.com/libvips/libvips/commit/de43eea
2023-04-09 21:17:08 +01:00
Anton Marsden
a4c6eba7d4
Add unflatten operation to create an alpha channel ( #3461 )
2023-04-07 11:01:29 +01:00
Lovell Fuller
b9c3851515
Ensure linear op works with 16-bit input #3605
2023-04-01 12:08:14 +01:00
Lovell Fuller
97cf69c26a
Ensure use of flip op forces random access read #3600
2023-03-31 09:04:22 +01:00
Lovell Fuller
b55e58f31e
Trim space from end of libvips error messages
2023-03-24 09:58:21 +00:00
Lovell Fuller
08d6822265
Upgrade to libvips v8.14.2
2023-03-21 21:21:24 +00:00
LachlanNewman
d7776e3b98
Add support to normalise for lower and upper percentiles ( #3583 )
2023-03-21 10:13:12 +00:00
Lovell Fuller
4ec883eaa0
Wrap all async JS callbacks, help avoid possible race #3569
2023-03-01 12:41:11 +00:00
Lovell Fuller
0063df4d4f
Ensure clahe op uses random read, simplify validation
2023-02-28 21:59:31 +00:00
Lovell Fuller
6c61ad256f
Ensure all source code files contain SPDX licence
2023-02-28 17:01: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
Lovell Fuller
9e2207f376
Prefer integer (un)premultiply for faster RGBA resize
2023-01-24 15:24:58 +00:00