Skip to main content

A Python Library for Image Processing

Project description

pypixel

This is a Python image process library

Feature

  • open and save an Image
  • show an Image
  • reshape an Image
  • convert RGB to Gray
  • convert RGB to Binary

Usage

Import package

from pypixel import Image

Open an Image

img = Image.open("filepath")

Save an Image

img = Image.open("filepath")
...
# Do something to img
...
img.save("filepath")

Show an Image

img = Image.open("filepath")
img.show()

Reshape an Image

img = Image.open("filepath")
img.reshape([height,width])

Convert to gray

img = Image.open("url")
img = img.gray()    # default : Float Algorithm
img = img.gray("F") # Float Algorithm : r*0.3+g*0.59+b*0.11
img = img.gray("G") # Green Only

Convert to binary

img = Image.open("url")
img = img.binary()

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

pypixel-1.0.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file pypixel-1.0.1.tar.gz.

File metadata

  • Download URL: pypixel-1.0.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for pypixel-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9a51521f61b4838692be39ff38a9ecf3e8ee503c9a3d529a22670ede68e60461
MD5 3829c2cd311f8df837b3ba3cc9ec754d
BLAKE2b-256 68cfa895c56b99c76457b06570b4447db1853e171290c5b998bfaa9302f8a375

See more details on using hashes here.

Supported by

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