libdmtx Ruby Wrapper

1. libdmtx Installation

libdmtx must be installed on your system before trying to install and run the Ruby wrapper. Refer to the General Instructions for this.

2. RMagick Installation

In addition to libdmtx, the libdmtx Ruby wrapper also relies on RMagick, available at

3. libdmtx-ruby Installation

$ ruby extconf.rb --with-dmtx-dir=/same/path/as/libdmtx
$ make clean
$ make

4. Usage

Once the plug-in is built, you can toy around with the "test.rb" sample script. It demonstrates both reading and writing.


$ ruby test.rb /path/to/an/image.file


$ ruby test.rb

It will write something to "output.png".

5. Anything Else?

Is something missing from these instructions? If you spent hours searching for a solution that you feel should be included here then please update this page directly.

[Add your documentation hereā€¦]

6. This Document

Updates to this page ultimate feed into the wrapper/ruby/README file that is distributed with the source package. If you are looking for information specific to an older release, please refer to this file as it exists in that package version.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License