Skip to content

Getting Started ​

pixzle provides tools for image fragmentation and restoration.

WARNING

This project does not guarantee strong security. Use it as an image transformation utility, not as encryption.

Requirements ​

  • Node.js 20 or later

Packages ​

PlatformPackageShuffleRestore
CLI@pixzle/cliYesYes
Node.js@pixzle/nodeYesYes
Browser@pixzle/browser-Yes
React@pixzle/react-Yes

Quick Start ​

Install the CLI globally:

bash
npm install -g @pixzle/cli

Shuffle an image:

bash
pixzle shuffle input.png -o ./output

Restore the generated fragments with the manifest:

bash
pixzle restore ./output/*.png -m ./output/manifest.json -o ./restored

Output Example ​

FragmentedRestored

Block Size ​

You can change the block size with -b or --block-size <number>.

inputblockSize: 1blockSize: 2blockSize: 3blockSize: 4
blockSize: 8 defaultblockSize: 16blockSize: 32blockSize: 50blockSize: 128

WARNING

Small block sizes and large image sets can increase memory usage.

Released under the MIT License.