[94] resize full overlay images

This commit is contained in:
meisnate12 2023-02-24 14:37:51 -05:00
parent 460db75312
commit 7163acd05f
3 changed files with 6 additions and 1 deletions

View file

@ -1 +1 @@
1.18.3-develop93
1.18.3-develop94

View file

@ -309,6 +309,7 @@ class Overlays:
else:
new_poster = new_poster.resize(current_overlay.image.size, Image.LANCZOS)
new_poster.paste(current_overlay.image, (0, 0), current_overlay.image)
new_poster = new_poster.resize((canvas_width, canvas_height), Image.LANCZOS)
for queue, weights in queue_overlays.items():
cords = self.library.queues[queue]

View file

@ -1174,8 +1174,12 @@ class Plex(Library):
posters, backgrounds = util.get_image_dicts(group, alias)
if image_set and "poster" in image_set:
posters["image_set"] = image_set["poster"]
elif image_set and "poster_tpdb" in image_set:
posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['poster_tpdb']}"
if image_set and "background" in image_set:
backgrounds["image_set"] = image_set["background"]
elif image_set and "background_tpdb" in image_set:
posters["image_set"] = f"https://theposterdb.com/api/assets/{image_set['background_tpdb']}"
try:
asset_poster, asset_background, item_dir, folder_name = self.find_item_assets(item, item_asset_directory=asset_location, asset_directory=asset_directory)
if asset_poster: