mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 02:45:54 -07:00
Fix AreaWidth calculation
This commit is contained in:
parent
4eb8362deb
commit
e3e4ba395e
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