mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 02:15:54 -07:00
fix(vips): memory inconsistency
This commit is contained in:
parent
bc88532806
commit
34dda8c57c
6 changed files with 51 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue