pixelsort project
Find a file
2016-01-15 10:21:41 -08:00
images update README.md with examples. auto create out dir 2016-01-15 06:56:18 -08:00
.gitignore initial import 2015-08-26 08:34:57 -07:00
pixelsort.py handling --output better for animation / single images 2016-01-15 10:21:41 -08:00
README.md image sizing in README.md 2016-01-15 07:00:00 -08:00

pixelsort

a python attempt at pixel sorting and GIFs

running

# remember to make the out dir

mkdir out/
python pixelsort.py someimage.jpg
python pixelsort.py --help

# look in out/ for a bunch of frames
python pixelsort.py --animate --smooth --rotate --jitter 20 someface.png

viewing

# for a single image
open out/output_000.JPG

# for a GIF, use ImageMagick to animate and preview
# when ready, load the files in an image editor and create your GIF
# TIP: not all the frames need to be used in the final GIF
animate -delay 10 out/output_*.JPG

examples


`--animate --smooth --rotate --jitter 1`
`--animate --smooth --rotate`
`--animate --smooth --jitter 1`
`--animate --smooth --rotate`
`--animate --num-chunks 7 --smooth --distortions 3`