from PIL import Image
# Load the original image that has the Cape Verde Islands
image_path = "/mnt/data/A_wooden_wall_clock_dedicated_to_the_Cape_Verde_Is.png"
image = Image.open(image_path).convert("RGBA")
# Crop just the area with Cape Verde islands (manually estimated area)
# These values might need refining for a precise layout
cropped = image.crop((280, 280, 520, 520)) # rough center region
# Resize to a square, ~5 inches on the 23-inch layout
cropped = cropped.resize((500, 500))
# Save the isolated islands portion to prepare for vector tracing
islands_img_path = "/mnt/data/cape_verde_islands_only.png"
cropped.save(islands_img_path)
islands_img_path