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

Feature: scan image from clipboard or screen #292

Open
joshgold22 opened this issue Aug 23, 2024 · 2 comments
Open

Feature: scan image from clipboard or screen #292

joshgold22 opened this issue Aug 23, 2024 · 2 comments

Comments

@joshgold22
Copy link

Would it be possible (or is it already) to read an image directly from the clipboard without having to save as a file (might use a temp file internally)

Similarly, would it be possible to just run a zbar command when there's a QR visible somewhere on the screen, without even copying to clipboard?

@danielwerg
Copy link

If you are use wl-clipboard you can do this:

wl-paste | zbarimg -

and

slurp | grim -g - - | zbarimg - --raw -q

@joshgold22
Copy link
Author

Thanks for the idea, I think this will work analogously as a workaround on mac osx — I was able to use it to dump the raw png file data to a pipe.
getclipb PNGf | ...
https://apple.stackexchange.com/a/375353/19289
macos - What's the quickest way to get a graphic on the clipboard saved to disk? - Ask Different

I can't confirm, though, because I'm new to zbar, and I see zbarimg is not working for me even with image files saved on disk, (including -S*.enable)

(Assuming I get zbar woriking, I still think it could be nice to have these two capacities built in, but perhaps they would require a lot of OS-specific tweaking.)

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

No branches or pull requests

2 participants