|
|
|
@ -9,18 +9,22 @@ |
|
|
|
|
## Usage |
|
|
|
|
|
|
|
|
|
1. Build the project |
|
|
|
|
'''bash |
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
go build |
|
|
|
|
''' |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
2. Run the command |
|
|
|
|
'''bash |
|
|
|
|
|
|
|
|
|
```bash |
|
|
|
|
$ ./glitch_img |
|
|
|
|
Usage: go run main.go <source-file> <number-of-copies> <shit-size> <iterations> |
|
|
|
|
''' |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
### Example |
|
|
|
|
|
|
|
|
|
'''bash |
|
|
|
|
```bash |
|
|
|
|
./glitch*img img.jpeg 100 30 2 |
|
|
|
|
''' |
|
|
|
|
Outputs 100 images into a destination folder \_output* with 30 random bytes of data, running through the file twice |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
Outputs 100 images into a destination folder _output_ with 30 random bytes of data, running through the file twice |
|
|
|
|