(self, base_image, icon, position=None)
return base_image
needed because PIL pasting of transparent images gives weird results
needed because PIL pasting of transparent images gives weird results
needed because PIL pasting of transparent images gives weird results
def transparent_paste(self, base_image, icon, position=None):
        '''
        needed because PIL pasting of transparent images gives weird results
        '''
        image = self.make_blank_image()
        image.paste(icon,position)
        base_image = Image.alpha_composite(base_image, image)
        return base_image
def transparent_paste ( self , base_image , icon , position = None ) : image = self . make_blank_image ( ) image . paste ( icon , position ) base_image = Image . alpha_composite ( base_image , image ) return base_image