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.

Source Distribution

pngpadder-0.3.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file pngpadder-0.3.tar.gz.

File metadata

  • Download URL: pngpadder-0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pngpadder-0.3.tar.gz
Algorithm Hash digest
SHA256 c5d56fb22e0fd05cff8382d93a2c5f992dd0f46cc56d9812f91e3f54f91da25c
MD5 5c0f382bae10578575c7ffca7dd1807c
BLAKE2b-256 38015efaf6fb8ead7ed3339437d5abba2c53ed4836daa6461b0a81e4cfb266fc

See more details on using hashes here.

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