Skip to main content

Creates collages of miniature images that resemble the originals.

Project description

This package builds collages using images downloaded from the internet. It makes a set of tiles from the images, which are matched against the images and used to cover images which match well.

The images which happen to be fitted most closely by the tiles are rendered with the matching tiles. The resulting images resemble the original images, but are made up entirely from minature versions of the same images.

Images are fetched according to a query, optionally provided by the user.

The downloaded images are categoried by primary colour on disk.

Instructions

Install system requirements.:

$ sudo apt-get install python build-essential python-dev python-virtualenv libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev

On 64-bit Ubuntu, symlink the image libraries otherwise PIL won’t work very well.:

$ sudo ln -s /usr/lib/`uname -i`-linux-gnu/libfreetype.so /usr/lib/
$ sudo ln -s /usr/lib/`uname -i`-linux-gnu/libjpeg.so /usr/lib/
$ sudo ln -s /usr/lib/`uname -i`-linux-gnu/libz.so /usr/lib/

Create and activate a new virtual Python environment.:

$ virtualenv --no-site-packages ve
...
$ source ve/bin/activate
(ve)$

Install package.:

(ve)$ pip install ~/Downloads/collage-0.1.0.tar.gz
...

Start creating collages.:

(ve)$ collage-create "jack nicholson"
...

Bugs and Patches

Please email any bugs or patches to john.bywater@appropriatesoftware.net.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collage-0.1.0.tar.gz (79.8 kB view details)

Uploaded Source

File details

Details for the file collage-0.1.0.tar.gz.

File metadata

  • Download URL: collage-0.1.0.tar.gz
  • Upload date:
  • Size: 79.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for collage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 25c8acbf1c75d0521faa0a3f540df9939f50648e944291a3f0477a63632157bd
MD5 57053f36742a2901fb96f7dd40df21b9
BLAKE2b-256 9a7b26a46b30608d802326e0c076b00efdd18b01b4f20151a035f9780f8aa018

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page