def make_opaque(img, bgcolor):
    bgcolor = ImageColor.getrgb(parse_rgb(bgcolor))
    processor = MakeOpaque(background_color=bgcolor)
    return processor.process(img)
Apply a background color to image
dataset/ETHPy150Open jmagnusson/Flask-Resize/flask_resize/__init__.py/make_opaque