rmagick 1.15.7 → 1.15.8
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +8 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +10 -10
- data/configure.ac +1 -1
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +2 -2
- data/doc/draw.html +3 -3
- data/doc/ex/implode.rb +2 -0
- data/doc/ex/matte_fill_to_border.rb +6 -8
- data/doc/ex/matte_floodfill.rb +2 -3
- data/doc/ex/matte_replace.rb +2 -3
- data/doc/ilist.html +2 -2
- data/doc/image1.html +13 -28
- data/doc/image2.html +2 -2
- data/doc/image3.html +11 -19
- data/doc/imageattrs.html +2 -2
- data/doc/imusage.html +2 -2
- data/doc/index.html +3 -3
- data/doc/info.html +2 -2
- data/doc/magick.html +2 -2
- data/doc/optequiv.html +2 -2
- data/doc/rvg.html +2 -2
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +2 -2
- data/doc/rvgpattern.html +2 -2
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +2 -2
- data/doc/rvgtut.html +2 -2
- data/doc/rvguse.html +2 -2
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +2 -2
- data/doc/usage.html +2 -2
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmimage.c +69 -12
- data/post-setup.rb +2 -3
- data/rmagick.gemspec +1 -1
- metadata +125 -125
data/ChangeLog
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
RMagick 1.15.8
|
2
|
+
o Fixed bug #12671, incorrect link in HTML doc (bug report from Thomas R.
|
3
|
+
Koll
|
4
|
+
o Fixed bug #11890, incorrect usage description for Draw#text_undercolor in
|
5
|
+
HTML doc (bug report from Ezra Freedman)
|
6
|
+
o Fixed bug #12706, specifying both a gravity and offsets to Image#composite
|
7
|
+
positions the composite image incorrectly (bug report from Benoit Larroque)
|
8
|
+
|
1
9
|
RMagick 1.15.7
|
2
10
|
o Fix bug #11033, make distclean misses some files (bug report from Lucas
|
3
11
|
Nussbaum)
|
data/README.html
CHANGED
@@ -1,14 +1,14 @@
|
|
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.15.
|
4
|
+
<title>RMagick 1.15.8 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
|
-
<h1>RMagick 1.15.
|
9
|
+
<h1>RMagick 1.15.8 README</h1>
|
10
10
|
|
11
|
-
<h2>
|
11
|
+
<h2>08/01/07</h2>
|
12
12
|
|
13
13
|
<h2>Table Of Contents</h2>
|
14
14
|
|
@@ -41,7 +41,7 @@ ImageMagick and GraphicsMagick image processing libraries.</p>
|
|
41
41
|
|
42
42
|
<p><strong>Author:</strong> Tim Hunter</p>
|
43
43
|
|
44
|
-
<p><strong>Email:</strong> <a href="ma&#
|
44
|
+
<p><strong>Email:</strong> <a href="mailto:rmagick@rubyforge.org">rmagick@rubyforge.org</a></p>
|
45
45
|
|
46
46
|
<p><strong>RubyForge:</strong> <a href="http://rubyforge.org/projects/rmagick/">http://rubyforge.org/projects/rmagick/</a></p>
|
47
47
|
|
@@ -228,7 +228,7 @@ addition to the regular options, there are a few RMagick-specific options:</p>
|
|
228
228
|
|
229
229
|
<h4 id="scripts">Running the <code>configure</code> and <code>make</code> scripts</h4>
|
230
230
|
|
231
|
-
<p>De-compress the RMagick-1.15.
|
231
|
+
<p>De-compress the RMagick-1.15.8.tar.gz archive and enter the top
|
232
232
|
directory. Then type:</p>
|
233
233
|
|
234
234
|
<pre><code>$ ./configure <configuration options>
|
@@ -249,9 +249,9 @@ $ make clean
|
|
249
249
|
|
250
250
|
<p>When make is running the examples, if you get a message like this:</p>
|
251
251
|
|
252
|
-
<pre><code>/home/you/RMagick-1.15.
|
252
|
+
<pre><code>/home/you/RMagick-1.15.8/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
253
253
|
cannot open shared object file: No such file or directory -
|
254
|
-
/home/you/RMagick-1.15.
|
254
|
+
/home/you/RMagick-1.15.8/ext/RMagick/RMagick.so (LoadError)
|
255
255
|
</code></pre>
|
256
256
|
|
257
257
|
<p>you probably do not have the directory in which the ImageMagick or GraphicsMagick
|
@@ -271,7 +271,7 @@ systems, see the documentation for the dynamic loading facility.</p>
|
|
271
271
|
|
272
272
|
<p>When make is running the examples, if you get a message like this:</p>
|
273
273
|
|
274
|
-
<pre><code>hook /home/me/src/RMagick-1.15.
|
274
|
+
<pre><code>hook /home/me/src/RMagick-1.15.8/./post-setup.rb failed:
|
275
275
|
No such file or directory - "/tmp/rmagick6872.6"
|
276
276
|
</code></pre>
|
277
277
|
|
data/README.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
RMagick 1.15.
|
1
|
+
RMagick 1.15.8 README
|
2
2
|
================================
|
3
|
-
|
3
|
+
08/01/07
|
4
4
|
--------
|
5
5
|
|
6
6
|
Table Of Contents
|
@@ -196,7 +196,7 @@ addition to the regular options, there are a few RMagick-specific options:
|
|
196
196
|
|
197
197
|
<h4 id="scripts">Running the <code>configure</code> and <code>make</code> scripts</h4>
|
198
198
|
|
199
|
-
De-compress the RMagick-1.15.
|
199
|
+
De-compress the RMagick-1.15.8.tar.gz archive and enter the top
|
200
200
|
directory. Then type:
|
201
201
|
|
202
202
|
$ ./configure <configuration options>
|
@@ -214,9 +214,9 @@ The message can also refer to "libGraphicsMagick". Typically this message means
|
|
214
214
|
#### Cannot open shared object file
|
215
215
|
When make is running the examples, if you get a message like this:
|
216
216
|
|
217
|
-
/home/you/RMagick-1.15.
|
217
|
+
/home/you/RMagick-1.15.8/lib/RMagick.rb:11:in `require': libMagick.so.0:
|
218
218
|
cannot open shared object file: No such file or directory -
|
219
|
-
/home/you/RMagick-1.15.
|
219
|
+
/home/you/RMagick-1.15.8/ext/RMagick/RMagick.so (LoadError)
|
220
220
|
|
221
221
|
you probably do not have the directory in which the ImageMagick or GraphicsMagick
|
222
222
|
library is installed in your load path. An easy way to fix this is to define the
|
@@ -233,7 +233,7 @@ systems, see the documentation for the dynamic loading facility.
|
|
233
233
|
#### No such file or directory - "/tmp/rmagick6872.6"
|
234
234
|
When make is running the examples, if you get a message like this:
|
235
235
|
|
236
|
-
hook /home/me/src/RMagick-1.15.
|
236
|
+
hook /home/me/src/RMagick-1.15.8/./post-setup.rb failed:
|
237
237
|
No such file or directory - "/tmp/rmagick6872.6"
|
238
238
|
|
239
239
|
you probably do not have a temporary directory environment variable set. Set
|
data/configure
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#! /bin/sh
|
2
2
|
# Guess values for system-dependent variables and create Makefiles.
|
3
|
-
# Generated by GNU Autoconf 2.59 for RMagick 1.15.
|
3
|
+
# Generated by GNU Autoconf 2.59 for RMagick 1.15.8.
|
4
4
|
#
|
5
5
|
# Report bugs to <rmagick@rubyforge.org>.
|
6
6
|
#
|
@@ -268,9 +268,9 @@ SHELL=${CONFIG_SHELL-/bin/sh}
|
|
268
268
|
|
269
269
|
# Identity of this package.
|
270
270
|
PACKAGE_NAME='RMagick'
|
271
|
-
PACKAGE_TARNAME='RMagick-1.15.
|
272
|
-
PACKAGE_VERSION='1.15.
|
273
|
-
PACKAGE_STRING='RMagick 1.15.
|
271
|
+
PACKAGE_TARNAME='RMagick-1.15.8.tar.gz'
|
272
|
+
PACKAGE_VERSION='1.15.8'
|
273
|
+
PACKAGE_STRING='RMagick 1.15.8'
|
274
274
|
PACKAGE_BUGREPORT='rmagick@rubyforge.org'
|
275
275
|
|
276
276
|
# Factoring default headers for most tests.
|
@@ -779,7 +779,7 @@ if test "$ac_init_help" = "long"; then
|
|
779
779
|
# Omit some internal or obsolete options to make the list less imposing.
|
780
780
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
781
781
|
cat <<_ACEOF
|
782
|
-
\`configure' configures RMagick 1.15.
|
782
|
+
\`configure' configures RMagick 1.15.8 to adapt to many kinds of systems.
|
783
783
|
|
784
784
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
785
785
|
|
@@ -836,7 +836,7 @@ fi
|
|
836
836
|
|
837
837
|
if test -n "$ac_init_help"; then
|
838
838
|
case $ac_init_help in
|
839
|
-
short | recursive ) echo "Configuration of RMagick 1.15.
|
839
|
+
short | recursive ) echo "Configuration of RMagick 1.15.8:";;
|
840
840
|
esac
|
841
841
|
cat <<\_ACEOF
|
842
842
|
|
@@ -983,7 +983,7 @@ fi
|
|
983
983
|
test -n "$ac_init_help" && exit 0
|
984
984
|
if $ac_init_version; then
|
985
985
|
cat <<\_ACEOF
|
986
|
-
RMagick configure 1.15.
|
986
|
+
RMagick configure 1.15.8
|
987
987
|
generated by GNU Autoconf 2.59
|
988
988
|
|
989
989
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
@@ -997,7 +997,7 @@ cat >&5 <<_ACEOF
|
|
997
997
|
This file contains any messages produced by compilers while
|
998
998
|
running configure, to aid debugging if configure makes a mistake.
|
999
999
|
|
1000
|
-
It was created by RMagick $as_me 1.15.
|
1000
|
+
It was created by RMagick $as_me 1.15.8, which was
|
1001
1001
|
generated by GNU Autoconf 2.59. Invocation command line was
|
1002
1002
|
|
1003
1003
|
$ $0 $@
|
@@ -10697,7 +10697,7 @@ _ASBOX
|
|
10697
10697
|
} >&5
|
10698
10698
|
cat >&5 <<_CSEOF
|
10699
10699
|
|
10700
|
-
This file was extended by RMagick $as_me 1.15.
|
10700
|
+
This file was extended by RMagick $as_me 1.15.8, which was
|
10701
10701
|
generated by GNU Autoconf 2.59. Invocation command line was
|
10702
10702
|
|
10703
10703
|
CONFIG_FILES = $CONFIG_FILES
|
@@ -10757,7 +10757,7 @@ _ACEOF
|
|
10757
10757
|
|
10758
10758
|
cat >>$CONFIG_STATUS <<_ACEOF
|
10759
10759
|
ac_cs_version="\\
|
10760
|
-
RMagick config.status 1.15.
|
10760
|
+
RMagick config.status 1.15.8
|
10761
10761
|
configured by $0, generated by GNU Autoconf 2.59,
|
10762
10762
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
10763
10763
|
|
data/configure.ac
CHANGED
data/doc/comtasks.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.8: Common Tasks</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -31,7 +31,7 @@
|
|
31
31
|
</head>
|
32
32
|
|
33
33
|
<body>
|
34
|
-
<h6 id="header">RMagick 1.15.
|
34
|
+
<h6 id="header">RMagick 1.15.8 User's Guide and Reference</h6>
|
35
35
|
|
36
36
|
<div class="nav">
|
37
37
|
« <a href="optequiv.html">Prev</a> | <a href=
|
data/doc/constants.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.8: Constants</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
</head>
|
62
62
|
|
63
63
|
<body>
|
64
|
-
<h6 id="header">RMagick 1.15.
|
64
|
+
<h6 id="header">RMagick 1.15.8 User's Guide and Reference</h6>
|
65
65
|
|
66
66
|
<div class="nav">
|
67
67
|
« <a href="info.html">Prev</a> | <a href=
|
data/doc/draw.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.8: class Draw</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -25,7 +25,7 @@
|
|
25
25
|
</head>
|
26
26
|
|
27
27
|
<body>
|
28
|
-
<h6 id="header">RMagick 1.15.
|
28
|
+
<h6 id="header">RMagick 1.15.8 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="image3.html">Prev</a> | <a href=
|
@@ -2688,7 +2688,7 @@ gc.text(10,10, %q/{"What's up?"}/) » "What's up?"
|
|
2688
2688
|
<div class="sig">
|
2689
2689
|
<h3 id="text_undercolor">text_undercolor</h3>
|
2690
2690
|
|
2691
|
-
<p><span class="arg">draw</span>.
|
2691
|
+
<p><span class="arg">draw</span>.text_undercolor(<span class=
|
2692
2692
|
"arg">aString</span>) -> <em>draw</em></p>
|
2693
2693
|
</div>
|
2694
2694
|
|
data/doc/ex/implode.rb
CHANGED
@@ -15,6 +15,7 @@ implosion = 0.25
|
|
15
15
|
8.times {
|
16
16
|
frames << img.implode(implosion)
|
17
17
|
legend.annotate(frames, 0,0,10,20, sprintf("% 4.2f", implosion))
|
18
|
+
frames.matte = false
|
18
19
|
implosion -= 0.10
|
19
20
|
}
|
20
21
|
|
@@ -22,6 +23,7 @@ implosion = 0.25
|
|
22
23
|
implosion += 0.10
|
23
24
|
frames << img.implode(implosion)
|
24
25
|
legend.annotate(frames, 0,0,10,20, sprintf("% 4.2f", implosion))
|
26
|
+
frames.matte = false
|
25
27
|
}
|
26
28
|
|
27
29
|
frames.delay = 10
|
@@ -1,16 +1,14 @@
|
|
1
1
|
#! /usr/local/bin/ruby -w
|
2
2
|
|
3
3
|
require 'RMagick'
|
4
|
-
include Magick
|
5
4
|
|
6
|
-
img = Image.new(200,200)
|
7
|
-
img.compression = LZWCompression
|
5
|
+
img = Magick::Image.new(200,200)
|
6
|
+
img.compression = Magick::LZWCompression
|
8
7
|
|
9
|
-
bg = Image.read('plasma:fractal') {
|
10
|
-
|
11
|
-
}
|
8
|
+
bg = Magick::Image.read('plasma:fractal') { self.size = '200x200' }
|
9
|
+
bg[0].matte = false
|
12
10
|
|
13
|
-
gc = Draw.new
|
11
|
+
gc = Magick::Draw.new
|
14
12
|
gc.stroke_width(2)
|
15
13
|
gc.stroke('black')
|
16
14
|
gc.fill('white')
|
@@ -35,7 +33,7 @@ img = img.matte_fill_to_border(100, 100)
|
|
35
33
|
|
36
34
|
# Composite the image over a nice bright background
|
37
35
|
# so that the transparent pixels will be obvious.
|
38
|
-
img = bg[0].composite(img, CenterGravity, OverCompositeOp)
|
36
|
+
img = bg[0].composite(img, Magick::CenterGravity, Magick::OverCompositeOp)
|
39
37
|
|
40
38
|
img.write('matte_fill_to_border_after.gif')
|
41
39
|
exit
|
data/doc/ex/matte_floodfill.rb
CHANGED
@@ -6,9 +6,8 @@ include Magick
|
|
6
6
|
img = Image.new(200,200)
|
7
7
|
img.compression = LZWCompression
|
8
8
|
|
9
|
-
bg = Image.read('plasma:fractal') {
|
10
|
-
|
11
|
-
}
|
9
|
+
bg = Image.read('plasma:fractal') { self.size = '200x200' }
|
10
|
+
bg[0].matte = false
|
12
11
|
|
13
12
|
gc = Draw.new
|
14
13
|
gc.stroke_width(2)
|
data/doc/ex/matte_replace.rb
CHANGED
@@ -6,9 +6,8 @@ include Magick
|
|
6
6
|
img = Image.new(200,200)
|
7
7
|
img.compression = LZWCompression
|
8
8
|
|
9
|
-
bg = Image.read('plasma:fractal') {
|
10
|
-
|
11
|
-
}
|
9
|
+
bg = Image.read('plasma:fractal') { self.size = '200x200' }
|
10
|
+
bg[0].matte = false
|
12
11
|
|
13
12
|
gc = Draw.new
|
14
13
|
gc.stroke_width(2)
|
data/doc/ilist.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.8: class ImageList</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -20,7 +20,7 @@
|
|
20
20
|
</head>
|
21
21
|
|
22
22
|
<body>
|
23
|
-
<h6 id="header">RMagick 1.15.
|
23
|
+
<h6 id="header">RMagick 1.15.8 User's Guide and Reference</h6>
|
24
24
|
|
25
25
|
<div class="nav">
|
26
26
|
« <a href="magick.html">Prev</a> | <a href=
|
data/doc/image1.html
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
10
|
-
1)</title>
|
9
|
+
<title>RMagick 1.15.8: class Image (class and instance methods,
|
10
|
+
part 1)</title>
|
11
11
|
<meta http-equiv="Content-Type" content=
|
12
12
|
"text/html; charset=us-ascii" />
|
13
13
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -48,7 +48,7 @@ float: left;
|
|
48
48
|
</head>
|
49
49
|
|
50
50
|
<body>
|
51
|
-
<h6 id="header">RMagick 1.15.
|
51
|
+
<h6 id="header">RMagick 1.15.8 User's Guide and Reference</h6>
|
52
52
|
|
53
53
|
<div class="nav">
|
54
54
|
« <a href="imageattrs.html">Prev</a> | <a href=
|
@@ -1097,7 +1097,7 @@ img = Magick::Image.read_inline(content)
|
|
1097
1097
|
<a href="javascript:popup('add_noise.rb.html')"><img src=
|
1098
1098
|
"ex/images/Flower_Hat.jpg" alt="add_noise example" id=
|
1099
1099
|
"add_noise_example" title="Click to see the example script"
|
1100
|
-
|
1100
|
+
/></a>
|
1101
1101
|
|
1102
1102
|
<p>Click the NoiseType to see the effect.</p>
|
1103
1103
|
|
@@ -1254,8 +1254,8 @@ img = Magick::Image.read_inline(content)
|
|
1254
1254
|
|
1255
1255
|
<h4>Example</h4>
|
1256
1256
|
|
1257
|
-
<p>The affine matrix in this example skews the receiver by
|
1258
|
-
along both axes.</p>
|
1257
|
+
<p>The affine matrix in this example skews the receiver by
|
1258
|
+
π/6 radians along both axes.</p>
|
1259
1259
|
|
1260
1260
|
<p class="rollover"><a href=
|
1261
1261
|
"javascript:popup('affine_transform.rb.html')"><img onmouseover="this.src='ex/images/Flower_Hat.jpg'"
|
@@ -2282,7 +2282,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
|
|
2282
2282
|
<h4>Example</h4>
|
2283
2283
|
|
2284
2284
|
<p>This example converts a color image to sepia-tone using the
|
2285
|
-
<a href="image3.
|
2285
|
+
<a href="image3.html#quantize">quantize</a> and
|
2286
2286
|
<code>colorize</code> methods.</p>
|
2287
2287
|
|
2288
2288
|
<p class="rollover"><a href=
|
@@ -2621,14 +2621,7 @@ f.color_reset!(red)
|
|
2621
2621
|
<dt>gravity</dt>
|
2622
2622
|
|
2623
2623
|
<dd>A <a href=
|
2624
|
-
"constants.html#GravityType">GravityType</a> value
|
2625
|
-
the argument is NorthEastGravity, EastGravity, or
|
2626
|
-
SouthEastGravity, the x-offset is measured from the right
|
2627
|
-
side of the image. If the argument is SouthEastGravity,
|
2628
|
-
SouthGravity, or SouthWestGravity, the y-offset is
|
2629
|
-
measured from the bottom of the image. All other values
|
2630
|
-
are ignored and the x- and y-offsets are measured from
|
2631
|
-
the upper-left corner of the image.</dd>
|
2624
|
+
"constants.html#GravityType">GravityType</a> value.</dd>
|
2632
2625
|
|
2633
2626
|
<dt>x, y</dt>
|
2634
2627
|
|
@@ -3115,21 +3108,13 @@ f2 = f.copy
|
|
3115
3108
|
<dt>gravity</dt>
|
3116
3109
|
|
3117
3110
|
<dd>A <a href=
|
3118
|
-
"constants.html#GravityType">GravityType</a> value
|
3119
|
-
the argument is NorthEastGravity, EastGravity, or
|
3120
|
-
SouthEastGravity, the <em>x-</em>offset is measured from
|
3121
|
-
the right side of the image. If the argument is
|
3122
|
-
SouthEastGravity, SouthGravity, or SouthWestGravity, the
|
3123
|
-
<em>y-</em>offset is measured from the bottom of the
|
3124
|
-
image. All other values are ignored and the <em>x-</em>
|
3125
|
-
and <em>y-</em>offsets are measured from the upper-left
|
3126
|
-
corner of the image.</dd>
|
3111
|
+
"constants.html#GravityType">GravityType</a> value.</dd>
|
3127
3112
|
|
3128
3113
|
<dt>x, y</dt>
|
3129
3114
|
|
3130
|
-
<dd
|
3131
|
-
|
3132
|
-
|
3115
|
+
<dd><span class="arg">x-</span> and <span class=
|
3116
|
+
"arg">y-offset</span> relative to the <span class=
|
3117
|
+
"arg">gravity</span> value</dd>
|
3133
3118
|
|
3134
3119
|
<dt>width, height</dt>
|
3135
3120
|
|
@@ -3279,7 +3264,7 @@ cropped = img.crop(x, y, width, height, true)
|
|
3279
3264
|
"padding-left:62px; padding-right: 62px; padding-top: 87px;padding-bottom:87px;"
|
3280
3265
|
id="cropped" onmouseover=
|
3281
3266
|
"this.style.display='none';cropless.style.display='';" src=
|
3282
|
-
"ex/crop_resized.jpg" alt="frame example"
|
3267
|
+
"ex/crop_resized.jpg" alt="frame example" /></a>
|
3283
3268
|
<img src="ex/images/spin.gif" alt="" style=
|
3284
3269
|
"margin-bottom: 230px" title=
|
3285
3270
|
"Mouse over the example to see the original image" /></p>
|
data/doc/image2.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<meta name="generator" content=
|
7
7
|
"HTML Tidy for Linux/x86 (vers 1st December 2004), see www.w3.org" />
|
8
8
|
|
9
|
-
<title>RMagick 1.15.
|
9
|
+
<title>RMagick 1.15.8: class Image (instance methods, part 2)</title>
|
10
10
|
<meta http-equiv="Content-Type" content=
|
11
11
|
"text/html; charset=us-ascii" />
|
12
12
|
<meta name="GENERATOR" content="Quanta Plus" />
|
@@ -47,7 +47,7 @@ td.ds {
|
|
47
47
|
</head>
|
48
48
|
|
49
49
|
<body>
|
50
|
-
<h6 id="header">RMagick 1.15.
|
50
|
+
<h6 id="header">RMagick 1.15.8 User's Guide and Reference</h6>
|
51
51
|
|
52
52
|
<div class="nav">
|
53
53
|
« <a href="image1.html">Prev</a> | <a href=
|