png-glitch
A library to glitch PNG files. This library is inspired by the pnglitch, a Ruby library to glitch PNG images.
Please visit "The Art of PNG Glitch" for more details about glitching PNG images.
The original image:
Example usage
The following snippet glitches ./a_png_file.png
by
- Changing filter method of all scan lines
- Setting
1
to the 4th byte of each scan line
The glitched image is emitted to ./glitched.png
.
use ;
let mut png_glitch = open?;
png_glitch.foreach_scanline;
png_glitch.save?;
Contribution
- Fork the repository.
- Create a feature branch on your forked repository with
git checkout -b feature-name
command. - Develop the feature.
- Commit your changes with
git commit
command. - Upload the feature branch to GitHub and create a pull request.
License
Please refer to the LICENSE file.