Image Error fix

This commit is contained in:
meisnate12 2021-12-19 13:48:30 -05:00
parent df24853936
commit fb2aa1a085

View file

@ -695,7 +695,7 @@ class Plex(Library):
if item_dir and self.dimensional_asset_rename and (not poster or not background):
for file in util.glob_filter(os.path.join(item_dir, "*.*")):
if file.lower().endswith((".jpg", ".png", ".jpeg")):
image = Image.open(poster)
image = Image.open(file)
_w, _h = image.size
image.close()
if not poster and _h > _w: