itsonlym3 / photomosaic

Example code for Programming Projects for Advanced Beginners #4: Photomosaics

Home Page:https://robertheaton.com/2018/11/03/programming-project-4-photomosaics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Programming Projects for Advanced Beginners #4: Photomosaics

Example code for Programming Projects for Advanced Beginners #4: Photomosaics.

To run

To install PIL:

  • Install virtualenv and pip
  • virtualenv vendor
  • pip install -r requirements.txt

Then whenever you need to run the code, first run:

  • source vendor/bin/activate

to load PIL.

Place all your source images in ./source_images, then run python square_images.py to convert them into squares. Then run python mosaic.py, making sure that the code points to the location of your input image.

PHOTO CREDITS

About

Example code for Programming Projects for Advanced Beginners #4: Photomosaics

https://robertheaton.com/2018/11/03/programming-project-4-photomosaics

License:The Unlicense


Languages

Language:Python 100.0%