This commit is contained in:
2026-06-21 01:18:50 +03:00
parent afd438930e
commit 445a6aab94
21 changed files with 70 additions and 73 deletions
+5 -6
View File
@@ -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)