One way, if you're on Debian/Ubuntu or similar, is from the terminal: qrencode --type png --size 256 --output <filename>.png "lightning:<user>@<domain.tld>" There are other output types such as "ansiutf8" that can output to the terminal.
LOL