Split an image into n-pieces and shuffle it.
Project description
image-shuffler
Split an image into n-pieces and shuffle it.
Download
You can simply:
pip install image-shuffler
Or you can also:
- Clone the repository to your local machine.
- Enter the directory.
- 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')
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
image-shuffler-1.0.1.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file image-shuffler-1.0.1.tar.gz
.
File metadata
- Download URL: image-shuffler-1.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 577fb283be68805ec379b66ea7d55993e836c4ee61caeff311e64fe0c539f54a |
|
MD5 | 83a0f89e3fa404f48cf542cde3ed76b5 |
|
BLAKE2b-256 | 770dde5d2e2ec0df0b84e7d0ae2705bd6bb483023a1e84d9aac15dc2fbaa7747 |
File details
Details for the file image_shuffler-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: image_shuffler-1.0.1-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 649026eeb55893c13f7eeda921440ec1fd8640f1349c972c622a18e0c88307e7 |
|
MD5 | b6aabe441dff5a0a1b088299ecb99369 |
|
BLAKE2b-256 | ef48290062e234823edf8a66df8d08ea7e71b558a3248deea28383461d56df73 |