Lovell Fuller
4f9f8179a6
Linter: apply all recommended biome settings
...
Enforces previously-skipped useArrowFunction check
2025-11-04 09:41:45 +00:00
Lovell Fuller
1f2f33d9a7
Ensure licensing headers are retained by code bundlers
2025-10-31 11:52:41 +00:00
Lovell Fuller
f2978651f0
Migrate from mocha to Node.js native test runner
...
Includes coverage reports when using Node.js 22 onwards
2025-09-21 12:03:27 +01:00
Lovell Fuller
b36237ddcb
Switch linter from semistandard to biome
...
Uses the recommended rules apart from complexity/useArrowFunction,
which would affect about 1700 lines of code with little benefit
right now. This is something that can be addressed over time.
2025-09-18 21:18:31 +01:00
Lovell Fuller
a41c62be2b
Upgrade semistandard, appease new linter rules
2023-09-26 21:25:15 +01:00
Lovell Fuller
6c61ad256f
Ensure all source code files contain SPDX licence
2023-02-28 17:01:58 +00: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
Blayne Chard
a333b87f5d
Prevent upsampling via libwebp ( #3267 )
2022-06-20 10:49:53 +01:00
Kleis Auke Wolthuizen
83db5f8a2a
Ensure withoutReduction does not interfere with contain/crop/embed ( #3081 )
2022-02-08 21:22:23 +00:00
Kleis Auke Wolthuizen
7eb5efa3a3
Update tests and comments after 7faacd9 ( #3080 )
2022-02-08 21:12:38 +00:00
Lovell Fuller
2b01951306
Skip JPEG shrink-on-load for known rounding errors #3066
...
Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl>
2022-02-03 21:19:48 +00:00
Chris Banks
446e4e3c3a
Add withoutReduction option to resize operation ( #3006 )
2021-12-12 19:10:56 +00:00
Lovell Fuller
b33231d4bd
Ensure correct dimensions when contain 1px image #2951
2021-11-07 16:35:30 +00:00
Lovell Fuller
ed5d753b89
Skip shrink-on-load where one dimension <4px #2653
2021-04-07 21:26:16 +01:00
Brychan
403160434b
Correctly bind max width and height values when using withoutEnlargement ( #2024 )
2020-01-07 12:10:35 +00:00
Lovell Fuller
69fe21a7ec
Ensure invalid resize width/height as options throw #1817
2019-08-16 21:21:12 +01:00
Lovell Fuller
7c631c0787
Ensure shortest resized edge is >= 1px #1003
2019-01-03 12:01:55 +00:00
Daiz
1fa388370e
Add support for the "mitchell" kernel for image reductions ( #1438 )
2018-10-28 15:11:27 +00:00
Lovell Fuller
c3274e480b
Deprecate crop, embed, ignoreAspectRatio, max, min, withoutEnlargement.
...
These become options of the resize operation instead. #1135
2018-09-30 20:16:27 +01:00
Lovell Fuller
da0b0348a2
Prevent rounding err with shrink-on-load and 90/270 rot #1241
2018-06-19 21:19:34 +01:00
Lovell Fuller
8e74668e3c
Update linter plus related spacing fixes
2018-01-05 10:18:08 +00:00
Lovell Fuller
2a18b9a8f7
Remove centreSampling option, update some expected test fixtures
...
See https://github.com/jcupitt/libvips/issues/705
2017-11-26 13:49:56 +00:00
Lovell Fuller
3c88c84998
Doc refresh, changelog and dead code removal for #977
2017-10-19 11:05:43 +01:00
Jarda Kotěšovec
d0f66c3734
Switch to libvips' resize, make fastShrinkOnLoad optional ( #977 )
2017-10-19 11:05:43 +01:00
Lovell Fuller
f42a1ceab7
Recalculate residual after adjusting shrink #831
2017-05-30 20:22:15 +01:00
Lovell Fuller
9e39a7fa95
Correct shrink calc, regression introduced in e398b47 #831
2017-05-30 17:16:41 +01:00
Lovell Fuller
2f534dc01c
Base maximum output dimensions on limitation of format
2017-05-04 23:20:37 +01:00
Lovell Fuller
70a3d4fb5e
Improve error messages for invalid resize parameters
...
Dependency version bumps and doc refresh
2017-01-05 22:17:04 +00:00
Lovell Fuller
9911863441
Expose libvips centre option, mimics *magick +0.5px convention
2016-11-04 18:17:33 +00:00
Lovell Fuller
8717ecc429
Modularise JS source in 'lib' subdirectory.
...
Generate public API documention via jsdoc comments.
2016-11-02 09:25:20 +00:00
Lovell Fuller
cbdbbe535a
Update tests to meet semistandard code standards
...
Switch to const/let instead of var
2016-11-02 09:25:20 +00:00
Lovell Fuller
9ddc817a09
Add WebP availability check to test added in a5bd68e
2016-07-21 15:55:34 +01:00
Lovell Fuller
a5bd68ef8c
Recalc after WebP shrink-on-load to avoid rounding errors #508
2016-07-21 15:18:14 +01:00
Lovell Fuller
2a56de69cc
Add Alpine Linux packaging test #354
...
Requires libvips cache to be disabled for tests
Skip tiff/magick tests when format unavailable
2016-02-11 18:30:50 +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
5febce7a59
Remove executable bit from test/* file permissions
2015-11-21 23:05:48 +00:00
Lovell Fuller
b8885c1faa
Auto-width and height calcs now round instead of floor
...
I think this will better match people's expectations
2015-07-03 15:21:28 +01:00
Alaric Holloway
f72435c750
Support resize without preserving aspect ratio #118
2015-04-16 06:50:47 -07:00
Linus Unnebäck
bcd82f4893
feature: min
2015-02-27 13:50:52 +01:00
Lovell Fuller
464fb1726d
Keep output dimensions within WebP 14-bit range
2015-01-16 22:28:24 +00:00
Lovell Fuller
e465306d97
Disable libvips cache for unit tests
...
Aids memory leak detection
2014-11-11 18:09:48 +00:00
Lovell Fuller
6cade5bd7f
Increase unit test coverage to ~95%
2014-10-21 12:22:23 +01:00
Lovell Fuller
ca561daedf
Test code refactor #63
...
Use mocha for feature-specific unit tests
Add test coverage report via istanbul
2014-10-20 15:32:56 +01:00