Ingvar Stepanyan
ac0dc10bd5
Tests: convert mocha hooks ( #3450 )
2022-11-15 08:58:09 +00:00
Lovell Fuller
5740f4545e
Expose GIF opts: interFrameMaxError, interPaletteMaxError #3401
2022-11-14 16:09:52 +00:00
Lovell Fuller
a9d692fb43
Reduce chance of race condition in test for... race condition
2022-11-13 10:16:47 +00:00
Lovell Fuller
df971207b8
Prevent possible race condition when reading metadata #3451
2022-11-13 10:04:55 +00:00
Ingvar Stepanyan
1a563360c6
Fix errors for missing OpenJPEG ( #3442 )
...
Fixes couple of minor issues with JP2 errors:
1. The tests passed as false-positives even if regex is changed to arbitary pattern, because the promise returned from `assert.rejects` was ignored and the test ended prematurely. This is fixed by removing `{ ... }` around the test function body.
2. This, in turn, hid an issue with `toFile` not throwing the expected error message which was instead propagating `Error: VipsOperation: class "jp2ksave" not found` from libvips. This is now fixed by manually checking the extension before calling into libvips.
3. Pre-creating error instances like `errJp2Save` did is sometimes tempting, but is problematic for debugging because it hides the actual stacktrace of the error (the stacktrace is collected at the moment of `new Error` creation). This is now turned into a function that creates error with the right stack.
2022-11-08 19:53:14 +00:00
Lovell Fuller
b3c3290f90
Upgrade to libvips v8.13.3
2022-11-03 14:09:23 +00:00
Lovell Fuller
5b0fba4c01
Ensure auto-rotate always works without resize #3422
2022-11-02 13:59:34 +00:00
Lovell Fuller
eacb8337fa
Ensure manual flip, rotate, resize op order #3391
2022-10-01 11:55:29 +01:00
Lovell Fuller
1b0eb6ab53
Tests: add assertion to existing scenario #3357
2022-09-29 14:21:37 +01:00
Lovell Fuller
2d49f0e93e
Tests: require 100% branch coverage to pass
...
Remove old coverage tooling, coveralls
2022-09-27 13:49:42 +01:00
Lovell Fuller
d1004eed02
Ensure greyscale images can be trimmed #3386
2022-09-26 10:15:25 +01:00
Lovell Fuller
32aa3b4b20
Tests: bump/pin benchmark dependencies
2022-09-19 16:21:24 +01:00
Lovell Fuller
df24b30755
Tests: add tfjs to benchmark tests
2022-09-19 16:20:23 +01:00
Lovell Fuller
4de74bea94
Tests: remove assertions from benchmark code
2022-09-19 16:09:31 +01:00
Lovell Fuller
28b87db760
Ensure AVIF output is always 8-bit #3358
2022-09-14 13:33:47 +01:00
Lovell Fuller
fbd4970b57
Ensure auto-rotation works with shrink-on-load #3352
...
Fixes regression in 0.31.0
2022-09-07 14:17:40 +01:00
Marcos Casagrande
eee0dd36d9
Ensure limitInputPixels uses uint64 ( #3349 )
2022-09-06 09:05:51 +01:00
Lovell Fuller
c1393daa70
Expose unlimited option for HEIF input
2022-09-05 09:19:53 +01:00
Lovell Fuller
5cdb2b83d5
Upgrade to libvips v8.13.1
2022-09-04 12:42:27 +01:00
Lovell Fuller
1eb66c0944
Tests: relax truncated PNG test assertion
2022-09-04 11:19:01 +01:00
Lovell Fuller
55c4d8807c
Improve normalise op with use of histogram #200
2022-09-04 10:31:43 +01:00
Lovell Fuller
9a54a034e1
Tests: ensure truncated PNG test handles possible race
2022-09-04 10:28:24 +01:00
Lovell Fuller
953a94885b
Tests: run benchmarks in container via Docker
2022-09-01 14:58:39 +01:00
Lovell Fuller
8583eb1235
Tests: update leak suppressions for latest versions
2022-08-23 12:32:39 +01:00
Mart
c3a852eecf
Add trim option to provide a specific background colour ( #3332 )
...
Co-authored-by: Mart Jansink <mart@cinemait.nl>
2022-08-23 12:28:02 +01:00
Lovell Fuller
3a44748f49
Ensure PNG bitdepth can be set for non-palette output #3322
2022-08-22 14:57:12 +01:00
Lovell Fuller
a618ce7a15
Ensure image is unpremultiplied before composite #3334
2022-08-21 17:51:05 +01:00
Anton Marsden
74e3f73934
Expand linear operation to allow use of per-channel arrays #3303
2022-08-20 10:27:04 +01:00
Lovell Fuller
212a6e7519
Ensure op ordering is respected where possible #3319
...
Emit warnings when previous ops might be ignored
Flip and flop now occur before rotate, if any
2022-08-18 16:41:33 +01:00
brahima
ea7cf2a2ef
Expose vips_text to create an image containing rendered text ( #3252 )
2022-07-25 11:32:10 +01:00
Lovell Fuller
76c4c51e2a
Remove previously-deprecated reductionEffort and speed options
2022-07-24 11:18:16 +01:00
Lovell Fuller
b46ab510da
Add Buffer and Stream support to tile output #2238
2022-07-24 11:06:41 +01:00
Lovell Fuller
f1e640d231
Tests: catch potential failures during tile unzip
2022-07-14 11:13:59 +01:00
Lovell Fuller
6288c7bced
Expose reoptimise palette option for GIF output
2022-07-12 21:12:31 +01:00
Lovell Fuller
d247c02762
Add mixed and minSize animation options for WebP output
2022-07-12 14:51:03 +01:00
Lovell Fuller
905518fab0
Add input fileSuffix and output alias to format #2642
2022-07-11 10:45:19 +01:00
Lovell Fuller
cbf741cac7
Ensure trim is no-op when it would reduce to nothing #3223
2022-07-08 21:06:58 +01:00
Lovell Fuller
e0d3c6e05d
Use bounding box of alpha+non-alpha for trim op #2166
2022-07-05 18:19:17 +01: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
Blayne Chard
a333b87f5d
Prevent upsampling via libwebp ( #3267 )
2022-06-20 10:49:53 +01:00
AlexanderTheGrey
4662527a17
Allow WebP encoding effort of 0 ( #3261 )
2022-06-17 08:22:51 +01:00
Lovell Fuller
a75718565c
Ensure composite can tile with outside resize #3227
2022-06-08 12:39:00 +01:00
Lovell Fuller
a0568ec0c3
Allow values for limitInputPixels larger than 32-bit #3238
2022-05-28 08:35:17 +01:00
jakob0fischl
54d9dc46f5
Fix rotate-then-extract for EXIF orientation 2 ( #3218 )
2022-05-15 12:26:57 +01:00
Joona Heinikoski
51b4a7c564
Add support for --libc flag to improve cross-platform install ( #3160 )
...
This deprecates the libc-as-suffix approach of --platform=linuxmusl
2022-04-28 11:24:45 +01:00
Chris Hranj
9deac83322
Add missing file name to 'Input file is missing' error message ( #3178 )
2022-04-05 11:35:01 +01:00
Lovell Fuller
5d36f5f699
Improve error message for SVG render above limit #3167
2022-04-04 14:20:04 +01:00
Lovell Fuller
926572b41e
Control sensitivity to invalid images via failOn
...
Deprecates failOnError, equivalent to failOn=warning
2022-04-04 12:27:45 +01:00
codepage949
c3a0d5f5d0
Add support for TypedArray input with byteOffset and length
2022-03-27 20:18:58 +01:00
Lovell Fuller
1d36936954
Ensure create has correct bit depth and colourspace #3139
2022-03-22 19:48:02 +00:00