Giter VIP home page Giter VIP logo

cutimages's Introduction

一、使用方法

# 1、安装
pip install cutImages

# 2、引用
from cutImages import cut_images

# 3、调用
cut_images('/Users/fybao/Desktop/old_images', '/Users/fybao/Desktop/new_img', 500, 500, 50)

# 4、参数说明
old_path: 原图片目录;
new_path: 剪切之后的图片目录, 如果不存在, 会自动创建另外会保存一个不剪切的图片目录, 详见代码;
width: 剪切之后的图片宽度;
height: 剪切之后的图片高度;
quality: 图片保存的质量, 1~100之间的数字, 数字越小质量越差;

也可以点击介绍文档: http://py.pxuexiao.com/cutImages

如果使用过程有问题, 请联系我 author: lshxiao blog: http://web.pxuexiao.com

cutimages's People

Contributors

lshxiao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.