import base64
import subprocess
from pathlib import Path
OUT = Path(__file__).resolve().parent
WIDTH, HEIGHT = 3584, 768
source = (OUT / "orange_juice_wrap.png").read_bytes()
assert b"100%" not in (OUT / "orange_juice_wrap.svg").read_bytes()
encoded = base64.b64encode(source).decode("ascii")
def orange_icon(cx):
return f'''
'''
svg = f''''''
svg_path = OUT / "orange_juice_wrap_wide.svg"
svg_path.write_text(svg, encoding="utf-8")
subprocess.run(["sips", "-s", "format", "png", str(svg_path), "--out", str(OUT / "orange_juice_wrap_wide.png")], check=True)
print(OUT / "orange_juice_wrap_wide.png")