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
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
08b4242efe
Ensure autoOrient occurs before non-90 rotation #4425
...
- Separate orient vs rotate ordering logic
- Simplify EXIF auto-orient by using only rotate and/or flop
2025-07-21 16:10:37 +01:00
Lovell Fuller
9392b8702b
Add Magic Kernel Sharp (no relation) to resizing kernels
2025-06-15 12:53:10 +01:00
Lovell Fuller
73bec629cf
Docs: website already hosts images, no need to use jsdelivr
2025-05-05 13:20:49 +01:00
Kleis Auke Wolthuizen
a642767329
Docs: update path to api-resize-fit.svg ( #4368 )
2025-04-08 10:15:29 +01:00
Don Denton
14c83e1f4c
Add autoOrient operation and constructor option #4144
2025-01-17 11:09:59 +00:00
Lovell Fuller
7bdf419eb1
Upgrade to libvips v8.16.0
2024-11-04 18:10:35 +00:00
Lovell Fuller
807d9241bd
Bump/replace devDeps
...
Add required 'module' JSDoc tag to all exports
2024-09-06 13:17:33 +01:00
Lovell Fuller
6257994746
Expose bilinear resize kernel and improve docs #4061
2024-04-09 22:21:52 +01:00
Lovell Fuller
0bd1715f36
Options for trim op must be an Object, add lineArt #2363
2023-11-04 14:09:50 +00:00
Lovell Fuller
9161c605e1
Clarify extract-resize-extract operation ordering
2023-10-03 19:28:18 +01:00
Kleis Auke Wolthuizen
f908987f35
Docs: use SVG image for the resize fit property example ( #3735 )
2023-07-21 21:58:02 +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
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
9f79f80a93
Docs: fastShrinkOnLoad can round-down when auto-scaling
2023-01-16 12:06:50 +00:00
Lovell Fuller
e8273580af
Docs: add note about use of fastShrinkOnLoad with resize kernel
2023-01-06 19:24:32 +00:00
Lovell Fuller
efbb0c22fd
Docs: add image with examples of resize fit property
2022-12-21 15:47:39 +00:00
Peter Whidden
76cda885fb
Docs: fix minor typo in resize properties ( #3444 )
2022-11-09 08:44:05 +00:00
Gino Emiliozzi
ae79d26ead
Docs: help clarify 'fit' is option name, not value ( #3410 )
2022-10-17 15:26:59 +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
fbd4970b57
Ensure auto-rotation works with shrink-on-load #3352
...
Fixes regression in 0.31.0
2022-09-07 14:17:40 +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
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
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
Oleg Andreyev
f903e1465e
Docs: clarify wording of resize background option
2022-06-08 12:56:29 +01:00
Chris Banks
446e4e3c3a
Add withoutReduction option to resize operation ( #3006 )
2021-12-12 19:10:56 +00:00
Lovell Fuller
6147491d9e
Extend: default missing edge props to zero #2578
2021-03-25 16:34:02 +00:00
Adam Coster
260ff6c94f
Docs: clarify response object description for trim ( #2400 )
2020-10-06 17:08:32 +01:00
Lovell Fuller
0ee08bfe46
Docs: lint JSDoc annotations when building docs
2020-05-15 14:07:27 +01:00
Lovell Fuller
1d6ef630a5
Docs: extract might also be referred to as 'crop'
2020-04-14 21:24:26 +01:00
Lovell Fuller
c9bff94e17
Docs: expand descriptions of resize cover/contain
2020-03-14 21:34:48 +00:00
Lovell Fuller
258c9e86eb
Improve docs relating to single-channel raw pixel output
2020-03-01 14:22:49 +00:00
Lovell Fuller
e9b21f2211
Ensure correct ordering of rotate-then-trim ops #2087
2020-02-23 16:59:22 +00:00
Lovell Fuller
703d90e663
Docs: add example of using metadata and resize to scale
2019-12-16 21:15:49 +00:00
Lovell Fuller
c41b87303d
Ensure trim op supports image-in-alpha #1597
2019-11-14 11:29:45 +00:00
Lovell Fuller
efb3523eaa
Remove duplicate validation from resize background
2019-10-26 23:13:12 +01:00
Lovell Fuller
69fe21a7ec
Ensure invalid resize width/height as options throw #1817
2019-08-16 21:21:12 +01:00
Lovell Fuller
da4e05c118
Better validation and test coverage for background colours
2019-08-16 20:37:17 +01:00
Ilya Ovdin
690bc43abe
Fix rotate/extract ordering for non-90 angles ( #1755 )
2019-07-26 20:28:45 +01:00
Lovell Fuller
233b015d77
Improve consistency of validation error handling
...
Utilises common path of existing invalidParameterError
2019-07-26 14:58:54 +01:00
Lovell Fuller
6032171f91
Docs: clarify use of integral pixel values for extract
2019-04-01 20:06:46 +01:00
Lovell Fuller
e3549ba28c
Remove functions previously deprecated in v0.21.0
...
background, crop, embed, ignoreAspectRatio, max, min, withoutEnlargement
2019-03-01 23:43:35 +00:00
Jack Cross
2262959673
Docs: add missing comma to extend example ( #1588 )
2019-02-27 11:03:02 +00:00
Julian Aubourg
383b933e26
Build prototype with Object.assign to allow minification ( #1475 )
2018-11-26 19:40:06 +01:00
Lovell Fuller
9dc6492e52
Docs: correct code example in extend operation
2018-11-19 19:34:16 +00:00