refactor(vips)

This commit is contained in:
Tomas Aparicio 2015-05-05 20:28:39 +02:00
parent 5d13fba8be
commit a29fa25dfc
4 changed files with 22 additions and 9 deletions

View file

@ -72,6 +72,8 @@ func Resize(buf []byte, o Options) ([]byte, error) {
residual = float64(shrink) / factor
}
debug("Test %s, %s, %s", shrink, residual, factor)
// Zoom image if necessary
image, err = zoomImage(image, o.Zoom)
if err != nil {