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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pngpadder-0.2.tar.gz
.
File metadata
- Download URL: pngpadder-0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8adcec5661c5bdea6bbc2dd4c5678feb452a19baf0839d02ee3f83b942e946d |
|
MD5 | 75da3633ac4ae1ad81c1fc46a93fe6bb |
|
BLAKE2b-256 | c75cf9c78abb56cacc4991c908d48d358e31222bf449ab41d994992939b2335e |