-
Notifications
You must be signed in to change notification settings - Fork 1
Corruption parameters
These parameters are the backbone of pngfucker and give it its signature look and effect.
Bitshift the image buffer to the right by this amount.
Negative amounts shift to the left!
Creates corrupted "regions". This bitshifts the image buffer in a small area and swaps image bytes around.
This property has two sub-properties:
Minimum region size in height pixels.
Maximum region size in height pixels.
Positive values for rmin and rmax are how many Y lines the corruption should span for.
If you pass negative values, the property will be set to height / abs(rmin or rmax), where abs = the positive value of a number.
For example, a 1000x500 image with -rmin -5 and -rmax -2 means rmin = 500 / 5 = 100, and rmax = 500 / 2 = 250.
A corruption effect where the image buffer is crunched and expanded, to give the effect of the image being sliced in half horizontally.
This simulates missing chunks and bits of a real corrupted image.
NOTE: This also performs a bitshift, but it doesn't reverse it afterwards, leaving the image glitched after a split.
This means that everything in your image will be glitched below the split line. This might be good or bad depending on what you want!