Skip to main content

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

How to use

First you need to import the Shuffler class.

from image_shuffler import Shuffler

Then, instantiate it passing a valid path of an image as its argument.

image = Shuffler('lenna.png')

Now to actually shuffle it, you need to use shuffle() method. The matrix defines the number of pieces that will be in x and y, in this case, there will be a total of 16 shuffled pieces (you can see it in the image on the top of this file).

image.shuffle(matrix=(4, 4))

You can take a look at the image, using this method a new window will pop up.

image.show()

No arguments are needed to save the image. It will be saved in the same place and, in this case, with shuffled_lena.png as its name.

image.save()

forthebadge forthebadge

Metadata

Release files for image-shuffler 1.0.2

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-shuffler 1.0.2
File Size Uploaded Provenance Actions
image-shuffler-1.0.2.tar.gz 3.9 kB Without provenance Details for image-shuffler-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for image-shuffler 1.0.2
File Interpreter ABI Platform Actions
image_shuffler-1.0.2-py3-none-any.whl Python 3 none any Details for image_shuffler-1.0.2-py3-none-any.whl

Total release size: 8.0 kB

Release files / image-shuffler-1.0.2.tar.gz

Download URL image-shuffler-1.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e646d538949cb0bacb8bf58a64ccc05b0ed1bfd718fe24554d6daf02536d0333
BLAKE2b-256 checksum
How to use checksums
9da1251ea7c3d69f3caec05dad25ef84728a5973e512e18fa9281f15a289abfa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / image_shuffler-1.0.2-py3-none-any.whl

Download URL image_shuffler-1.0.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22ce1b847f6b43b8a4c9e6ce98912c26616e222662c0c6d9cff5d2fa18b54a7d
BLAKE2b-256 checksum
How to use checksums
bb26559b19029487c1a878ab96ab10757e3ef8031e8bdcdbea47538005f75828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for image-shuffler 1.0.2

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