Transparentize
View as MarkdownRemove a plain background around a logo
This sample shows how to make the background of a logo or a product shot transparent with the ContiguousBackgroundRemoval transform. The background is everything that can be reached from the border of the image through pixels of similar colour, so areas of the same colour that the subject encloses stay opaque: the white letters on the badge are kept, while a colour key such as Transparentize would punch them out too. The background colour is detected automatically from the border of the image.
Transparentize
Sets alpha values of pixels with a given color to transparent.