If you take an existing image that has a shape on a white background, and you want to make the background transparent, it's relatively simple to use the magic wand tool to select the background, delete it and then samesave the image as .gif or .png.
But that only works if the edges are solid whereand there's no zone where white bleeding intois mixed with the imagecolor of the shape.
However, if you have an image like this: https://i.sstatic.net/evuFa.jpg where the border'scolor changes gradually from solid color bleeds intoof the shape to white background, you need to replace allfix all the pixels that have a combination of white and the border color to be transparent versions of the bordershape color.
What's a good way to do that?