import base64, json

images = {}
for i in range(1, 10):
    path = f'examples/how/input_local_archive/{i}.jpeg'
    with open(path, 'rb') as f:
        data = base64.b64encode(f.read()).decode()
    images[str(i)] = data

with open('examples/how/features/images_b64.json', 'w') as f:
    json.dump(images, f)
print('done')
