This commit is contained in:
2026-03-29 17:03:48 +03:00
parent 7143e96ef3
commit 3880b353c1
20 changed files with 491 additions and 23 deletions

20
cmd/scale/main.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"flag"
"image"
"git.nkpl.cc/twocookedfaggots/imageutils"
"git.nkpl.cc/twocookedfaggots/imageutils/util"
)
var scale = flag.Int("n", 2, "rescale by factor")
func main() {
flag.Parse()
if err := util.ProcessStdio(func(img image.Image) image.Image {
return imageutils.Scale(img, *scale)
}); err != nil {
panic(err)
}
}