go fmt
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
//go:build upsampling
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,23 +1,22 @@
|
||||
packagemain
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"image"
|
||||
|
||||
"git.nkpl.cc/twocookedfaggots/imageutils/pkg/downscale"
|
||||
"git.nkpl.cc/twocookedfaggots/imageutils/downscale"
|
||||
"git.nkpl.cc/twocookedfaggots/imageutils/util"
|
||||
)
|
||||
|
||||
var x = flag.Int("x", 256, "dx value of new bounds")
|
||||
var y = flag.Int("y", 256, "dy value of new bounds")
|
||||
var x = flag.Int("x", 1024, "dx value of new bounds")
|
||||
var y = flag.Int("y", 1024, "dy value of new bounds")
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
if err := util.ProcessStdio(func(img image.Image) image.Image {
|
||||
return downscale.GridDownscale{
|
||||
Image: img,
|
||||
Rectangle: image.Rect(0,0,x,y),
|
||||
Image: img,
|
||||
NewBounds: image.Rect(0, 0, *x, *y),
|
||||
}
|
||||
}); err != nil {
|
||||
panic(err)
|
||||
|
||||
Reference in New Issue
Block a user