Snipaste_2020-11-22_14-32-35.png

webp2jpg

convert the .webp to .jpg|.bmp|.png|.gif|.tiff

Dependence

  golang.org/x/image/bmp
  golang.org/x/image/tiff
  golang.org/x/image/webp
  gopkg.in/urfave/cli.v1
  go get gopkg.in/urfave/cli.v1
  git clone https://github.com/golang/image $GOPATH/src/golang.org/x/image
  cd $GOPATH/src/golang.org/x/image/webp && go install
  cd $GOPATH/src/golang.org/x/image/bmp && go install
  cd $GOPATH/src/golang.org/x/image/tiff && go install

Download

  go get github.com/sndnvaps/webp2jpg

Build && Run

  cd $GOPATH/src/github.com/sndnvaps/webp2jpg/cli
  go build

Convert the webp file to jpeg | png | gif | bmp | tiff

  put the test.webp file into webp2jpg folder
  ./webp2jpg -t jpg -s test.webp
  ./webp2jpg -t bmp -s test.webp
  ./webp2jpg --type jpg --source test.webp
  ./webp2jpg --type jpeg --source test.webp
  ./webp2jpg --type png --source test.webp
  ./webp2jpg --type gif --source test.webp
  ./webp2jpg --type tiff --source test.webp
  ./webp2jpg --type jpg --source test.png
  ./webp2jpg --type jpg --source test.gif
  ./webp2jpg --type jpg --source test.tiff

Github: https://github.com/sndnvaps/webp2jpg