mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-23 23:32:38 +02:00
readjust quality
This commit is contained in:
parent
3d1edaee0b
commit
6e37d41edf
20
main.go
20
main.go
@ -1,18 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
comicconverter "go-comic-converter/internal/comic-converter"
|
||||
)
|
||||
|
||||
func main() {
|
||||
comicconverter.
|
||||
cv := comicconverter.
|
||||
New(comicconverter.ComicConverterOptions{
|
||||
Quality: 90,
|
||||
}).
|
||||
Load("/Users/vincent/Downloads/00001.jpg").
|
||||
CropMarging().
|
||||
Resize(1860, 2480).
|
||||
GrayScale().
|
||||
Save("/Users/vincent/Downloads/00001_gray.jpg")
|
||||
Quality: 75,
|
||||
})
|
||||
|
||||
for i := 1; i < 10; i++ {
|
||||
cv.
|
||||
Load(fmt.Sprintf("/Users/vincent/Downloads/0000%d.jpg", i)).
|
||||
CropMarging().
|
||||
Resize(1860, 2480).
|
||||
Save(fmt.Sprintf("/Users/vincent/Downloads/0000%d_gray.jpg", i))
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user