Original | Pixelated |
---|---|
![]() |
![]() |
Pixelator is a fun and experimental project that intentionally degrades an image over several cycles. Imagine your pristine image suffering through repeated JPEG compression and a bit of intentional randomization until it transforms into an abstract artwork. (pixel arts may be?)
-
AddNoise(level int) ImageTransform Applies random Gaussian noise to an image. The noise level determines the maximum variation added to the pixel values.
-
Downscale(scale float64) ImageTransform Downscales an image by the specified factor and then upscales it back to its original dimensions. This simulates data loss and creates a pixelated appearance.
-
Blockify(size int) ImageTransform Reduces the resolution of the image by grouping pixels into blocks (based on the given size) and then scaling it back up, resulting in a blocky, pixelated effect.
- Clone the repository:
git clone https://github.com/gokaybiz/pixelator.git
cd pixelator
- Run the application directly or build it: For direct execution, use:
go run cmd/main.go
To build the executable, run:
go build -o pixelator ./cmd/main.go
./pixelator
Feel free to submit pull requests or report issues.
This project is licensed under the GPL-3.0-or-later License.