https://github.com/zweigraf/jpeg-glitcher-mac
📷 Glitching JPEGs. One at a time.
https://github.com/zweigraf/jpeg-glitcher-mac
Last synced: 6 months ago
JSON representation
📷 Glitching JPEGs. One at a time.
- Host: GitHub
- URL: https://github.com/zweigraf/jpeg-glitcher-mac
- Owner: zweigraf
- License: mit
- Created: 2016-03-15T01:42:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-15T01:51:53.000Z (over 10 years ago)
- Last Synced: 2024-12-30T00:15:25.574Z (over 1 year ago)
- Language: Swift
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jpeg-glitcher-mac
Glitching JPEGs. One at a time.
## Dependencies
None. Until now at least.
## Usage
Open ```JPEGGlitcher.xcodeproj``` and ```Run``` the ```JPEGGlitcher``` scheme. Click "New Image" to open an image.
The image will be modified (glitched) and the modified version displayed in the window.
Click "Reglitch" until you are satisfied with the output. Then, click "Export Image" to save the glitched image to your disk.
This tool works best when modifying JPEG images, but also sometimes works on PNG images.
## Details
The algorithm (```ViewController.glitchData()```) currently selects up to ten consecutive bytes at a random point
in the binary representation of the image and modifies them randomly.
Results vary from not noticeable to "completely broke the image".
## Known Issues
- selecting really wide images will widen the window considerably, making it basically unusable