Skip to content

Commit

Permalink
Only store image size in image_size meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Nov 25, 2024
1 parent 4bd549d commit dc4c742
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dc4c742

Please sign in to comment.