from zplgrf import convert
from PIL import Image

img = Image.open("/Users/oguzhangonel/Downloads/mrakovic_logo.jpg").convert("1")  # 1-bit B/W
zpl_code = convert(img)

with open("mrakovic_logo.zpl", "w") as f:
    f.write(zpl_code)
