Skip to main content

A tool for padding PNG files to specific sizes

Project description

# pngpadder

A tool for adding extra data to PNG files to pad them out for tests.

### Installation

pip install pngpadder

### Examples:

import pngpadder

# Pad file size to 100,000 bytes pngpadder.pad_to(‘/path/to/file.png’, ‘/path/to/output/file.png’, 100000)

# Pad file size by 20 bytes pngpadder.pad_by(‘/path/to/file.png’, ‘/path/to/output/file.png’, 20)

Alternatively, from the command line:

# Pad file to 100,000 bytes pngpadder –to 100000 -i /path/to/file.png -o /path/to/output/file.png

# Pad file size by 20 bytes pngpadder –to 100000 -i /path/to/file.png -o /path/to/output/file.png

Project details


Download files

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

Files for pngpadder, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size pngpadder-0.3.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page