A image optimize service for PNG(done), JPEG(doing), JPG(doing).
CargoimagequantRustRust
$ ./build.sh //
// m1mac
$ make init
// cpuCPU
$ ./build.sh xxxx
CargoMakefileCPU
// ./Makefile
# rustup target list
all: init
init:
./build.sh aarch64-apple-darwin
build:
./build.sh aarch64-apple-darwin // <<<<
go build -ldflags "-s -w" -o ./bin/gocf ./main.go
$ make build //
curl --location 'localhost:8080/compress' --form 'file=@"/Users/user/Documents/WorkDocs/image-tiny/demo.png"'