Skip to main content

Split a png into smaller images.

Project description

png_splitter

Split a png into smaller images.

A simple package that is able to split a full image like a sprite sheet.

⚠️ This package only works if the background of the png is invisible, otherwise, it will have unexpected results ⚠️

For example, the following image:

Creates 10 smaller images:

How to Install

pip install png_splitter

All you have to do is:

png_splitter.split_image("image.png", "images_folder")

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

png_splitter-0.0.5.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

png_splitter-0.0.5-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file png_splitter-0.0.5.tar.gz.

File metadata

  • Download URL: png_splitter-0.0.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for png_splitter-0.0.5.tar.gz
Algorithm Hash digest
SHA256 67b7196f9d64c5434ab092370c755ae863903bf27efc671b67908fbac898d120
MD5 4dbc4b3edb2fc5a3a845f6cb8503f735
BLAKE2b-256 aac59a1ce64fa73a3f0b4e93e02e31d9f01ac990e052563d0fde621753e9b9a1

See more details on using hashes here.

File details

Details for the file png_splitter-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: png_splitter-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for png_splitter-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 624fb8ed8fdc1a467dd98b129b812d75a7b6b17842b267446c7de4a4008b50f3
MD5 04b8b5dd9d5e4b62c72d2fbe9c9a2c70
BLAKE2b-256 d13fb268e13d09dfaccc078a20db42bfcd96c78a38406c02bd2668ac809b64a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page