Nathan Graves
b154cd0418
Add support for page selection with multi-page TIFF input ( #1204 )
2018-04-24 22:57:27 +01:00
Rik Heywood
dbac4b9a63
Add tint operation to set image chroma
2018-04-11 20:05:48 +01:00
Andrea Bianco
875937e3d8
Expose libvips' median filter operation ( #1161 )
2018-03-17 10:52:44 +00:00
Marcel
d599d1f29e
Expose linear transform feature of libvips ( #1024 )
2018-02-04 10:36:04 +00:00
Oleg Aleynik
c4df115948
Expose IPTC and XMP metadata when available ( #1079 )
2018-01-10 22:12:11 +00:00
Kenric D'Souza
927b77700d
Add gravity support to embed feature ( #1038 )
2017-12-12 19:29:16 +00:00
Rahul Nanwani
d6aee8e5ba
Add pixel-derived image statistics via vips_stats ( #915 )
2017-12-09 11:17:48 +00:00
Lovell Fuller
8fe3b59efe
Update test fixtures for e9b7231ac0
2017-12-08 17:54:39 +00:00
Lovell Fuller
929ea10f76
Re-enable test for 1200 DPI SVG rasterisation to PNG
2017-11-27 19:31:31 +00:00
Lovell Fuller
efd2e893cf
Ensure expected fixtures match libvips v8.6.0 behaviour
2017-11-27 19:13:39 +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
Jarda Kotěšovec
d0f66c3734
Switch to libvips' resize, make fastShrinkOnLoad optional ( #977 )
2017-10-19 11:05:43 +01:00
Matthew McEachen
b4d72bd544
Add failOnError option to fail-fast on bad input image data ( #976 )
2017-10-19 11:05:43 +01:00
Lovell Fuller
57946ed672
Upgrade to libvips v8.6.0
...
Expose offset coordinates of strategy-based crop
Switch to Github releases for prebuilt libvips
Move packaging scripts to lovell/sharp-libvips repo
2017-10-19 11:05:43 +01:00
Kleis Auke Wolthuizen
e0d622d347
Skip shrink-on-load when trimming ( #887 ) ( #888 )
2017-07-28 21:02:30 +01:00
Lovell Fuller
49297d6afb
Ensure flip and flop operations work with auto-rotate #837
2017-06-19 23:42:26 +01:00
Lovell Fuller
f42a1ceab7
Recalculate residual after adjusting shrink #831
2017-05-30 20:22:15 +01:00
Nicolas Coden
99810c0311
Add support for any rotation angle ( #791 )
...
Allow to provide any positive or negative multiple of 90 to `.rotate(...)`.
Negative angles and angles above 360 are converted to valid 0/90/180/270
rotations (0 rotations are still ignored).
Changes:
- [Node] Add `useExifOrientation` internal variable to know if the Exif
orientation must be used instead of the provided angle. This allows to save a
negative angle in the `angle` option, because the `-1` special case is not
needed.
- [Node] Change check for planed-rotation in extract, to prepare a
rotation before extraction: check with both `angle` and `useExifOrientation`
options.
I think this check contains a bit too much logics on rotation options. Maybe
we could move this condition to a dedicated function.
- [C++] Separate `CalculateRotationAndFlip` into two generic functions:
- `CalculateExifRotationAndFlip`: Calculate the angle of rotation and
need-to-flip for the given Exif orientation.
- `CalculateAngleRotation`: Calculate the rotation for the given angle.
One or the other function is used to calculate the rotation, depending on
wether the Exif orientation tag or the provided angle must be used.
- Add unit tests for `-3690`, `-450`, `-90`, `90`, `450`, `3690` and `-3780`,
`-540`, `0`, `180`, `540`, `3780` rotations
- Add `320x240` fixture image for tests.
Unrelated changes (squashed):
- Add ncoden to the list of contributors
2017-05-22 11:08:33 +01:00
Lovell Fuller
e398b471e1
Prevent aliasing by using dynamic values for shrink(-on-load)
2017-05-13 18:46:39 +01:00
Lovell Fuller
36078f9903
Switch to the libvips crop strategy implementations
2017-05-06 14:46:28 +01:00
Lovell Fuller
1169afbe90
Avoid (un)premultiplication for overlay image without alpha channel
...
Add 'premultiplied' boolean attribute to output info, helps test
2017-04-26 21:37:43 +01:00
Lovell Fuller
46aec7eabc
Upgrade libvips dependency and packaging to v8.5.1
2017-04-26 21:37:43 +01:00
YvesBos
4cd3b66761
Add support for squashing TIFF output to 1-bit ( #783 )
2017-04-26 17:47:29 +01:00
Lovell Fuller
27fb864ac4
Update dev deps, deconstify all the functions, API doc refresh
2017-03-31 21:42:23 +01:00
Kristo Jorgenson
f8e72f443d
Expose TIFF compression and predictor options ( #738 )
2017-03-29 12:12:04 +01:00
Lovell Fuller
1aa053ce6f
Create blank image (width, height, channels, background) #470
2017-03-11 11:46:01 +00:00
Rahul Nanwani
a1b8efe721
Expose WebP alpha quality, lossless and near-lossless output options ( #685 )
2017-01-19 13:45:32 +00:00
Lovell Fuller
d2455267a8
Allow non-RGB input to embed/extend onto bg with alpha #646
2016-12-11 16:01:21 +00:00
Lovell Fuller
d3c78f825c
Ensure premultiply op occurs before box shrink #605
2016-12-04 18:25:44 +00:00
Patrick Paskaris
6ccccf8c39
Allow use of extend with greyscale input ( #623 )
2016-11-14 22:09:43 +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
36e636dca1
Drop support for versions of Node prior to v4.
...
Reduce production (sub)depedency count from 93 to 50.
Modernise dev tooling, e.g. use nyc, replace jshint with semistandard.
Make 'npm test' command consistent across platforms.
2016-11-02 09:25:20 +00:00
Lovell Fuller
eb30f6ceff
Upgrade libvips to v8.4.2
...
Improved EXIF orientation and GIF alpha channel support
2016-11-02 09:25:20 +00:00
Lovell Fuller
18b9991fe7
Add experimental 'attention' crop strategy
2016-10-12 11:18:58 +01:00
Lovell Fuller
28ce33feb3
Fix y-axis calc when overlaying at fixed point #566
2016-09-16 11:20:08 +01:00
Lovell Fuller
af9d09f8ae
Ensure conv kernel scale is clamped to min val of 1 #561
2016-09-03 20:06:49 +01:00
Matt Hirsch
5c5d74a903
Add joinChannel and toColourspace/toColorspace operations ( #513 )
2016-08-17 15:42:05 +01:00
Matt Hirsch
d17e8d3450
Add boolean feature for bitwise image operations ( #501 )
2016-07-11 09:51:43 +01:00
Matt Hirsch
83d8847f57
Add extractChannel operation to extract a channel from an image ( #497 )
2016-07-09 16:48:30 +01:00
Matt Hirsch
f672f86b53
Add ability to read and write native vips .v files ( #500 )
2016-07-09 16:21:16 +01:00
Kleis Auke Wolthuizen
b69627891d
Add trim operation to remove "boring" edges ( #491 #492 )
2016-07-08 22:19:10 +01:00
Matt Hirsch
65b7f7d7d5
Add bandbool feature for channel-wise boolean operations ( #496 )
2016-07-07 21:03:49 +01:00
Rahul Nanwani
278273b5c3
Add top/left offset support to overlayWith operation ( #473 )
2016-07-05 10:12:02 +01:00
Lovell Fuller
4c172d25f6
Allow images with alpha channel to use LAB sharpen #490
2016-07-04 21:33:44 +01:00
Matt Hirsch
b70a7d9a3b
Add convolve operation for kernel-based convolution ( #479 )
2016-07-04 20:48:00 +01:00
Matt Hirsch
85f20c6e1b
Add greyscale option to threshold operation ( #480 )
2016-07-03 19:32:07 +01:00
Kleis Auke Wolthuizen
2e9cd83ed2
Add support for clipping/cutting out ( #435 ) ( #448 )
...
USAGE: overlayWith('overlayimage.png', { cutout: true } )
2016-06-25 16:48:01 +01:00
Lovell Fuller
f1ead06645
Update test expectations/thresholds previously failing on OS X.
...
Remove Node v5 from CI builds.
2016-06-14 22:25:27 +01:00
Lovell Fuller
7d261a147d
Ensure scaling factors are calculated independently #452
...
Fixes bug introduced in v0.15.0 where, if the shrink operation
rounded up along one dimension, it could then also round up the
reduce operation on the same axis, creating a small stretch effect.
2016-06-13 23:03:45 +01:00
lemnisk8
62554b766f
Add support for repeated/tiled overlay image ( #443 )
...
USAGE: overlayWith('overlayimage.png', { tile: true, gravity: northwest} )
When using the tile option, the gravity option is applied to the extracted part of the tiled overlay image.
2016-05-26 16:42:17 +01:00