Merge pull request #216 from Bynder/master

Remove go-debug usage
This commit is contained in:
Tomás 2017-12-22 19:55:16 +01:00 committed by GitHub
commit cd21e84c71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 1 additions and 450 deletions

View file

@ -29,8 +29,6 @@ func resizer(buf []byte, o Options) ([]byte, error) {
return nil, errors.New("Unsupported image output type")
}
debug("Options: %#v", o)
// Auto rotate image based on EXIF orientation header
image, rotated, err := rotateAndFlipImage(image, o)
if err != nil {
@ -224,9 +222,6 @@ func transformImage(image *C.VipsImage, o Options, shrink int, residual float64)
return nil, err
}
debug("Transform: shrink=%v, residual=%v, interpolator=%v",
shrink, residual, o.Interpolator.String())
return image, nil
}
@ -247,9 +242,6 @@ func applyEffects(image *C.VipsImage, o Options) (*C.VipsImage, error) {
}
}
debug("Effects: gaussSigma=%v, gaussMinAmpl=%v, sharpenRadius=%v",
o.GaussianBlur.Sigma, o.GaussianBlur.MinAmpl, o.Sharpen.Radius)
return image, nil
}