From dc4c7427c8cc76f464ad82fc3e108b51fe1eabef Mon Sep 17 00:00:00 2001 From: Audionut Date: Mon, 25 Nov 2024 15:56:30 +1000 Subject: [PATCH] Only store image size in image_size meta --- src/prep.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/prep.py b/src/prep.py index 3c94d8d9..dcf9d180 100644 --- a/src/prep.py +++ b/src/prep.py @@ -153,10 +153,7 @@ async def check_and_collect(image_dict): ) return None - meta['image_sizes'][img_url] = { - "size": len(image_content), - "resolution": f"{image.width}x{image.height}", - } + meta['image_sizes'][img_url] = len(image_content) console.print( f"Valid image {img_url} with resolution {image.width}x{image.height} " f"and size {len(image_content) / 1024:.2f} KiB"