Skip to content

Corruption parameters

andreweathan edited this page Aug 25, 2022 · 6 revisions

These parameters are the backbone of pngfucker and give it its signature look and effect.

-shift (def. 0)

Bitshift the image buffer to the right by this amount.
Negative amounts shift to the left!

-regions (def. 4)

Creates corrupted "regions". This bitshifts the image buffer in a small area and swaps image bytes around.
This property has two sub-properties:

-rmin (def. -8)

Minimum region size in height pixels.

-rmax (def. -5)

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.

-splits (def. 2)

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!

Clone this wiki locally