News for hackers. Stuff that matters.
Re:Show HN: Generating a HTML QR code by machinespit on Friday November 25, 2011 @06:48PM (#3278595)
saving the qr code doesn't add the .png extension (it just downloads a "download" file, not "download.png"). I'm using Chrome 15 on Win7.
Re:Show HN: Generating a HTML QR code by pa7 on Friday November 25, 2011 @07:01PM (#3278633)
Hey! I know and I also know that this isn't nice. It is because QR-Designer is using the HTML Canvas' toDataURL function to save the image. The download then gets initiated by setting the dataurl as the document.location.href. Unfortunately I can't control the file name with that technique. I'd really appreciate any hints on how to solve that better (without a server)

Edit: By the way if you're wondering what he's talking about. It's QR-Designer: http://www.patrick-wied.at/projects/qr-designer/