mirror of
https://github.com/lovell/sharp.git
synced 2025-07-11 19:40:14 +02:00
Remove experimental code that could prevent anti-alias filter
This commit is contained in:
parent
5febce7a59
commit
8a3098604c
@ -63,7 +63,7 @@
|
||||
"mocha": "^2.3.4",
|
||||
"mocha-jshint": "^2.2.5",
|
||||
"node-cpplint": "^0.4.0",
|
||||
"rimraf": "^2.4.3",
|
||||
"rimraf": "^2.4.4",
|
||||
"bufferutil": "^1.2.1"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
|
@ -549,10 +549,8 @@ class PipelineWorker : public AsyncWorker {
|
||||
vips_object_local(hook, interpolator);
|
||||
// Use average of x and y residuals to compute sigma for Gaussian blur
|
||||
double residual = (xresidual + yresidual) / 2.0;
|
||||
// Apply Gaussian blur before large affine reductions with non-linear interpolators
|
||||
if (residual < 1.0 && (
|
||||
baton->interpolator == "bicubic" || baton->interpolator == "lbb" || baton->interpolator == "nohalo"
|
||||
)) {
|
||||
// Apply Gaussian blur before large affine reductions
|
||||
if (residual < 1.0) {
|
||||
// Calculate standard deviation
|
||||
double sigma = ((1.0 / residual) - 0.4) / 3.0;
|
||||
if (sigma >= 0.3) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user