make image transparent(without background)

Viewed 52

I want to remove background from this example example

So,is there any possibility to make this image without background(transparent) using javascript or any librirary js ?

2 Answers

Yes, I use it but the result is not perfectly what I want. you can see result

The image's format is .jpg. There is no simple way making background of .jpg image transparent using only JS. But as Ahmad Faraz already commented there is some JS libraries that can do this for you.

Instead: some simple way of going around the problem:

  1. You might use graphic editing programs to have a .jpg image cut and transformed to transparent background.
  2. You should use images with transparent background already.
Related