mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
fix crop option
This commit is contained in:
parent
0df631edad
commit
54c156625c
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.vscode
|
@ -133,7 +133,7 @@ func LoadImages(path string, options *ImageOptions) ([]*Image, error) {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
if options.AutoRotate {
|
||||
if options.Crop {
|
||||
g := gift.New(gift.Crop(findMarging(src)))
|
||||
newSrc := image.NewNRGBA(g.Bounds(src.Bounds()))
|
||||
g.Draw(newSrc, src)
|
||||
|
Loading…
x
Reference in New Issue
Block a user