Skip to content
Python scripts for producing artistic image transformations
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
images
LICENSE
README.md
linoleumBlocksV1.py

README.md

linoleumBlocks

Python scripts for producing artistic image transformations

V1

Requires imagemagick, lxml, PIL, OpenCV, numpy, matplotlib and potrace. And batik (how could I forget it?). Too much, I know. Later versions will almost certainly require lxml, potrace and batik (I like the convenience of manipulating SVG), although I hope to settle on one image processing library (OpenCV, most likely).

USAGE: ./linoleumBlocksV1.py pathToInputImage pathToConfig

Config files contain an elaborate python dictionary specifying how the input image should be transformed.

To run the script using the sample images and configs:

./linoleumBlocksV1.py images/1024px-Osteospermum_lemon_symphony.jpg config/flowers.py

./linoleumBlocksV1.py images/Winston_Churchill_1874_-_1965_ZZZ5426F.jpg config/churchill.py

./linoleumBlocksV1.py images/Jefferson_Memorial_rear_view_IMG_4733.JPG config/jefferson.py

I owe a debt of inspiration and example to Greg Borenstein, who used a similar process for his 2014 nanogenmo entry, available here and here.

You can’t perform that action at this time.