from base64 import b64encode
img_path = “/mnt/data/Schermafbeelding 2026-01-08 151052.png”
with open(img_path, “rb”) as f:
b64 = b64encode(f.read()).decode(“utf-8″)
html = f”””
Foto te koop
Foto te koop
€2,00
“””
out_path = “/mnt/data/foto_te_koop.html”
with open(out_path, “w”, encoding=”utf-8″) as f:
f.write(html)
out_path