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

"unknown mode" issue #4

Open
jathayde opened this issue Jun 9, 2017 · 1 comment
Open

"unknown mode" issue #4

jathayde opened this issue Jun 9, 2017 · 1 comment

Comments

@jathayde
Copy link

jathayde commented Jun 9, 2017

Running a complex test image but getting error codes (mode 11). Ruby 2.2.5

irb(main):001:0> require 'qrio'
=> true
irb(main):002:0> puts Qrio::Qr.load("258atest.png").qr.text
RuntimeError: Unknown mode 11
	from /Users/jathayde/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/qrio-0.0.1/lib/qrio/qr_matrix.rb:312:in `set_mode'
	from /Users/jathayde/.rbenv/versions/2.2.5/lib/ruby/gems/2.2.0/gems/qrio-0.0.1/lib/qrio/qr_matrix.rb:203:in `text'
	from (irb):2
	from /Users/jathayde/.rbenv/versions/2.2.5/bin/irb:11:in `<main>'

Attached the failing image. Another image failed with mode 10 (alphanumeric?).

258atest

@noraj
Copy link

noraj commented Apr 25, 2018

I have the same issue with an image only containing a pure valid qr code:

RuntimeError: Unknown mode 10
	from /home/noraj/.rvm/gems/ruby-2.4.0/gems/qrio-0.0.1/lib/qrio/qr_matrix.rb:312:in `set_mode'
	from /home/noraj/.rvm/gems/ruby-2.4.0/gems/qrio-0.0.1/lib/qrio/qr_matrix.rb:203:in `text'
	from (irb):5
	from /home/noraj/.rvm/rubies/ruby-2.4.0/bin/irb:11:in `<main>'

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