Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy-the-code #12

Open
drien opened this issue Nov 12, 2024 · 2 comments
Open

Copy-the-code #12

drien opened this issue Nov 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@drien
Copy link
Owner

drien commented Nov 12, 2024

Since we've already generated a QRCode from the clipboard, why not have a button that allows copying the image itself to the clipboard for purposes other than scanning?

Per a review from ronnyvegas.

@drien drien added the enhancement New feature or request label Nov 12, 2024
@drien
Copy link
Owner Author

drien commented Nov 14, 2024

The QR is currently being rendered as an SVG, however it seems that clipboard support for treating image/svg+xml as an actual image is not so great, so the only way to accomplish this would be to render the image as a different format. Presumably that leaves two options: use a different JS library that can render a QR as a PNG, or use something to convert the SVG to PNG. AFAIK there's nothing widely available preinstalled on Linux distros that we could shell out to.

@drien
Copy link
Owner Author

drien commented Dec 6, 2024

GNOME seems to include librsvg which provides... rsvg-convert, so that's the ideal path here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant