Skip to main content

Split an image into n-pieces and shuffle it.

Project description

image-shuffler

Split an image into n-pieces and shuffle it.

Comparison

Download

You can simply:

pip install image-shuffler

Or you can also:

  1. Clone the repository to your local machine.
  2. Enter the directory.
  3. Download necessary modules/libraries.
git clone https://github.com/gabrielstork/image-shuffler.git
cd image-shuffler
pip install -r requirements.txt

Example

from image_shuffler import Shuffler
image = Shuffler('lenna.png')

# Splitting the image into 16 pieces, and shuffling it.
image.shuffle((4, 4))

# Seeing the image.
image.show()

# Saving the image.
image.save('lenna_shuffled.png')

forthebadge forthebadge

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

image-shuffler-1.0.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

image_shuffler-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file image-shuffler-1.0.0.tar.gz.

File metadata

  • Download URL: image-shuffler-1.0.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for image-shuffler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3f5db601edf853e2ac91e6d371740d2f0d65ecc145787aa870c425e4749667e5
MD5 54e6eda31742384f1ce43fa53af27e45
BLAKE2b-256 a28a2e7b8572c3413946ce04fb976fc6fc195f1ed883a258eea3756060d6da8f

See more details on using hashes here.

File details

Details for the file image_shuffler-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: image_shuffler-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for image_shuffler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e748ccb6a6e7b9be6e3541b23209ef4eacfe0981d7316975dbdf5291900a3fe7
MD5 dc11a4d3adc50ba6705673b1af65c27d
BLAKE2b-256 98f448dc249cdb504dc60f98724b8b980fec17d184869559903bb16e82f6ebcb

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