logoalt Hacker News

notpushkin10/01/20242 repliesview on HN

Ah, yes. The classic “works on my device” argument.

Edit: from testing with zbarimg on my laptop: Basic, Camo, Neon (inverted), Glass, Blocks, Alien all seem to work reliably. Not sure what the problem is with some others, but maybe they’ll also work with some tweaking (Mondrian seems simple enough! maybe contrast issues?)

  wl-paste -t image/png | zbarimg -
  # macOS:
  pngpaste | zbarimg -
Edit 2: for codes that will definitely be scanned using a camera [1], some styles can work because phone camera isn’t perfect. E.g. if you slightly blur Dots, it works with zbarimg, which also means it would work if you slightly move around your phone.

[1]: Screenshots are used sometimes! E.g. for importing TOTP codes into a password manager, etc.


Replies

tambourine_man10/01/2024

How have I never heard of pngpaste before?

https://github.com/jcsalterego/pngpaste

Thanks

show 1 reply
keepamovin10/01/2024

Precisely the OP.

More importantly it's sad and bad when a obvious negative comment is at the top of a front-page Show HN, that misrepresents and then deigns to provide recommendations against this nascent beautiful project that needs our support. Effectively shutting down the experience and enjoyment for incoming audience, and for the creator.

That is a very bad thing and should not be tolerated. Speak up against it.

show 2 replies