diff --git a/VERSION b/VERSION index 7ffbbaa1..95b04275 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1-develop5 +2.0.1-develop6 diff --git a/modules/overlays.py b/modules/overlays.py index ec640ce7..3e25c333 100644 --- a/modules/overlays.py +++ b/modules/overlays.py @@ -512,7 +512,8 @@ class Overlays: else: 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) - 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"]: new_poster.save(temp, exif=exif_tags, quality=self.library.overlay_artwork_quality) elif self.library.overlay_artwork_filetype == "webp_lossless":