mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 10:25:55 -07:00
Merge pull request #250 from fisherking/master
Fix AreaWidth calculation
This commit is contained in:
commit
a40dadf4fe
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ func extractOrEmbedImage(image *C.VipsImage, o Options) (*C.VipsImage, error) {
|
||||||
break
|
break
|
||||||
case o.Top != 0 || o.Left != 0 || o.AreaWidth != 0 || o.AreaHeight != 0:
|
case o.Top != 0 || o.Left != 0 || o.AreaWidth != 0 || o.AreaHeight != 0:
|
||||||
if o.AreaWidth == 0 {
|
if o.AreaWidth == 0 {
|
||||||
o.AreaHeight = o.Width
|
o.AreaWidth = o.Width
|
||||||
}
|
}
|
||||||
if o.AreaHeight == 0 {
|
if o.AreaHeight == 0 {
|
||||||
o.AreaHeight = o.Height
|
o.AreaHeight = o.Height
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue