Share your repls and programming experiences

← Back to all posts
A smart background removal tool 🎨
jajoosam (875)

colorSpace is a smart background removal tool based completely on the front end, so your pictures never leave your computer.

It gets colors in an image through the HTML canvas, converts them to the Lab colorspace (makes difference measures intuitive to human vision) - and measures the euclidian difference between colors, and purges them from an image based on the threshold.

More in this tweet!


This is amazing I have been looking for a tool like this!

jajoosam (875)

@IEATPYTHON Thanks - let me know if there's anything I can improve :)

amasad (3339)

From twitter for the curious:

Why smart? 🧠
It measures the actual euclidian distance between colors - possible since they're represented in a 3 axis system!
It was a super cool application of the Pythagoras theorem I learnt in school a couple of years ago 📐

Zavexeon (1159)

This is the best background remover ever.

Butter_Cat (2)

Meow.... Meow, Meow, Meow....
(Yay..., it's not allowed on my domain, and google thinks its sketchy...)

jajoosam (875)

@Butter_Cat But newly observed domains are the coolest ones around 🙄

I love having

AydenB (41)

@jajoosam fortiguard has unblocked it