This npm package provides functionality for image fragmentation and restoration.
Please note that this does not guarantee strong security.
Please refer to each package's README for usage instructions.
You can easily try image fragmentation using the CLI.
# Install CLI
npm install -g @pixzle/cli
# Shuffle images
pixzle shuffle input.png -o ./output
# Restore images
pixzle restore ./output/*.png -m ./output/manifest.json -o ./restored| Fragmented | Restored |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
You can change the block size with -b or --block-size <number>.
| input | blockSize: 1 | blockSize: 2 | blockSize: 3 | blockSize: 4 |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
| blockSize: 8 (default) | blockSize: 16 | blockSize: 32 | blockSize: 50 | blockSize: 128 |
|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Warning
- May cause memory shortage depending on the value of block size.
















