mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-21 20:13:05 +00:00
[6] Fix webp error
This commit is contained in:
parent
bd71fe3b4f
commit
bc475e9c66
2 changed files with 3 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.0.1-develop5
|
||||
2.0.1-develop6
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue