Skip to content

gokaybiz/pixelator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixelify Your High-Res Images

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?)

Features

  • 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.

Usage

  1. Clone the repository:
  git clone https://github.com/gokaybiz/pixelator.git
  cd pixelator
  1. 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

Contributing

Feel free to submit pull requests or report issues.

License

This project is licensed under the GPL-3.0-or-later License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages