Lovell Fuller
99be893dd4
Upgrade to libvips v8.17.0
...
CI: Use more recent, non-deprecated Windows runners
Bump devDeps
2025-06-12 11:27:26 +01:00
Lovell Fuller
3fd818c4b5
Prevent use of linux-x64 binaries with v1 microarchitecture
2025-03-19 19:54:53 +00:00
Lovell Fuller
08108f5fad
Use std::once for vips_init call
2023-10-06 09:44:57 +01:00
Lovell Fuller
739b317a6f
Expose ability to (un)block libvips ops by name
2023-07-19 16:53:52 +01:00
Lovell Fuller
6c61ad256f
Ensure all source code files contain SPDX licence
2023-02-28 17:01:58 +00:00
Kleis Auke Wolthuizen
afc4c5bf79
Upgrade to libvips v8.13.0-rc1 ( #3230 )
...
* Switch from decompress-zip to extract-zip
The former seems to hang when unzipping a ZIP64 file that uses
the general purpose bit flag 3 as file entry.
See: https://github.com/thejoshwolfe/yauzl#no-streaming-unzip-api
* Prefer to call via static member instead
Makes it clearer that a static method is being called.
* `flatten-orange.jpg`: save without chroma subsampling
To ensure no down-scaling of the Cr/Cb channels.
2022-06-26 22:39:29 +01:00
Kleis Auke Wolthuizen
c2ecde6a16
Windows: ensure C++ runtime is linked statically ( #3110 )
...
And remove the empty invalid parameter handler, which should
be present in the C layer instead.
This partially reverts commit
659cdabd8e8c284901a0ea17ccdcb13e17350a8e,
the added test case in that commit is still preserved.
2022-02-26 19:15:37 +00:00
Kleis Auke Wolthuizen
659cdabd8e
Windows: make invalid param errors recoverable by default ( #3002 )
...
* Tests: ensure writing to missing directory fails
Co-authored-by: Lovell Fuller <github@lovell.info>
2021-12-06 10:08:32 +00:00
Lovell Fuller
5a9cc835b3
Reduce concurrency when using glibc-based Linux
...
to help prevent memory fragmentation
2021-03-14 11:19:53 +00:00
Lovell Fuller
bba00c2bfe
Revert: ensure all platforms use fontconfig #2399 #2515
2021-01-13 17:50:58 +00:00
Lovell Fuller
ef964b5472
Ensure all platforms use fontconfig to render #2399
2020-12-20 10:23:26 +00:00
Lovell Fuller
103ec0d58f
Upgrade to libvips 8.10.5, AVIF support in prebuilt binaries
...
Remove experimental status from HEIF, changing defaults
to prefer royalty-free AV1 over patent-encumbered HEVC
2020-12-18 17:32:16 +00:00
Lovell Fuller
6ed1f49ad3
Ensure libvips is initialised only once #2143
2020-03-29 19:44:21 +01:00
Lovell Fuller
4abb4edf64
Migrate internals to N-API #1282
2020-02-15 19:38:15 +00:00
Lovell Fuller
4b8cc13a05
Add 2020 to list of copyright years
2020-01-08 21:20:53 +00:00
Lovell Fuller
946d3c81a5
Add experimental support for Worker Threads #1558
2019-06-26 21:15:04 +01:00
Lovell Fuller
ee8bfa3980
Add 2019 to list of years of copyright
2019-01-04 16:05:26 +00:00
Rahul Nanwani
d6aee8e5ba
Add pixel-derived image statistics via vips_stats ( #915 )
2017-12-09 11:17:48 +00:00
Lovell Fuller
301bfbd271
Expose libvips warnings via NODE_DEBUG env var
2017-04-26 21:37:43 +01:00
Lovell Fuller
81f5589411
Add use of 'cc' to improve C++ code style linting
2017-02-11 09:59:23 +00:00
Lovell Fuller
5c9c17f1f6
Switch from libvips' C to C++ binding
...
Requires upgrade to libvips 8.2.1
2016-02-03 17:48:22 +00:00
Lovell Fuller
11329d5e09
Expose control of the number of open files in libvips' cache.
...
Breaks API of existing cache method.
Disable libvips cache for I/O tests.
2016-02-03 17:48:22 +00:00
Lovell Fuller
32c4b9eff1
Allow SIMD vector unit to be toggled on/off #172
...
Currently defaults to off but future versions may default to on
2015-12-12 09:11:50 +00:00
Lovell Fuller
b7e0a6f277
Upgrade to nan v2 #246
...
Provides support for io.js v3 and Node v4
2015-08-23 21:36:48 +01:00
Lovell Fuller
36be0453dd
Refactor internal 'resize' to more apt 'pipeline'
...
Refactor 'composite' C to C++ 'operations'
2015-06-01 16:33:26 +01:00
Lovell Fuller
8832ae0bf9
Add private maxColourDistance for functional tests
...
Switch MSE-based tests to use it
Remove experimental MSE-based compare API
2015-06-01 14:21:02 +01:00
Daniel Gasienica
ef8db1eebf
Premultiply alpha channel to avoid dark artifacts during tranformation
...
Add `Sharp.compare(file1, file2, callback)` function for comparing images
using mean squared error (MSE). This is useful for unit tests.
See:
- https://github.com/jcupitt/libvips/issues/291
- http://entropymine.com/imageworsener/resizealpha/
2015-06-01 14:21:02 +01:00
Lovell Fuller
4f72dcbf54
Verify platform/compiler compatibility #178 #214
2015-05-11 10:46:47 +01:00
Lovell Fuller
1e52c2dbe6
Windows compatibility #19
...
Hide WebP format and normalise option
Separate test runners for node and iojs
2015-04-21 12:13:19 +01:00
Lovell Fuller
c7ccf6801d
Expose runtime format availability
...
Aids addition of new format/method combos
Dogfood this in the test code
2015-02-26 19:41:33 +00:00
Lovell Fuller
0e91ca90d6
Remove lingering NanAdjustExternalMemory
...
Should have been removed in fe34548b
2015-02-12 12:15:56 +00:00
Lovell Fuller
83ebe12061
Remove atexit handler as libvips defines this
...
New grunt-sharp build tool
Version bump for latest libvips
2015-01-22 14:17:20 +00:00
Lovell Fuller
8e9a8dfede
Remove cpplint namespace-related warnings
2015-01-16 22:31:46 +00:00
Lovell Fuller
7537adf399
Add features from libvips 7.40+
...
Load TIFF from Buffer/Stream
Interlaced PNG output no longer needs tilecache
Option to disable PNG adaptive row filtering
2014-11-08 12:08:27 +00:00
Lovell Fuller
8bc1981891
Refactor C++ code
...
Split features into their own file
Style is becoming less C, more C++
2014-10-21 21:38:19 +01:00
Lovell Fuller
db6dc6431b
Add support for mirroring #62
2014-10-21 14:47:08 +01:00
Lovell Fuller
9f6cc33858
Memory leak mop-up of new feature spillage
2014-10-13 22:53:43 +01:00
Lovell Fuller
945d941c7b
Convert image to sRGB sooner for embed
2014-10-13 15:39:52 +01:00
Brandon Aaron
83b72a1ede
Add support for stand-alone, pre-resize, and post-resize extraction with a topOffset, leftOffset, width, and height.
2014-10-07 09:56:55 -04:00
Lovell Fuller
6190ca4307
Ensure conversion to sRGB occurs before background #99
2014-10-07 10:17:20 +01:00
Lovell Fuller
37cb4339e2
Import embedded colour profile, if present #99
2014-10-06 10:45:58 +01:00
Lovell Fuller
46f229e308
Use own Angle enum to wrap jcupitt/libvips@154796a
2014-10-06 10:22:45 +01:00
Lovell Fuller
fb0769a327
Improve image reference handling
2014-10-03 11:45:06 +01:00
Lovell Fuller
0cba506bc4
Allow embed with rgba background #86 #89
...
Small memory leak mop-up related to #94
2014-10-02 20:02:14 +01:00
Daniel Gasienica
6145231936
Add background
and flatten
APIs
2014-09-30 17:58:57 -07:00
Lovell Fuller
513b07ddcf
Add hasAlpha attribute to metadata API
...
Provides internal sharp_image_has_alpha method
Hopefully this helps with #91
2014-09-30 13:35:42 +01:00
Lovell Fuller
1c79d6fb5d
Add support for greyscale conversion #43
2014-09-16 11:22:26 +01:00
Lovell Fuller
3699e61c20
Improve support for extension-less output filenames
2014-09-07 08:59:11 +01:00
Lovell Fuller
2820218609
Add format property to output info
...
Output format may be derived from input format
2014-09-04 11:38:05 +01:00
Lovell Fuller
eb3e739f7b
Expose libvips thread pool size
2014-09-03 19:52:03 +01:00