Code Monkey home page Code Monkey logo

pic2webp's Introduction

pic2webp

pic2webp 把 png、jpg 和 gif 图片转成 webp 格式,实现图片的压缩。

安装

  • 安装全局依赖:sudo npm i -g --unsafe-perm=true --allow-root --registry=https://registry.npm.taobao.org cwebp-bin gif2webp-bin
  • 全局安装:sudo npm i -g pic2webp

使用

  • 把 src 目录下的图片压缩存放到 dst 目录下:pic2webp src dst
  • src 默认为 images
  • dst 默认为 dist
  • 默认路径可以不写
  • 命令执行后,打印报表,报表中压缩后尺寸变大的图片,不要使用

pic2webp's People

Contributors

wangding avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.