fix(vips): memory inconsistency

This commit is contained in:
Tomas Aparicio 2015-04-07 11:25:54 +02:00
parent bc88532806
commit 34dda8c57c
6 changed files with 51 additions and 8 deletions

View file

@ -227,6 +227,7 @@ func imageCalculations(o Options, inWidth, inHeight int) float64 {
factor := 1.0
xfactor := float64(inWidth) / float64(o.Width)
yfactor := float64(inHeight) / float64(o.Height)
defer debug("Image calculations: %dx%d", o.Width, o.Height)
switch {
// Fixed width and height
@ -251,8 +252,6 @@ func imageCalculations(o Options, inWidth, inHeight int) float64 {
break
}
debug("Resolution %dx%d", o.Width, o.Height)
return factor
}