image-tiny

A image optimize service for PNG(Done), JPEG(Doing), JPG(Doing).

APACHE-2.0 License

Stars
4
Committers
2

image-tiny

A image optimize service for PNG(done), JPEG(doing), JPG(doing).

For development

CargoimagequantRustRust

Rust Cargo

  $ ./build.sh // 
  // m1mac 
  $ make init
  // cpuCPU
  $ ./build.sh xxxx

For production

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"'

Web