Test Content
Bold and Italic test
Test of word with Link
Stay hungry, stay foolish.
Steve Jobs
This is inline code
def get_image_aspect_ratios_and_buckets(folder_path, bucket_resolutions):
aspect_ratios_count = defaultdict(int)
bucket_count = defaultdict(int)
for filename in os.listdir(folder_path):
file_path = os.path.join(folder_path, filename)
if filename.lower().endswith(('.png', '.jpg', '.jpeg', '.bmp', '.gif')):
try:
with Image.open(file_path) as img:
width, height = img.size
aspect_ratio = calculate_aspect_ratio(width, height)
aspect_ratios_count[aspect_ratio] += 1
closest_bucket = get_bucket_for_resolution(width, height, bucket_resolutions)
bucket_count[closest_bucket] += 1
except Exception as e:
print(f"Can not deal with image {filename}: {e}")
return aspect_ratios_count, bucket_count
- Ordered list
- Content 1
- Content 2
- Unordered list
- Content 1
- Content 2
This is nuclear H2O