Skip to main content

some useful snippet for image

Project description

pillow_snippet

some useful snippet and utils using pillow to handle image

Requirements

  • Pillow

Install

pip install pillow-snippet

Documentation

Tutorial

  • convert an Image to a circled Image
from pillow_snippet import convert
image = open("example.jpg")
image.resize((120, 120))
circled_image = convert.circle_image(image)
circled_image.save("circled_image.png")

Contribution

  1. clone the code
  2. make your commit
  3. make test
sudo pip install .
python3 tests/test.py
  1. create a pull request

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pillow-snippet-0.0.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

pillow_snippet-0.0.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page