rmagick 1.7.4 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +10 -2
- data/README.html +284 -290
- data/README.txt +298 -307
- data/configure +180 -11
- data/configure.ac +18 -2
- data/doc/comtasks.html +1 -1
- data/doc/constants.html +15 -10
- data/doc/css/ref.css +67 -0
- data/doc/draw.html +1 -1
- data/doc/ex/InitialCoords.rb +24 -0
- data/doc/ex/NewCoordSys.rb +33 -0
- data/doc/ex/OrigCoordSys.rb +19 -0
- data/doc/ex/PreserveAspectRatio.rb +206 -0
- data/doc/ex/RotateScale.rb +38 -0
- data/doc/ex/Skew.rb +39 -0
- data/doc/ex/Use01.rb +17 -0
- data/doc/ex/Use02.rb +22 -0
- data/doc/ex/Use03.rb +17 -0
- data/doc/ex/ViewBox.rb +34 -0
- data/doc/ex/arcs01.rb +29 -0
- data/doc/ex/arcs02.rb +62 -0
- data/doc/ex/baseline_shift01.rb +19 -0
- data/doc/ex/bounding_box.rb +31 -37
- data/doc/ex/circle01.rb +18 -0
- data/doc/ex/cubic01.rb +46 -0
- data/doc/ex/cubic02.rb +95 -0
- data/doc/ex/drop_shadow.rb +1 -1
- data/doc/ex/ellipse01.rb +23 -0
- data/doc/ex/evenodd.rb +44 -0
- data/doc/ex/font_styles.rb +29 -0
- data/doc/ex/group.rb +27 -0
- data/doc/ex/image.rb +47 -0
- data/doc/ex/images/big-duck.gif +0 -0
- data/doc/ex/images/duck.gif +0 -0
- data/doc/ex/images/duck0.gif +0 -0
- data/doc/ex/images/duck1.gif +0 -0
- data/doc/ex/images/duck10.gif +0 -0
- data/doc/ex/images/duck11.gif +0 -0
- data/doc/ex/images/duck12.gif +0 -0
- data/doc/ex/images/duck13.gif +0 -0
- data/doc/ex/images/duck14.gif +0 -0
- data/doc/ex/images/duck15.gif +0 -0
- data/doc/ex/images/duck2.gif +0 -0
- data/doc/ex/images/duck3.gif +0 -0
- data/doc/ex/images/duck4.gif +0 -0
- data/doc/ex/images/duck5.gif +0 -0
- data/doc/ex/images/duck6.gif +0 -0
- data/doc/ex/images/duck7.gif +0 -0
- data/doc/ex/images/duck8.gif +0 -0
- data/doc/ex/images/duck9.gif +0 -0
- data/doc/ex/line01.rb +24 -0
- data/doc/ex/nested_rvg.rb +22 -0
- data/doc/ex/nonzero.rb +44 -0
- data/doc/ex/polygon01.rb +24 -0
- data/doc/ex/polyline01.rb +24 -0
- data/doc/ex/quad01.rb +37 -0
- data/doc/ex/rect01.rb +16 -0
- data/doc/ex/rect02.rb +23 -0
- data/doc/ex/rvg_clippath.rb +15 -0
- data/doc/ex/rvg_linecap.rb +44 -0
- data/doc/ex/rvg_linejoin.rb +42 -0
- data/doc/ex/rvg_opacity.rb +20 -0
- data/doc/ex/rvg_pattern.rb +27 -0
- data/doc/ex/rvg_stroke_dasharray.rb +13 -0
- data/doc/ex/sepiatone.rb +15 -0
- data/doc/ex/shadow.rb +37 -0
- data/doc/ex/smile.rb +9 -9
- data/doc/ex/stroke_fill.rb +12 -0
- data/doc/ex/text01.rb +18 -0
- data/doc/ex/text_styles.rb +22 -0
- data/doc/ex/texture_fill_to_border.rb +3 -3
- data/doc/ex/texture_floodfill.rb +3 -2
- data/doc/ex/tref01.rb +26 -0
- data/doc/ex/triangle01.rb +17 -0
- data/doc/ex/tspan01.rb +19 -0
- data/doc/ex/tspan02.rb +20 -0
- data/doc/ex/tspan03.rb +22 -0
- data/doc/ex/writing_mode01.rb +28 -0
- data/doc/ex/writing_mode02.rb +27 -0
- data/doc/ilist.html +1 -1
- data/doc/image1.html +66 -30
- data/doc/image2.html +1 -1
- data/doc/image3.html +274 -49
- data/doc/imageattrs.html +87 -10
- data/doc/imusage.html +1 -1
- data/doc/index.html +80 -39
- data/doc/info.html +149 -13
- data/doc/magick.html +1 -1
- data/doc/rvg.html +890 -0
- data/doc/rvgclip.html +249 -0
- data/doc/rvggroup.html +305 -0
- data/doc/rvgimage.html +288 -0
- data/doc/rvgpattern.html +456 -0
- data/doc/rvgshape.html +376 -0
- data/doc/rvgstyle.html +269 -0
- data/doc/rvgtext.html +464 -0
- data/doc/rvgtspan.html +237 -0
- data/doc/rvgtut.html +512 -0
- data/doc/rvguse.html +145 -0
- data/doc/rvgxform.html +294 -0
- data/doc/struct.html +9 -71
- data/doc/usage.html +22 -7
- data/ext/RMagick/MANIFEST +94 -2
- data/ext/RMagick/rmagick.h +10 -4
- data/ext/RMagick/rmagick_config.h.in +8 -2
- data/ext/RMagick/rmdraw.c +2 -2
- data/ext/RMagick/rmfill.c +2 -2
- data/ext/RMagick/rmilist.c +3 -3
- data/ext/RMagick/rmimage.c +152 -5
- data/ext/RMagick/rminfo.c +208 -2
- data/ext/RMagick/rmmain.c +14 -5
- data/ext/RMagick/rmutil.c +83 -22
- data/lib/RMagick.rb +2 -2
- data/lib/rvg/clippath.rb +46 -0
- data/lib/rvg/container.rb +129 -0
- data/lib/rvg/deep_equal.rb +54 -0
- data/lib/rvg/describable.rb +51 -0
- data/lib/rvg/embellishable.rb +395 -0
- data/lib/rvg/misc.rb +729 -0
- data/lib/rvg/paint.rb +48 -0
- data/lib/rvg/pathdata.rb +129 -0
- data/lib/rvg/rvg.rb +279 -0
- data/lib/rvg/stretchable.rb +150 -0
- data/lib/rvg/stylable.rb +116 -0
- data/lib/rvg/text.rb +185 -0
- data/lib/rvg/transformable.rb +131 -0
- data/lib/rvg/units.rb +64 -0
- data/rmagick.gemspec +1 -1
- data/uninstall.rb +3 -2
- metadata +96 -3
data/ChangeLog
CHANGED
@@ -1,11 +1,19 @@
|
|
1
|
+
RMagick 1.8.0
|
2
|
+
o Added Image#shadow (ImageMagick 6.1.7)
|
3
|
+
o Added Image::Info#undefine, #[], #[]=
|
4
|
+
o Added sigmoidal_contrast_channel, sepiatone to Image class (ImageMagick 6.2.1)
|
5
|
+
o Added JPEG2000Compression constant (ImageMagick 6.2.2)
|
6
|
+
o Incorporated RVG classes
|
7
|
+
o Added RVG documentation, examples, updated installer
|
8
|
+
o Tested with ImageMagick 6.2.2-0, latest GraphicsMagick 1.2
|
9
|
+
|
1
10
|
RMagick 1.7.4
|
2
11
|
o Fix bug #1727
|
3
12
|
o Fix affine_transform.rb
|
4
13
|
o Tested with ImageMagick 6.2.1
|
5
14
|
|
6
15
|
RMagick 1.7.3
|
7
|
-
o Fix bug #1553
|
8
|
-
|
16
|
+
o Fix bug #1553, a build issue with ImageMagick 6.0.x
|
9
17
|
|
10
18
|
RMagick 1.7.2
|
11
19
|
o Fix bugs #1308, #1310, #1314, #1533
|
data/README.html
CHANGED
@@ -1,122 +1,108 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title>RMagick 1.
|
4
|
+
<title>RMagick 1.8.0 README</title>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
6
6
|
<meta name="GENERATOR" content="BlueCloth">
|
7
7
|
</head>
|
8
8
|
<body>
|
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
|
-
Introduction
|
39
|
-
</code></pre>
|
9
|
+
<h1>RMagick 1.8.0 README</h1>
|
10
|
+
|
11
|
+
<h2>04/30/05</h2>
|
12
|
+
|
13
|
+
<h2>Table Of Contents</h2>
|
14
|
+
|
15
|
+
<ul>
|
16
|
+
<li><a href="#intro">Introduction</a></li>
|
17
|
+
<li><a href="#contact">Contact Information</a></li>
|
18
|
+
<li><a href="#prereq">Prerequisites</a></li>
|
19
|
+
<li><a href="#tips">Tips for installing and configuring ImageMagick and GraphicsMagick</a></li>
|
20
|
+
<li><a href="#install">Installing RMagick</a>
|
21
|
+
<ul>
|
22
|
+
<li><a href="#options">Configuration options</a></li>
|
23
|
+
<li><a href="#scripts">Running the configure and make scripts</a></li>
|
24
|
+
</ul></li>
|
25
|
+
<li><a href="#uhoh">Things that can go wrong</a></li>
|
26
|
+
<li><a href="#upgrade">Upgrading</a></li>
|
27
|
+
<li><a href="#uninstall">Uninstalling</a></li>
|
28
|
+
<li><a href="#samples">More samples</a></li>
|
29
|
+
<li><a href="#undoc">Undocumented features</a></li>
|
30
|
+
<li><a href="#issues">Known issues</a></li>
|
31
|
+
<li><a href="#bugs">Reporting bugs</a></li>
|
32
|
+
<li><a href="#credits">Credits</a></li>
|
33
|
+
<li><a href="#license">License</a></li>
|
34
|
+
</ul>
|
35
|
+
|
36
|
+
<h2 id="intro">Introduction</h2>
|
40
37
|
|
41
38
|
<p>RMagick is an interface between the Ruby programming language and the
|
42
39
|
ImageMagick and GraphicsMagick image processing libraries.</p>
|
43
40
|
|
44
|
-
<
|
45
|
-
</code></pre>
|
41
|
+
<h2 id="contact">Contact Information</h2>
|
46
42
|
|
47
|
-
<p><
|
48
|
-
<em>Email:</em> rmagick@rubyforge.org <mailto:rmagick@rubyforge.org>
|
49
|
-
<em>RubyForge:</em> RMagick <a href="http://rubyforge.org/projects/rmagick">http://rubyforge.org/projects/rmagick</a></p>
|
43
|
+
<p><strong>Author:</strong> Tim Hunter</p>
|
50
44
|
|
51
|
-
<
|
52
|
-
</code></pre>
|
45
|
+
<p><strong>Email:</strong> <a href="mailto:rmagick@rubyforge.org">rmagick@rubyforge.org</a></p>
|
53
46
|
|
54
|
-
<p><
|
55
|
-
Linux, Sun Solaris, Cygwin, FreeBSD, MS Windows 98 and later.
|
56
|
-
<em>Ruby</em>
|
57
|
-
Ruby 1.6.7 or later. You can get Ruby from www.ruby-lang.org
|
58
|
-
<a href="http://www.ruby-lang.org">http://www.ruby-lang.org</a></p>
|
47
|
+
<p><strong>RubyForge:</strong> <a href="http://rubyforge.org/projects/rmagick/">http://rubyforge.org/projects/rmagick/</a></p>
|
59
48
|
|
60
|
-
<
|
49
|
+
<h2 id="prereq">Prerequisites</h2>
|
61
50
|
|
62
|
-
<p><
|
63
|
-
ImageMagick 6.0.0 or later. You can get ImageMagick from
|
64
|
-
www.imagemagick.org <a href="http://www.imagemagick.org">http://www.imagemagick.org</a>.
|
65
|
-
<em>GraphicsMagick</em>
|
66
|
-
GraphicsMagick is a friendly fork of ImageMagick 5.5.1. You can get
|
67
|
-
GraphicsMagick from www.graphicsmagick.org
|
68
|
-
<a href="http://www.graphicsmagick.org">http://www.graphicsmagick.org</a>.</p>
|
51
|
+
<p><strong>O/S:</strong> Linux, Sun Solaris, Cygwin, FreeBSD, MS Windows 98 and later.</p>
|
69
52
|
|
70
|
-
<p>
|
71
|
-
equally well with both. Some RMagick methods may not be supported in one
|
72
|
-
or the other library.</p>
|
53
|
+
<p><strong>Ruby</strong> 1.6.7 or later. You can get Ruby from <a href="http://www.ruby-lang.org">http://www.ruby-lang.org</a>.</p>
|
73
54
|
|
74
|
-
<
|
75
|
-
</
|
55
|
+
<p>Either <strong>ImageMagick</strong> 6.0.0 or later, or any release of
|
56
|
+
<strong>GraphicsMagick</strong>. GraphicsMagick is a friendly fork of ImageMagick
|
57
|
+
5.5.1. You can get ImageMagick from <a href="http://www.imagemagick.org">http://www.imagemagick.org</a>. You
|
58
|
+
can get GraphicsMagick from <a href="http://www.graphicsmagick.org">http://www.graphicsmagick.org</a>. ImageMagick
|
59
|
+
and GraphicsMagick have slightly different capabilities. Please consult
|
60
|
+
their web sites if you have questions.</p>
|
61
|
+
|
62
|
+
<h2 id="tips">Tips for installing and configuring ImageMagick and GraphicsMagick</h2>
|
76
63
|
|
77
|
-
<p>
|
64
|
+
<p>If you are installing RMagick by compiling the source code, I strongly
|
78
65
|
encourage you to install the latest version of ImageMagick or
|
79
|
-
GraphicsMagick
|
66
|
+
GraphicsMagick <em>from source</em>. If you have never installed ImageMagick or
|
80
67
|
GraphicsMagick before, I also strongly encourage you to read the
|
81
|
-
README.txt file as many times as is necessary for you to understand how
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<p>Do
|
87
|
-
for you.
|
88
|
-
Ruby, consider whether you want to skip ImageMagick's/
|
89
|
-
support for Perl and C++ by using the
|
90
|
-
|
91
|
-
installation process and save some disk space.
|
92
|
-
want to specify the
|
68
|
+
README.txt file as many times as is necessary for you to understand how to
|
69
|
+
configure it. ImageMagick and GraphicsMagick are large and complicated
|
70
|
+
programs and can be difficult to configure. Follow these tips to minimize
|
71
|
+
the amount of time you'll spend and your frustration level.</p>
|
72
|
+
|
73
|
+
<p><em>Do not</em> simply type <code>./configure</code> and expect the defaults to be correct
|
74
|
+
for you. Since you are installing ImageMagick/GraphicsMagick to use with
|
75
|
+
Ruby, consider whether you want to skip ImageMagick's/GraphicMagick's
|
76
|
+
support for Perl and C++ by using the <code>--without-perl</code> and
|
77
|
+
<code>--without-magick-plus-plus</code> options. Doing so will speed up the
|
78
|
+
installation process and save some disk space. You will almost certainly
|
79
|
+
want to specify the <code>--enable-shared</code> and <code>--disable-static</code> options.</p>
|
93
80
|
|
94
81
|
<p>Determine which image formats you are interested in using and make sure
|
95
|
-
that you have installed the libraries that ImageMagick/GraphicsMagick
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
for more information.</p>
|
82
|
+
that you have installed the libraries that ImageMagick/GraphicsMagick uses
|
83
|
+
to process these formats. ImageMagick and GraphicsMagick use additional
|
84
|
+
libraries to support some image formats. If you do not install those
|
85
|
+
libraries you cannot read and write those image formats. You will need to
|
86
|
+
configure ImageMagick/GraphicsMagick to support the JPG, PNG, TIFF, and
|
87
|
+
WMF formats in order to execute all the RMagick sample programs. See
|
88
|
+
ImageMagick's or GraphicMagick's README.txt file for more information.</p>
|
103
89
|
|
104
90
|
<p>Once you have determined the configuration options you need, run the
|
105
|
-
configure script.
|
106
|
-
configuration worked the way you expected.
|
107
|
-
summary output from ImageMagick's configure script.
|
91
|
+
configure script. When it completes, read the summary output to see if
|
92
|
+
configuration worked the way you expected. Here's an example of the
|
93
|
+
summary output from ImageMagick's configure script. Notice that the
|
108
94
|
result of each option is listed in the "Configured value" column.</p>
|
109
95
|
|
110
|
-
<
|
111
|
-
|
112
|
-
|
96
|
+
<pre><code> Option Value
|
97
|
+
-------------------------------------------------------------------------
|
98
|
+
Shared libraries --enable-shared=yes yes
|
113
99
|
Static libraries --enable-static=no no
|
114
100
|
Module support --with-modules=yes yes
|
115
101
|
GNU ld --with-gnu-ld=yes yes
|
116
102
|
LZW support --enable-lzw=yes yes
|
117
|
-
Quantum depth --with-quantum-depth=8 8
|
103
|
+
Quantum depth --with-quantum-depth=8 8
|
118
104
|
|
119
|
-
|
105
|
+
Delegate Configuration:
|
120
106
|
BZLIB --with-bzlib=yes yes
|
121
107
|
DPS --with-dps=yes yes
|
122
108
|
FlashPIX --with-fpx=yes no
|
@@ -137,288 +123,296 @@ Windows fonts --with-windows-font-dir=/mnt/windows/windows/fonts /mnt/win
|
|
137
123
|
WMF --with-wmf=yes yes
|
138
124
|
X11 --with-x= yes
|
139
125
|
XML --with-xml=yes yes
|
140
|
-
ZLIB --with-zlib=yes yes
|
126
|
+
ZLIB --with-zlib=yes yes
|
141
127
|
|
142
|
-
|
128
|
+
X11 Configuration:
|
143
129
|
X_CFLAGS = -I/usr/X11R6/include
|
144
|
-
|
130
|
+
X_PRE_LIBS = -lSM -lICE
|
145
131
|
X_LIBS = -L/usr/X11R6/lib
|
146
|
-
|
132
|
+
X_EXTRA_LIBS =
|
133
|
+
</code></pre>
|
147
134
|
|
148
135
|
<p>If the results are not what you wanted, install any missing libraries,
|
149
136
|
choose new or different options, or whatever it takes, erase the
|
150
|
-
config.cache file, and re-run configure
|
151
|
-
before moving to the <code>make
|
137
|
+
config.cache file, and re-run <code>configure</code>. Repeat as often as necessary
|
138
|
+
before moving to the <code>make</code> and <code>make install</code> steps.</p>
|
152
139
|
|
153
140
|
<p>Detailed information about all of ImageMagick's and GraphicsMagick's
|
154
141
|
configuration options may be found in their README.txt and INSTALL.txt
|
155
142
|
files.</p>
|
156
143
|
|
157
|
-
<
|
158
|
-
</code></pre>
|
144
|
+
<h4>Windows Metafile Format</h4>
|
159
145
|
|
160
146
|
<p>As noted in the ImageMagick and GraphicsMagick README.txt files, to
|
161
|
-
support images in the Windows Metafile format,
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
147
|
+
support images in the Windows Metafile format, ImageMagick/GraphicsMagick
|
148
|
+
requires an additional library. Without this library some of the RMagick
|
149
|
+
sample programs will not work. ImageMagick and GraphicsMagick require
|
150
|
+
libwmf 0.2.5, 0.2.7, or 0.2.2 to support the WMF format. (Avoid libwmf
|
151
|
+
0.2.6!)</p>
|
166
152
|
|
167
|
-
<
|
168
|
-
</code></pre>
|
153
|
+
<h2 id="install">Installing RMagick</h2>
|
169
154
|
|
170
155
|
<p>Installing RMagick is much simpler than installing ImageMagick or
|
171
|
-
GraphicsMagick.
|
172
|
-
This process both builds the example images used in the documentation
|
173
|
-
|
156
|
+
GraphicsMagick. Note that the make step runs all the example programs.
|
157
|
+
This process both builds the example images used in the documentation and
|
158
|
+
validates your RMagick installation. This step can take 5-15 minutes
|
174
159
|
depending on the speed of your computer.</p>
|
175
160
|
|
176
|
-
<
|
177
|
-
</code></pre>
|
161
|
+
<h4 id="options">Configuration Options</h4>
|
178
162
|
|
179
|
-
<p>Type
|
163
|
+
<p>Type <code>./configure --help</code> to see a list of configuration options. In
|
180
164
|
addition to the regular options, there are a few RMagick-specific options:</p>
|
181
165
|
|
182
|
-
<
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
</
|
213
|
-
|
214
|
-
<
|
215
|
-
|
166
|
+
<ul>
|
167
|
+
<li><p>--with-doc-dir=<em>directory</em></p>
|
168
|
+
|
169
|
+
<blockquote>
|
170
|
+
<p>Specify the directory to install the RMagick documentation.
|
171
|
+
By default this is $prefix/share/RMagick, where $prefix is the
|
172
|
+
prefix specified by --prefix. For example, to install the
|
173
|
+
documentation in /home/user/RMagick, specify:</p>
|
174
|
+
|
175
|
+
<p><code>./configure --with-doc-dir=/home/user/RMagick</code></p>
|
176
|
+
</blockquote></li>
|
177
|
+
<li><p>--enable-allow-example-errors</p>
|
178
|
+
|
179
|
+
<blockquote>
|
180
|
+
<p>Normally the documentation installation terminates if 5 examples fail.
|
181
|
+
If you use this option, the installation does not check for failing
|
182
|
+
examples and will always complete. This option is useful if you're having
|
183
|
+
trouble installing RMagick and you want to see all the failing examples.</p>
|
184
|
+
</blockquote></li>
|
185
|
+
<li><p>--with-graphics-magick</p>
|
186
|
+
|
187
|
+
<blockquote>
|
188
|
+
<p>If you have both ImageMagick and GraphicsMagick installed, this option will
|
189
|
+
force RMagick to be configured with GraphicsMagick.</p>
|
190
|
+
</blockquote></li>
|
191
|
+
<li><p>--with-so-dir=<em>directory</em></p>
|
192
|
+
|
193
|
+
<blockquote>
|
194
|
+
<p>The directory for ruby extensions.</p>
|
195
|
+
</blockquote></li>
|
196
|
+
<li><p>--with-ruby-path=<em>directory</em></p>
|
197
|
+
|
198
|
+
<blockquote>
|
199
|
+
<p>The path to set the !# line in Ruby scripts. The default is $prefix/bin/ruby.</p>
|
200
|
+
</blockquote></li>
|
201
|
+
<li><p>--with-ruby-prog=<em>name</em></p>
|
202
|
+
|
203
|
+
<blockquote>
|
204
|
+
<p>The name of the Ruby executable. The default is <code>ruby</code>.</p>
|
205
|
+
</blockquote></li>
|
206
|
+
<li><p>--with-make-prog=<em>name</em></p>
|
207
|
+
|
208
|
+
<blockquote>
|
209
|
+
<p>The name of the <code>make</code> program.</p>
|
210
|
+
</blockquote></li>
|
211
|
+
<li><p>--with-rbconfig=<em>directory</em></p>
|
212
|
+
|
213
|
+
<blockquote>
|
214
|
+
<p>The directory of the rbconfig.rb file to use. The default is Ruby's
|
215
|
+
rbconfig.</p>
|
216
|
+
</blockquote></li>
|
217
|
+
</ul>
|
218
|
+
|
219
|
+
<h4 id="scripts">Running the <code>configure</code> and <code>make</code> scripts</h4>
|
220
|
+
|
221
|
+
<p>De-compress the RMagick-1.8.0.tar.gz archive and enter the top
|
222
|
+
directory. Then type:</p>
|
216
223
|
|
217
224
|
<pre><code>$ ./configure <configuration options>
|
218
225
|
$ make
|
226
|
+
($ su)
|
227
|
+
$ make install
|
228
|
+
(optionally)
|
229
|
+
$ make clean
|
219
230
|
</code></pre>
|
220
231
|
|
221
|
-
<
|
222
|
-
$ make install
|
223
|
-
(optionally)
|
224
|
-
$ make clean</p>
|
225
|
-
|
226
|
-
<pre><code>Things that can go wrong
|
227
|
-
</code></pre>
|
232
|
+
<h2 id="uhoh">Things that can go wrong</h2>
|
228
233
|
|
229
|
-
<
|
234
|
+
<h4>Cannot open shared object file</h4>
|
230
235
|
|
231
|
-
<
|
232
|
-
</code></pre>
|
236
|
+
<p>When make is running the examples, if you get a message like this:</p>
|
233
237
|
|
234
|
-
<
|
238
|
+
<pre><code>/home/you/RMagick-1.8.0/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
235
239
|
cannot open shared object file: No such file or directory -
|
236
|
-
/home/you/RMagick-1.
|
237
|
-
|
238
|
-
<pre><code>you probably do not have the directory in which the ImageMagick or
|
239
|
-
GraphicsMagick library is installed in your load path. An easy way
|
240
|
-
to fix this is to define the directory in the LD_LIBRARY_PATH
|
241
|
-
environment variable. For example, suppose you installed the
|
242
|
-
GraphicsMagick library libGraphicsMagick.so in /usr/local/lib. (By
|
243
|
-
default this is where it is installed.) Create the LD_LIBRARY_PATH
|
244
|
-
variable like this:
|
240
|
+
/home/you/RMagick-1.8.0/ext/RMagick/RMagick.so (LoadError)
|
245
241
|
</code></pre>
|
246
242
|
|
247
|
-
<p>
|
243
|
+
<p>you probably do not have the directory in which the ImageMagick or GraphicsMagick
|
244
|
+
library is installed in your load path. An easy way to fix this is to define the
|
245
|
+
directory in the LD<em>LIBRARY</em>PATH environment variable. For example, suppose you
|
246
|
+
installed the GraphicsMagick library libGraphicsMagick.so in /usr/local/lib.
|
247
|
+
(By default this is where it is installed.) Create the LD<em>LIBRARY</em>PATH variable
|
248
|
+
like this:</p>
|
248
249
|
|
249
|
-
<pre><code>
|
250
|
-
operating systems, see the documentation for the dynamic loading
|
251
|
-
facility.
|
250
|
+
<pre><code>export LD_LIBRARY_PATH=/usr/local/lib
|
252
251
|
</code></pre>
|
253
252
|
|
254
|
-
<p
|
253
|
+
<p>On Linux, see <code>ld(1)</code> and <code>ld.so(8)</code> for more information. On other operating
|
254
|
+
systems, see the documentation for the dynamic loading facility.</p>
|
255
255
|
|
256
|
-
<
|
257
|
-
</code></pre>
|
256
|
+
<h4>No such file or directory - "/tmp/rmagick6872.6"</h4>
|
258
257
|
|
259
|
-
<p>
|
260
|
-
No such file or directory - "/tmp/rmagick6872.6"</p>
|
258
|
+
<p>When make is running the examples, if you get a message like this:</p>
|
261
259
|
|
262
|
-
<pre><code>
|
263
|
-
|
264
|
-
directory. For example:
|
260
|
+
<pre><code>hook /home/me/src/RMagick-1.8.0/./post-setup.rb failed:
|
261
|
+
No such file or directory - "/tmp/rmagick6872.6"
|
265
262
|
</code></pre>
|
266
263
|
|
267
|
-
<p>
|
264
|
+
<p>you probably do not have a temporary directory environment variable set. Set
|
265
|
+
the TMPDIR environment variable to your temporary directory. For example:</p>
|
268
266
|
|
269
|
-
<pre><code>
|
267
|
+
<pre><code>export TMPDIR=/home/me/tmp
|
270
268
|
</code></pre>
|
271
269
|
|
272
|
-
<
|
273
|
-
sure you're using a release of RMagick that supports that release.
|
274
|
-
Usually I put out a new release of RMagick with every new release of
|
275
|
-
ImageMagick. It's safe to install a newer release of RMagick over an
|
276
|
-
earlier release.</p>
|
270
|
+
<h2 id="upgrade">Upgrading</h2>
|
277
271
|
|
278
|
-
<
|
279
|
-
|
272
|
+
<p>If you upgrade to a newer release of ImageMagick or GraphicsMagick, make sure
|
273
|
+
you're using a release of RMagick that supports that release. Usually I put out
|
274
|
+
a new release of RMagick with every new release of ImageMagick. It's safe to
|
275
|
+
install a newer release of RMagick over an earlier release.</p>
|
280
276
|
|
281
|
-
<
|
277
|
+
<h2 id="uninstall">Uninstalling</h2>
|
282
278
|
|
283
|
-
<
|
279
|
+
<p>The <code>uninstall</code> target will uninstall RMagick completely:</p>
|
284
280
|
|
285
|
-
|
286
|
-
More samples
|
281
|
+
<pre><code>make uninstall
|
287
282
|
</code></pre>
|
288
283
|
|
284
|
+
<h2 id="samples">More samples</h2>
|
285
|
+
|
289
286
|
<p>You can find more sample RMagick programs in the /example directory.
|
290
287
|
These programs are not installed in the RMagick documentation tree.</p>
|
291
288
|
|
292
|
-
<
|
293
|
-
</code></pre>
|
289
|
+
<h2 id="undoc">Undocumented features</h2>
|
294
290
|
|
295
291
|
<p>This release includes an extra feature that isn't in the documentation.
|
296
292
|
The Magick module defines two methods that control ImageMagick's logging
|
297
|
-
function.
|
298
|
-
|
299
|
-
|
300
|
-
methods may change behavior or be removed without advance notice!
|
301
|
-
|
293
|
+
function. This function is not officially documented by ImageMagick, so I
|
294
|
+
have decided not to add them to RMagick's documentation. However, you may
|
295
|
+
find them helpful for debugging your application. (Caveat: these two
|
296
|
+
methods may change behavior or be removed without advance notice! You are
|
297
|
+
on your own!)</p>
|
302
298
|
|
303
|
-
<
|
299
|
+
<h5>Magick::set_log_event_mask(event [,...])</h5>
|
304
300
|
|
305
|
-
<p>The arguments are one or more "event domains".
|
306
|
-
method recognizes these event domains: "all", "annotate", "blob",
|
307
|
-
"
|
308
|
-
"
|
309
|
-
|
301
|
+
<p>The arguments are one or more "event domains". The set<em>log</em>event_mask
|
302
|
+
method recognizes these event domains: "all", "annotate", "blob", "cache",
|
303
|
+
"coder", "configure", "deprecate", "draw", "locale", "none", "resource",
|
304
|
+
"transform", "user", and "x11". ImageMagick events that match the mask
|
305
|
+
are logged. The default domain is "none". For example,</p>
|
310
306
|
|
311
|
-
<pre><code>
|
307
|
+
<pre><code> Magick::set_log_event_mask("render")
|
312
308
|
</code></pre>
|
313
309
|
|
314
|
-
<p>Logging is controlled by the log.mgk file, which may be found in the
|
315
|
-
|
310
|
+
<p>Logging is controlled by the log.mgk file, which may be found in the same
|
311
|
+
directory as the delegates.mgk files. (See ImageMagick's README.txt
|
316
312
|
file.) The purpose of the entries in this file is undocumented, so your
|
317
|
-
guess is as good as mine.
|
313
|
+
guess is as good as mine. Also, the meaning of the event domains and
|
318
314
|
exactly what events are logged are undocumented.</p>
|
319
315
|
|
320
|
-
<
|
321
|
-
|
322
|
-
<p>The default log format is described in the log.mgk file.
|
323
|
-
allows you to redefine the format at run-time.
|
324
|
-
string similar to an fprintf format string.
|
325
|
-
format described by the format string.
|
326
|
-
characters are printed as-is.
|
327
|
-
|
328
|
-
<pre><code>
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
%e - the event name
|
316
|
+
<h5>Magick::set_log_format(format)</h5>
|
317
|
+
|
318
|
+
<p>The default log format is described in the log.mgk file. This method
|
319
|
+
allows you to redefine the format at run-time. The format argument is a
|
320
|
+
string similar to an fprintf format string. Each line in the log has the
|
321
|
+
format described by the format string. Characters that are not control
|
322
|
+
characters are printed as-is. The control characters are:</p>
|
323
|
+
|
324
|
+
<pre><code> %t - the current time
|
325
|
+
%r - the elapsed time
|
326
|
+
%u - the user time
|
327
|
+
%p - the pid (process id)
|
328
|
+
%m - the name of the ImageMagick source file that contains the
|
329
|
+
function that generated the event
|
330
|
+
%f - the name of the ImageMagick function that generated the event
|
331
|
+
%l - the line number in the source file
|
332
|
+
%d - the event domain (one of the event mask strings listed above)
|
333
|
+
%e - the event name
|
339
334
|
</code></pre>
|
340
335
|
|
341
336
|
<p>For example, the default log format is:</p>
|
342
337
|
|
343
|
-
<pre><code>
|
344
|
-
|
345
|
-
|
346
|
-
Known issues
|
338
|
+
<pre><code> Magick::set_log_format("%t %r %u %p %m/%f/%l/%d:\n %e")
|
347
339
|
</code></pre>
|
348
340
|
|
349
|
-
<
|
350
|
-
<li>gcc 3.2, during the "install.rb setup" step, issues the warning:</li>
|
351
|
-
</ol>
|
352
|
-
|
353
|
-
<p>cc1: warning: changing search order for system directory "/usr/local/include"
|
354
|
-
cc1: warning: as it has already been specified as a non-system directory</p>
|
355
|
-
|
356
|
-
<pre><code> This does not indicate a problem.
|
357
|
-
</code></pre>
|
341
|
+
<h2 id="issues">Known issues</h2>
|
358
342
|
|
359
343
|
<ol>
|
360
|
-
<li>
|
361
|
-
|
362
|
-
|
363
|
-
<p>/usr/include/sys/ipc.h:25:3: warning: #warning "Files using this header must be compiled with <em>SVID</em>SOURCE or <em>XOPEN</em>SOURCE"</p>
|
344
|
+
<li><p>gcc 3.2, during the "install.rb setup" step, issues the following warning.
|
345
|
+
This does not indicate a problem.</p>
|
364
346
|
|
365
|
-
<
|
347
|
+
<p><code>cc1: warning: changing search order for system directory "/usr/local/include"</code> <br>
|
348
|
+
<code>cc1: warning: as it has already been specified as a non-system directory</code></p></li>
|
349
|
+
<li><p>With older releases of ImageMagick you may see this warning. It does not
|
350
|
+
indicate a problem.</p>
|
366
351
|
|
352
|
+
<p><code>/usr/include/sys/ipc.h:25:3: warning: #warning "Files using this header must
|
353
|
+
be compiled with _SVID_SOURCE or _XOPEN_SOURCE"</code></p></li>
|
354
|
+
</ol>
|
367
355
|
|
368
|
-
Reporting bugs
|
369
|
-
</code></pre>
|
356
|
+
<h2 id="bugs">Reporting bugs</h2>
|
370
357
|
|
371
358
|
<p>Please report bugs in RMagick, its documentation, or its installation
|
372
|
-
programs to me via the bug tracker on the RMagick project page
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
359
|
+
programs to me via the bug tracker on the <a href="http://rubyforge.org/projects/rmagick">RMagick project page at
|
360
|
+
RubyForge</a>. However, I can't help
|
361
|
+
with Ruby installation and configuration or ImageMagick or GraphicsMagick
|
362
|
+
installation and configuration. Please report problems with that software
|
363
|
+
to their respective authors or distributors.</p>
|
377
364
|
|
378
|
-
<
|
379
|
-
</code></pre>
|
365
|
+
<h2 id="credits">Credits</h2>
|
380
366
|
|
381
367
|
<p>Thanks to</p>
|
382
368
|
|
383
|
-
<
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
OR
|
413
|
-
|
414
|
-
IN
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
<
|
420
|
-
|
421
|
-
|
422
|
-
|
369
|
+
<ul>
|
370
|
+
<li>Akinori MUSHA, for his work making RMagick available on FreeBSD.</li>
|
371
|
+
<li>Tom Payne, for reporting bugs, sending me the Ruby 1.8.0 patches, and for the Gentoo ebuild.</li>
|
372
|
+
<li>Bob Friesenhahn, for GraphicsMagick. Also for his help with the RMagick installation and many other things.</li>
|
373
|
+
<li>Simple Systems, for hosting the RMagick documentation online.</li>
|
374
|
+
<li>Mike Williams, for the RMagick Debian package</li>
|
375
|
+
<li>ImageMagick Studio LLC, for ImageMagick and for hosting the RMagick documentation.</li>
|
376
|
+
<li>Kaspar Schiess, for the MS Windows gem.</li>
|
377
|
+
<li>Jeremy Hinegardner, for the amd64 patch.</li>
|
378
|
+
</ul>
|
379
|
+
|
380
|
+
<h2 id="license">License</h2>
|
381
|
+
|
382
|
+
<blockquote>
|
383
|
+
<p>Copyright � 2005 by Timothy P. Hunter</p>
|
384
|
+
|
385
|
+
<p>Permission is hereby granted, free of charge, to any person obtaining a
|
386
|
+
copy of this software and associated documentation files (the "Software"),
|
387
|
+
to deal in the Software without restriction, including without limitation
|
388
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
389
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
390
|
+
Software is furnished to do so, subject to the following conditions:</p>
|
391
|
+
|
392
|
+
<p>The above copyright notice and this permission notice shall be included in
|
393
|
+
all copies or substantial portions of the Software.</p>
|
394
|
+
|
395
|
+
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
396
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
397
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
398
|
+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
399
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
400
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
401
|
+
DEALINGS IN THE SOFTWARE.</p>
|
402
|
+
</blockquote>
|
403
|
+
|
404
|
+
<div align="center">
|
405
|
+
<a href="http://www.opensource.org/docs/definition.php">
|
406
|
+
<img src="http://opensource.org/trademarks/osi-certified/web/osi-certified-90x75.gif"
|
407
|
+
border="0" width="90" height="75">
|
408
|
+
</a>
|
409
|
+
</div>
|
410
|
+
|
411
|
+
<hr/>
|
412
|
+
|
413
|
+
<p><em>
|
414
|
+
This file is marked up using <a href="http://daringfireball.net/projects/markdown">Markdown</a>.
|
415
|
+
The HTML version was produced with <a href="http://bluecloth.rubyforge.org">BlueCloth</a>.
|
416
|
+
</em></p>
|
423
417
|
</body>
|
424
418
|
</html>
|