/everyframeapainting

Repaint images by sorting pixels by colour

Primary LanguageGo

Every Frame A Painting

Sorts pixels in an image by colour and redraws the image in order. See examples below.

Works best with smaller image sizes or memory usage and time to draw will be huge.

Install

go install github.com/tsak/everyframeapainting

Usage

Usage of everyframeapainting:
  -in string
        GIF, PNG or JPEG to read from
  -normal
        Normal colour sort (might give better results)
  -out string
        PNG to write to

Movie conversion

Requires ffmpeg and Image Magick convert to be installed. Only tested on Linux (Ubuntu 20.x)

See movie.sh

Usage:
./movie.sh: <infile>.mp4 <outfile>.mp4 [-normal|-reverse] [xx%]

Example

Input

dampf.jpg

Output

dampf.png

Using -normal flag

dampf.png

Converting a movie

fire_r.gif