Lovell Fuller
2675b2265b
Ensure 16-bit input images embed onto alpha background
...
Support gamma correction of images with alpha channel
Favour shrink over affine when reducing by integral factor
2016-02-03 17:48:22 +00:00
Lovell Fuller
5c9c17f1f6
Switch from libvips' C to C++ binding
...
Requires upgrade to libvips 8.2.1
2016-02-03 17:48:22 +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
61b86744d7
Ensure 16-bit input images work with embed option #325
2015-12-23 20:46:49 +00:00
Lovell Fuller
32c4b9eff1
Allow SIMD vector unit to be toggled on/off #172
...
Currently defaults to off but future versions may default to on
2015-12-12 09:11:50 +00:00
Lovell Fuller
58e6368525
Ensure embedded ICC profiles output with perceptual intent #321
2015-12-06 20:24:17 +00:00
Lovell Fuller
8012733a52
Expose libvips+deps versions attribute
...
Add versions.json for Linux packaging
Bump vips-dev Windows version for latest libpng
2015-11-22 20:58:38 +00:00
Lovell Fuller
5febce7a59
Remove executable bit from test/* file permissions
2015-11-21 23:05:48 +00:00
Lovell Fuller
0ae619dfc5
Remove stray win32 library that was causing segfaults
...
Explicit int cast to prevent 'loss of precision' warnings
Remove unnecessary semver checking from I/O tests
2015-11-21 22:18:39 +00:00
Lovell Fuller
05dd191e17
Ensure 16-bit+alpha input images work with vips_premultiply #301
...
Improves SVG support as *magick serves these as 16-bit
Add automated tests for SVG and 16-bit+alpha PNG inputs
2015-11-21 20:21:34 +00:00
Andreas Lind
60b8b92630
Add support for .extract({left:...,top:...,width:...,height:...}).
2015-11-18 12:06:10 +01:00
Lovell Fuller
5842da22d8
Merge pull request #306 from dacarley/negate
...
Add negate operation to invert all pixel values.
2015-11-17 20:45:09 +00:00
David Carley
3af62446fc
Implements greyscale thresholding
2015-11-17 12:15:34 -06:00
David Carley
33a175eafb
Implements negation.
2015-11-17 10:18:59 -06:00
Lovell Fuller
84fd1caa46
Switch default interpolator to bicubic #289
...
Only use gaussian blur for non-linear interpolators
Improves performance of bilinear by ~15%
Add liborc to the packaged build to improve bicubic perf
Add examples of the various interpolation methods
Add bilinear vs bicubic to perf tests
2015-11-15 22:04:31 +00:00
Lovell Fuller
58d9e0fef7
Pre-extract rotate should not swap width/height #296
2015-11-11 22:34:30 +00:00
Brandon Aaron
25e5f27785
add corner gavity support
2015-10-27 15:10:10 -04:00
Brandon Aaron
79470d2e07
EXIF Orientation tags 2 and 4 were flipping instead of flopping
2015-10-16 15:41:40 -04:00
Lovell Fuller
692e2d4df4
Automate expected vs actual for blur/sharpen tests
2015-09-07 14:17:35 +01:00
Lovell Fuller
5b376364f5
Add test case for require-time libc++ segfault
2015-08-27 23:59:48 +01:00
Andreas Lind
faa515d969
crop: Permit specifying the gravity as a string.
...
Will be looked up in require('sharp').gravity.
2015-08-19 14:49:02 +02:00
Lovell Fuller
658a541f49
Add test case for enlarge+embed combo #243
2015-08-12 09:26:38 +01:00
Lovell Fuller
36ac8828f2
Gamma correction and premultiply do not mix
...
Skip premultiply for fast blur/sharpen
Automate gamma correction tests
2015-08-11 21:51:22 +01:00
Lovell Fuller
022a2b1ade
Ensure test coverage of overlayWith error paths
2015-07-15 09:37:25 +01:00
Lovell Fuller
d303703dc5
Allow override of EXIF Orientation tag #189
...
Clear Orientation when rotate/flip/flop are used
2015-07-13 20:00:33 +01: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
Lovell Fuller
321e0f2bfe
Add 'icc' raw profile data to metadata #129
2015-06-29 21:27:23 +01:00
Lovell Fuller
6ac47c1ef8
Add raw EXIF data to metadata response
...
Copy metadata input buffer to match pipeline
Prevents possible metadata segfault under load
2015-06-28 23:35:40 +01:00
Lovell Fuller
86490bedfb
Add 'clone' method to snapshot an instance
...
Cloned instances share a common input
Allows multiple output Streams to use a single input Stream
2015-06-28 14:21:02 +01:00
Lovell Fuller
1091be374e
Alpha compositing: support grey+alpha src and non-alpha dst
2015-06-02 14:51:08 +01:00
Lovell Fuller
e2c53b59ce
Tighten constructor and quality param checks #221
2015-06-01 14:48:57 +01:00
Lovell Fuller
f19b6c48ca
Skip normalise operation for images with one colour
...
It didn't play nicely with premultiplication
2015-06-01 14:21:02 +01:00
Lovell Fuller
d2a2654ace
Replace use of 'finally' in failing tests
2015-06-01 14:21:02 +01:00
Lovell Fuller
8832ae0bf9
Add private maxColourDistance for functional tests
...
Switch MSE-based tests to use it
Remove experimental MSE-based compare API
2015-06-01 14:21:02 +01:00
Daniel Gasienica
ef8db1eebf
Premultiply alpha channel to avoid dark artifacts during tranformation
...
Add `Sharp.compare(file1, file2, callback)` function for comparing images
using mean squared error (MSE). This is useful for unit tests.
See:
- https://github.com/jcupitt/libvips/issues/291
- http://entropymine.com/imageworsener/resizealpha/
2015-06-01 14:21:02 +01:00
Daniel Gasienica
64f7f1d662
Add experimental overlayWith
API
...
Composites an overlay image with alpha channel into the input image (which
must have alpha channel) using ‘over’ alpha compositing blend mode. This API
requires both images to have the same dimensions.
References:
- http://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending
- https://github.com/jcupitt/ruby-vips/issues/28#issuecomment-9014826
See #97 .
2015-06-01 14:21:01 +01:00
Lovell Fuller
b50fb53f27
Use image fingerprints in functional tests #122
2015-06-01 14:21:01 +01:00
Lovell Fuller
33782d3c83
Embed alpha image on non-transparent background #204
2015-04-29 20:14:45 +01:00
Lovell Fuller
fb1c9cf3d3
Less strict assert for unordered events
2015-04-21 13:57:24 +01:00
Lovell Fuller
21ba1dfc26
Wrap flapping event test in nextTick
2015-04-21 13:22:29 +01:00
Lovell Fuller
1e52c2dbe6
Windows compatibility #19
...
Hide WebP format and normalise option
Separate test runners for node and iojs
2015-04-21 12:13:19 +01:00
Lovell Fuller
46cc45c186
Fail fast for unknown interpolator
2015-04-20 11:22:21 +01:00
Bernhard K. Weisshuhn
8ac33aad69
avoid segfault with unknown interpolator
2015-04-20 00:24:03 +02:00
Lovell Fuller
a0655806de
No need to remove dzi file extension
...
libvips handles this - ensures filenames containing . work
2015-04-19 21:08:15 +01:00
Lovell Fuller
3614d14f83
A few small fixes to the test scripts
2015-04-19 16:15:40 +01:00
Lovell Fuller
f6fd45cc90
Expose libjpeg extension param features
...
Trellis quantisation, overshoot deringing and scan optimisation
2015-04-19 16:15:40 +01:00
Bernhard K. Weisshuhn
dce36e0074
Add normalize() for simple histogram stretching
...
Available as normalize() or normalise().
Normalization takes place in LAB place and thus should not change any
colors.
Existing alpha channels are preserved untouched by normalization.
2015-04-18 12:55:04 +02:00
Alaric Holloway
f72435c750
Support resize without preserving aspect ratio #118
2015-04-16 06:50:47 -07:00
Lovell Fuller
ae968142ee
Soften limitInputPixels upper limit #146
...
Default limit of 14-bit dimensions remains
2015-04-12 14:23:36 +01:00
Lovell Fuller
f1ad1216ca
Add support for Windows #19
...
Requires VIPS_HOME environment variable
2015-04-05 22:42:14 +01:00