Skip to main content

Intuitive PNG library.

Project description

# Description

Intuitive PNG library.

# Usage


## All-in-1
```python
from ipng import PNG
from binascii import hexlify

def func(bitmap):
# do anything with the bytearray, here we just print out the
# first 50 bytes of each row
print(hexlify(bitmap)[0:100])

png = PNG(file='path/to/input.png', process=func)
print(png.metadata) # get info about the image
png.render(output='path/to/output.png') # only "render" will trigger the process, path can be None
```

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

ipng-0.0.4.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

ipng-0.0.4-py3-none-any.whl (8.1 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