import zipfile # Paths image_file = "/mnt/data/shop_layout_marked.jpg" zip_path = "/mnt/data/shop_layout_marked.zip" # Create ZIP with zipfile.ZipFile(zip_path, 'w') as zipf: zipf.write(image_file, arcname="shop_layout_marked.jpg") zip_path