Skip to main content

License Build Status PyPI version Pyversions

image_packer

About

Pack multiple images of different sizes or formats into one image. - Supported image input formats: - png, bmp, jpg - Supported image output formats: - png(24 or 32bits)

atlas

atlas

Compatibility

image_packer works with Python 3.4 or higher.

Dependencies

  • Pillow

Installation

pip install image-packer

Usage

from image_packer import packer

workpath = './image'

input_filepaths = [
    workpath + '/*.png',
    workpath + '/*.jpg',
    workpath + '/*.bmp',
]
output_filepath = workpath + '/atlas.png'
container_width = 128

options = {
    'margin': (1, 1, 1, 1),
    'collapse_margin': False,
    'enable_auto_size': True,
    'enable_vertical_flip': True,
    'force_pow2': False
}

packer.pack(
    input_filepaths=input_filepaths,
    output_filepath=output_filepath,
    container_width=container_width,
    options=options
)

Command-line Tool

$ impack -i "./image/*.png" -i "./image/*.jpg" -i "./image/*.bmp" -o "./image/atlas.png" -w 128 -m 1 1 1 1

License

This software is released under the MIT License, see LICENSE.

Metadata

Release files for image-packer 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for image-packer 0.10.0
File Size Uploaded Provenance Actions
image_packer-0.10.0.tar.gz 14.8 kB Without provenance Details for image_packer-0.10.0.tar.gz

Release files / image_packer-0.10.0.tar.gz

Download URL image_packer-0.10.0.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d9bd71cea80478b2962c82c93a1169a3f963599f22085720ad901ad5d21ece96
BLAKE2b-256 checksum
How to use checksums
c3390a45a59c8f76a8ba993e62e41f1071a86662fc00a48a888f46fab84cad63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.3

Security for image-packer 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page