Intuitive PNG library.
Project description
Description
Intuitive PNG library.
Usage
All-in-1
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.3.tar.gz
(6.8 kB
view hashes)
Built Distribution
ipng-0.0.3-py3-none-any.whl
(8.1 kB
view hashes)