Giter Club home page Giter Club logo

golang_image_compress's Introduction

编译步骤:

安装golang环境

在控制台输入 go get "github.com/nfnt/resize"

最后 go build imageCompress.go

使用方法:

双击 imageCompress.exe,跟随提示即可

启动后输出:

请输入文件夹或图片路径:
如果输入文件夹,那么该目录的图片将会被批量压缩;
如果是图片路径,那么将会被单独压缩处理。
例如:
C:/Users/lzq/Desktop/headImages/ 75 200
指桌面 headImages 文件夹,里面的图片质量压缩到75%,宽分辨率为200,高是等比例计算
C:/Users/lzq/Desktop/headImages/1.jpg 75 200
指桌面的 headImages 文件夹里面的 1.jpg 图片,质量压缩到75%,宽分辨率为200,高是等比例计算
请输入:

Linux 支持

可以自己在 Linux 环境下编译

Compile Step:

config your golang environment;

go get "github.com/nfnt/resize"

go build imageCompress.go

How to use:

double click imageCompress.exe,and just follow the tips

golang_image_compress's People

Contributors

af913337456 avatar

Watchers

James Cloos avatar Jingwei 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.