now palette project lays here
This commit is contained in:
20
pkg/dithering/cmd/jpg2png.go
Normal file
20
pkg/dithering/cmd/jpg2png.go
Normal file
@@ -0,0 +1,20 @@
|
||||
//go:build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"image/jpeg"
|
||||
"image/png"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
img, err := jpeg.Decode(os.Stdin)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
err = png.Encode(os.Stdout, img)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"image"
|
||||
|
||||
"git.nkpl.cc/twocookedfaggots/imageutils/pkg/dithering"
|
||||
"git.nkpl.cc/twocookedfaggots/imageutils/util"
|
||||
)
|
||||
|
||||
BIN
pkg/dithering/cmd/nz9ipc5vywca1.jpg
Normal file
BIN
pkg/dithering/cmd/nz9ipc5vywca1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
BIN
pkg/dithering/cmd/something.png
Normal file
BIN
pkg/dithering/cmd/something.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 145 KiB |
BIN
pkg/dithering/cmd/touhouthemedbj.png
Normal file
BIN
pkg/dithering/cmd/touhouthemedbj.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user