Lovell Fuller
430a4297aa
Add support for prebuilt sharp binaries on common platforms
2018-03-04 14:33:44 +00:00
Oskar Thornblad
69e3ab02c4
Mention EXIF orientation in metadata's jsdocs ( #1142 )
2018-03-04 14:19:53 +00:00
Lovell Fuller
8b80626035
Changelog, credit and doc refresh for #1121
2018-02-18 19:14:37 +00:00
Andrea Bianco
f86ae79fdb
Expose angle option in tile feature ( #1121 )
2018-02-18 20:00:08 +01:00
Marcel
d599d1f29e
Expose linear transform feature of libvips ( #1024 )
2018-02-04 10:36:04 +00:00
Tony Mobily
573836e2b8
Add mention of max() to preserve ratio in withoutEnlargement ( #1077 )
2018-01-13 09:59:59 +00:00
Oleg Aleynik
c4df115948
Expose IPTC and XMP metadata when available ( #1079 )
2018-01-10 22:12:11 +00:00
Lovell Fuller
8e74668e3c
Update linter plus related spacing fixes
2018-01-05 10:18:08 +00:00
Lovell Fuller
9fa04a0b93
Attach event listener to clone only for Stream #995
2017-12-12 21:53:27 +00:00
Kenric D'Souza
927b77700d
Add gravity support to embed feature ( #1038 )
2017-12-12 19:29:16 +00:00
Lovell Fuller
1d7a0ea99e
Changelog and doc refresh for #915
2017-12-09 13:14:23 +00:00
Rahul Nanwani
d6aee8e5ba
Add pixel-derived image statistics via vips_stats ( #915 )
2017-12-09 11:17:48 +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
7067beda99
Docs refresh for cropOffsetLeft/cropOffsetTop
2017-11-25 11:24:53 +00:00
Lovell Fuller
ba521fccb4
Replace caw with its tunnel-agent dependency
2017-11-07 19:38:10 +00:00
Lovell Fuller
965a97105e
Default TIFF predictor to horizontal to match libvips' behaviour
2017-10-19 19:40:07 +01: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
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
99076edc89
Default PNG output to adaptiveFiltering=false, compressionLevel=9
...
PNG is mostly used for logos and line art, so these defaults will
produce the smallest files for most output most of the time.
2017-10-19 11:05:43 +01:00
Lovell Fuller
7b6c80327e
Verify platform of vendor binaries at install and run time
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
Aditya Bharti
aad16ac50d
Improved jsdocs for withoutEnlargement and sequentialRead #972 ( #992 )
2017-10-15 09:28:08 +01:00
Mika Fischer
eca0e66e23
Remove use of dynamic require to facilitate bundling ( #960 )
2017-09-25 21:00:40 +01:00
Mario Viens
5f29d1ba9c
Clarifying cache documentation ( #919 )
2017-08-19 10:43:36 +01:00
Yves Bos
d8765f955d
Allow xres and yres to be set for TIFF output ( #828 )
2017-06-03 10:52:09 +01:00
Lovell Fuller
361ed98353
Remove previously-deprecated output format 'option' functions
2017-05-23 21:57:05 +01:00
Lovell Fuller
d45f8ef2d3
Document the cache-free nature of metadata extraction #796
2017-05-23 21:24:29 +01:00
Lovell Fuller
d6a63d11d7
Docs refresh
2017-05-22 21:49:37 +01:00
jingsam
4c6804eadc
Add toFormat 'jpg' alias for 'jpeg' ( #814 )
2017-05-22 12:59:43 +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
95850d75f6
Include pixel format depth when reading metadata
2017-05-07 09:29:38 +01:00
Lovell Fuller
c41d755441
Ctor single arg: allow plain object, reject null/undefined
...
Thank you @kub1x
2017-05-06 19:03:14 +01:00
Lovell Fuller
2f534dc01c
Base maximum output dimensions on limitation of format
2017-05-04 23:20:37 +01:00
Lovell Fuller
c8e59f08ec
Add support for Buffer and Stream-based TIFF output
2017-05-04 16:40:49 +01:00
Lovell Fuller
19dd6a997f
Doc refresh, thank you @cspotcode
2017-05-01 09:34:10 +01:00
Lovell Fuller
52bea15ad7
Upgrade libvips dependency to v8.5.4, plus other bumps
2017-04-26 23:04:08 +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
301bfbd271
Expose libvips warnings via NODE_DEBUG env var
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
Andreas Lind
9707f8c5d2
Add support for passing the crop strategy as a string ( #735 )
2017-03-16 14:27:09 +00:00
Alice Monday
72f69dda30
Add support for the "nearest" kernel for image reductions ( #732 )
2017-03-14 10:29:23 +00:00
Lovell Fuller
1aa053ce6f
Create blank image (width, height, channels, background) #470
2017-03-11 11:46:01 +00:00
Lovell Fuller
701b1c4216
Document overlayWith image density parameter #729
2017-03-10 22:59:46 +00:00
Lovell Fuller
6fe5b307b1
Allow toBuffer to resolve Promise with info+data #143
2017-03-04 22:15:31 +00:00
Lovell Fuller
d8df503404
Ensure Readable can start flowing after Writable finish #671
2017-01-22 14:03:06 +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
473055468a
Docs: ensure alpha attribute is used for transparency
2017-01-13 21:24:57 +00:00