mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 07:42:37 +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
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
comicconverter "go-comic-converter/internal/comic-converter"
|
comicconverter "go-comic-converter/internal/comic-converter"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
comicconverter.
|
cv := comicconverter.
|
||||||
New(comicconverter.ComicConverterOptions{
|
New(comicconverter.ComicConverterOptions{
|
||||||
Quality: 90,
|
Quality: 75,
|
||||||
}).
|
})
|
||||||
Load("/Users/vincent/Downloads/00001.jpg").
|
|
||||||
CropMarging().
|
for i := 1; i < 10; i++ {
|
||||||
Resize(1860, 2480).
|
cv.
|
||||||
GrayScale().
|
Load(fmt.Sprintf("/Users/vincent/Downloads/0000%d.jpg", i)).
|
||||||
Save("/Users/vincent/Downloads/00001_gray.jpg")
|
CropMarging().
|
||||||
|
Resize(1860, 2480).
|
||||||
|
Save(fmt.Sprintf("/Users/vincent/Downloads/0000%d_gray.jpg", i))
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user