How we can use Python to automatically generate Pinterest style color palette images from iconic scenes of our favourite movies

Image for post
Image for post

If you go to Pinterest, and type in “movie color palettes”, you can find many great examples of color palettes from iconic scenes of various well known movies. I thought it would be a cool idea to create a program, that can can automatically generate such color palettes.

In this tutorial I will walk you through the steps to create such a program. The program is simply a single Python based script, that launches an instance of the VLC player and it has been supplemented with several buttons and other GUI elements so we can create our color palettes. The color palettes themselves are created using a color clustering method with an algorithm called K-means. …

How the React Suspense API lets us create a seamless image gallery adaptable for uncertain network conditions

Image for post
Image for post

Note: At the time of this writing, according to the official React documentation, the technique laid out in this tutorial is still in beta and is not recommended to be used in production, however React is planning to change this in the upcoming releases.

What is React Suspense?

React 16.6.0 has introduced the new Suspense API which now lets us simplify the way we handle asynchornous data calls when building components. …


Andris Gauracs

A full-stack web developer and a videographer who does a bit of web design and photography.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store