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 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page