- logo = Image.open(get_resource('res/wl-logo.png'))
- logo = logo.resize((metr.logo_width, logo.size[1] * metr.logo_width / logo.size[0]))
- img.paste(logo, ((metr.width - metr.logo_width) / 2, img.size[1] - logo.size[1] - metr.logo_bottom))
+ logo = Image.open(self.logo_file)
+ logo = logo.resize((metr.logo_width, logo.size[1] * metr.logo_width / logo.size[0]), Image.ANTIALIAS)
+ logo = logo.convert('RGBA')
+ img.paste(logo, ((metr.width - metr.logo_width) / 2,
+ img.size[1] - logo.size[1] - metr.logo_bottom), logo)