saving qr as image file #73
-
sorry for asking, but I can not find out how to save the generated qr code to a file in a defined directory (no need to show it on screen) - without user interaction. Any help appreciated - thx |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Just add the path to the destination file as second parameter to the $qrcode->render($data, '/path/to/file.svg'); See also: Advanced usage in the wiki. |
Beta Was this translation helpful? Give feedback.
-
Glad it worked now! The safest bet would probably be using the |
Beta Was this translation helpful? Give feedback.
-
Is there a better way to do this? It does not work for me for some reason. |
Beta Was this translation helpful? Give feedback.
Just add the path to the destination file as second parameter to the
render()
method like so:See also: Advanced usage in the wiki.