mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
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
12 lines
324 B
JavaScript
12 lines
324 B
JavaScript
'use strict';
|
|
|
|
['nearest', 'bilinear', 'bicubic', 'vsqbs', 'lbb', 'nohalo'].forEach(function(interpolator) {
|
|
require('../../')('21978966091_b421afe866_o.jpg')
|
|
.resize(480, 320)
|
|
.interpolateWith(interpolator)
|
|
.quality(95)
|
|
.toFile(interpolator + '.jpg', function(err) {
|
|
if (err) throw err;
|
|
});
|
|
});
|