logoalt Hacker News

keepamovin10/01/20245 repliesview on HN

[flagged]


Replies

notpushkin10/01/2024

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.

show 2 replies
echoangle10/01/2024

If you want to use something for production, you shouldn’t only test on the latest stuff you personally have at home but on the crappiest stuff you reasonably expect users to have. Otherwise, you get websites that lag and spin up the fans on everybody’s laptops while the developer is happy on his workstation with 32 cores and a gaming GPU.

show 2 replies
codepeddler10/01/2024

Interestingly enough, it didn't work well with my android. Only couple of them were scanned easily.

show 1 reply
keepamovin10/01/2024

I got all 21 to scan: iOS 18, 3 - 4 inches from retina display. All scanned within 1 second. Definitely recommend this!!!

Wow this style looks so cool!

show 1 reply
franga200010/01/2024

Ah yes, scanned using a proprietary app on a thousand-dollar phone from the bright screen of a thousand-or-more-dollar computer: the only use-case imaginable, no reason any person would ever be using anything else...

If it doesn't work on a 150$ Android phone using all of the 10 top results for "qr scanner" in the Play Store when scanned from a dirty TN panel or faded inkjet print in bad lighting: you are failing your users, turn off your graphic designer brain and think about usability.

show 1 reply