Code Monkey home page Code Monkey logo

ppgo_clipimg's Introduction

PPGo_CliImg

什么东西?What?

基于Golang的图片截取工具。可以将底色是白色或者纯色的图片切割出来,并按照自定义尺寸和边距输出。类似另外一个python项目的效果: https://github.com/george518/CoreImage

有什么价值?

1、快速切割图片的核心部分,并自定义尺寸和边距形成新的图片
2、常用于电商平台的图片批量处理。
3、含有golang常用的图片包使用方法,可以作为golang图片学习参考使用

用得上,请赐予star :)

安装使用

1、下载

go get github.com/george518/PPGo_ClipImg 

2、运行 go build

使用示例:

./PPGo_ClipImg -f=./example/images/image.jpg -p=center -h=300 -w=200 -m=10 

具体可以使用 ./PPGo_CliImg -h 查看传入参数

联系我

qq:41352963

效果展示 (图片显示均为正常尺寸)

原图0 -底图为纯色
github

处理图0
github


原图1 -底图为白色
github

处理图1
github


原图2
github

处理图2
github


原图3-PNG图
github

处理图3
github


ppgo_clipimg's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

reganan word-go

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.