https://github.com/zhanziyuan/pixelpuzzle-web
Encode/decode images using Base64 or shuffle/recover the pixels of images.
https://github.com/zhanziyuan/pixelpuzzle-web
anime encryption image image-processing numpy python
Last synced: 3 months ago
JSON representation
Encode/decode images using Base64 or shuffle/recover the pixels of images.
- Host: GitHub
- URL: https://github.com/zhanziyuan/pixelpuzzle-web
- Owner: ZhanZiyuan
- License: gpl-3.0
- Created: 2024-08-16T11:59:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-17T07:56:17.000Z (almost 2 years ago)
- Last Synced: 2025-01-08T11:47:01.090Z (over 1 year ago)
- Topics: anime, encryption, image, image-processing, numpy, python
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PixelPuzzle-web
English | 简体中文
[](https://github.com/ZhanZiyuan/PixelPuzzle-web/blob/main/vercel.json)
[](https://github.com/ZhanZiyuan/PixelPuzzle-web/commits/main/)
[](https://github.com/ZhanZiyuan/PixelPuzzle-web/blob/main/LICENSE)
[](https://github.com/ZhanZiyuan/PixelPuzzle-web/releases)
[](https://pixelpuzzle-web.vercel.app/)
Pixel Puzzle is a Flask-based web application designed for image manipulation.
It offers a user-friendly interface to encode images to Base64, decode Base64 text back to images, and securely shuffle or recover image pixels using a seed-based algorithm.
## Features
- **Encode**: Convert any image file into a Base64 encoded text file.
- **Decode**: Reconstruct images from Base64 encoded text files.
- **Shuffle**: Scramble the pixels of an image based on a user-provided numeric seed. This essentially "locks" the image visual content.
- **Recover**: Restore the original image from a shuffled version using the correct seed.
## Technology Stack
- **Backend**: Python, Flask
- **Frontend**: HTML5, JavaScript, Tailwind CSS (CDN), Material Design Icons
- **Core Logic**: [PixelPuzzle](https://github.com/ZhanZiyuan/PixelPuzzle) Python library
## Getting Started
### Prerequisites
- Python>=3.10
- pip
### Installation
- Clone the repository:
```bash
git clone https://github.com/ZhanZiyuan/PixelPuzzle-web.git
cd PixelPuzzle-web
```
- Install the required dependencies:
```bash
pip install -r requirements.txt
```
### Running Locally
- Start the Flask application:
```bash
python api/app.py
```
- Open your web browser and navigate to:
```bash
http://127.0.0.1:5000
```
## License
Distributed under the GPLv3 License. See [LICENSE](./LICENSE) for more information.