Pixel Sorter is a TypeScript-based tool that applies a glitch effect to images by sorting pixels based on their brightness. This project demonstrates basic image manipulation using the canvas library in Node.js.
- Loads an image and processes it pixel by pixel.
- Sorts pixels by brightness to create a glitch effect.
- Saves the modified image to a specified output path.
- Utilizes the
canvaslibrary for image manipulation.
To set up the project locally, follow these steps: Clone the repository Navigate to the project directory cd pixel-sorter Install dependencies npm install node script.ts
Ensure you have an input image named input_image.png in the project directory, or modify the script to point to your desired image file.
Contributions are welcome! Please open an issue or submit a pull request with your improvements or bug fixes.