Closed Nicolalorettu closed 1 year ago
I had to install pip install qrcode[pil]
, and it worked. Looks like it should work without it, so the issue is valid.
This should work now without pil (although it'll be a png file even if you called it "something.jpg"
) in the version I just released.
Previously the pure png factory needed :
with open("youtubeQR.jpg", "wb") as f:
img.save(f)
I tried the library in both linux vm and windows 11 with the same results
import qrcode img = qrcode.make("https://www.youtube.com/") img.save("youtubeQR.jpg")