MiSilleta.com – Flower Arrangements Generator


Fourth year in a row, I’m activating misilleta.com; it’s a facebook app where people creates flowers arrangements and shares them with friends, did it on my own for a local tradicional event in my city (Medellin Flowers Fair)

This year someone told me to make it so that the app could create the flower arrangements automatically using the user’s profile picture, so I set into it 🙂

I’m using the basic php gd functions for image handling, basically obtaining the image data from a URL, scaling it, adding contrast and then going thru the pixels, looking for the flower that matches its color best (using a simple less-distance criteria on the RGB cube) and placing with a bit of a random variation into the virtual flower canvas; then connecting to the already existing infrastructure for handling the flower arrangements.

In the process I found out the flowers that I had there were not covering enough hues (so the pictures looked a bit crazy)

Screen Shot 2015-07-17 at 7.23.47 AM

Screen Shot 2015-07-17 at 7.30.30 AM

I had to color some of the flowers to cover more of the green and blue hues, as well as black and grey.

Source Image
Source Image
Resulting Flower arrangement
Resulting Flower arrangement

One thought on “MiSilleta.com – Flower Arrangements Generator

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s