File: README

package info (click to toggle)
libdmtx 0.7.2-2%2Bbuild1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,676 kB
  • sloc: sh: 10,371; ansic: 10,144; cs: 596; makefile: 204; java: 161; objc: 157; python: 125; perl: 28; php: 18; ruby: 16
file content (58 lines) | stat: -rw-r--r-- 1,496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
README for libdmtx-ruby version 0.7.2 - September 4, 2009
-----------------------------------------------------------------

libdmtx-ruby is a Ruby wrapper for libdmtx that was written by
Romain Goyet and is distributed as part of the libdmtx package.


1. libdmtx Installation
-----------------------------------------------------------------

libdmtx must be installed on your system before installing and
running 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:

  http://rmagick.rubyforge.org/


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.

Reading:

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

Writing:

  $ ruby test.rb

It will write something to "output.png".


5. This Document
-----------------------------------------------------------------

This document is derived from the wiki page located at:

  http://libdmtx.wikidot.com/libdmtx-ruby-wrapper

If you find an error or have additional helpful information,
please edit the wiki directly with your updates.