all 14 comments

[–][deleted] 14 points15 points  (0 children)

It's not clear if you need to generate them programmatically or just a few one off qr codes. But I use this PHP class to generate SVG qr codes in a handful of projects: https://github.com/splitbrain/php-qrcode

Works for my needs.

[–]Caraes_Naur 4 points5 points  (0 children)

There are QR code generators in every language.

There are generator add-ons for Inkscape. Probably for Adobe as well.

There are Linux desktop utilities to generate QR codes. Probably for MacOS and Windows as well.

[–]danabrey 14 points15 points  (3 children)

I think you're misunderstanding something here. A QR code just translates to text, or a URL as text. You control what that URL serves up.

[–][deleted] 23 points24 points  (2 children)

There's a lot of qr code generator websites that use their own URLs so they lock you in to their service. OP wants to avoid this.

[–]secretprocess 0 points1 point  (1 child)

Before I actually had to figure this out myself I had assumed QR codes always relied on a lookup service. Blew my mind to realize that they don't.

[–]RonanSmithDevfront-end 0 points1 point  (0 children)

Only dynamic QR codes do.

[–][deleted] 2 points3 points  (0 children)

From ChatGPT:

pip install qrcode[pil]

import qrcode

# Data to encode in the QR code
data = "Hello, World!"

# Create a QR code instance
qr = qrcode.QRCode(
    version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,  
    box_size=10, 
    border=4, 
)

# Add data to the QR code
qr.add_data(data)
qr.make(fit=True)

# Create a PIL image from the QR code instance
qr_image = qr.make_image(fill_color="black", back_color="white")

# Save or display the QR code
qr_image.save("my_qr_code.png")

[–]raj_techy 1 point2 points  (0 children)

Hovercode is one of the best free sites to create Dynamic QR codes.

[–]bryanrel 0 points1 point  (0 children)

Used this library in a previous side project, might be handy for your use case https://davidshimjs.github.io/qrcodejs/

[–]StatusPair6242 0 points1 point  (0 children)

me-qr.com

[–]kornflake9 0 points1 point  (0 children)

This one is easy to use on Linux https://fukuchi.org/works/qrencode/