Skip to content

Animated corruption

andreweathan edited this page Aug 26, 2022 · 11 revisions

These parameters let you control the result of animated corruption.

-breaks (def, 0, 0-100)

The chance that decides whether pngfucker corrupts an image or leaves it alone.
This is useful if you want an image to have gaps in between corrupted images, hence the name (taking a break)

Original Without -breaks -breaks 50
original without with

Center: node pngfucker.js -input cioss.png -frames 30 -fps 10 -crunch 60 -seed 100 -splits 1 -regions 0 -shift -1 -div 1 -blackbg 1 -rmin -10 -rmax -8 -randshift 1
Right: node pngfucker.js -input cioss.png -frames 30 -fps 10 -crunch 60 -seed 100 -splits 1 -regions 0 -shift -1 -div 1 -blackbg 1 -rmin -10 -rmax -8 -randshift 1 -breaks 50

These 3 parameters let you turn a single-frame PNG into an animated corrupted APNG!
To enable this, set -frames and -fps to anything other than 0.

-frames (def. 0, no actual limit)

How many corrupted frames the APNG should have.

-fps (def. 0, no actual limit)

How many frames per second the APNG should play.

Clone this wiki locally