|
|
@ -512,7 +512,8 @@ class Overlays:
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
overlay_box = current_overlay.get_coordinates((canvas_width, canvas_height), box=current_overlay.image.size, new_cords=cord)
|
|
|
|
overlay_box = current_overlay.get_coordinates((canvas_width, canvas_height), box=current_overlay.image.size, new_cords=cord)
|
|
|
|
new_poster.paste(current_overlay.image, overlay_box, current_overlay.image)
|
|
|
|
new_poster.paste(current_overlay.image, overlay_box, current_overlay.image)
|
|
|
|
temp = os.path.join(self.library.overlay_folder, f"temp.{self.library.overlay_artwork_filetype}")
|
|
|
|
ext = "webp" if self.library.overlay_artwork_filetype.startswith("webp") else self.library.overlay_artwork_filetype
|
|
|
|
|
|
|
|
temp = os.path.join(self.library.overlay_folder, f"temp.{ext}")
|
|
|
|
if self.library.overlay_artwork_quality and self.library.overlay_artwork_filetype in ["jpg", "webp_lossy"]:
|
|
|
|
if self.library.overlay_artwork_quality and self.library.overlay_artwork_filetype in ["jpg", "webp_lossy"]:
|
|
|
|
new_poster.save(temp, exif=exif_tags, quality=self.library.overlay_artwork_quality)
|
|
|
|
new_poster.save(temp, exif=exif_tags, quality=self.library.overlay_artwork_quality)
|
|
|
|
elif self.library.overlay_artwork_filetype == "webp_lossless":
|
|
|
|
elif self.library.overlay_artwork_filetype == "webp_lossless":
|
|
|
|