SpotifyLook is an numpy based app that makes images that emulate the marketing of Spotify
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media
.gitignore
README.md
SpotifyLook.py

README.md

SpotifyLook

SpotifyLook is an numpy based app that makes images that emulate the marketing of Spotify. Uses OpenCV (overkill for now but future updates planned) to transform the images to a grayscale of colour, without the need for external tools such as PhotoShop.

Sample Images: Samples

Inspiration from here

Install

Assuming Python 2 is already installed, first install OpenCV 2:

$ brew tap homebrew/science
$ brew install opencv

Then set the Python path:

$ cat ~/.bash_profile | grep PYTHONPATH
$ cd /Library/Python/2.7/site-packages/
$ ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv.py cv.py
$ ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv2.so cv2.so

And you should be good to go!

Usage

For now, make sure the input image is named test.jpg or change the source code on line 5 to reflect otherwise. If you wish, you can also change the 2 BGR colour values on lines 9 and 10.

In the project directory, run:

$ python SpotifyLook.py

The output should be in look.png! Yay!

To-Do

  • Make a GUI for the interface
    • Add an image preview
    • Add sliders to be able to edit the colours on the GUI directly
    • Automatically refresh the GUI on colour change (with a lower quality preview)
  • Make a low quality preview function
  • Be able to dynamically add images for processing
  • Batch processing
  • Randomization of colours

License

MIT © George Utsin