rmagick 1.15.13 → 1.15.14
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 +11 -0
- data/README.html +9 -9
- data/README.txt +7 -7
- data/configure +350 -14
- data/configure.ac +6 -5
- data/doc/comtasks.html +2 -2
- data/doc/constants.html +9 -9
- data/doc/draw.html +5 -5
- data/doc/ex/clip_path.rb +5 -11
- data/doc/ex/stegano.rb +0 -16
- data/doc/ex/wet_floor.rb +14 -8
- data/doc/ilist.html +5 -5
- data/doc/image1.html +7 -7
- data/doc/image2.html +5 -5
- data/doc/image3.html +4 -4
- data/doc/imageattrs.html +3 -3
- data/doc/imusage.html +3 -3
- data/doc/index.html +7 -7
- data/doc/info.html +5 -5
- data/doc/magick.html +4 -4
- data/doc/optequiv.html +3 -3
- data/doc/rvg.html +3 -3
- data/doc/rvgclip.html +2 -2
- data/doc/rvggroup.html +2 -2
- data/doc/rvgimage.html +3 -3
- data/doc/rvgpattern.html +3 -3
- data/doc/rvgshape.html +2 -2
- data/doc/rvgstyle.html +2 -2
- data/doc/rvgtext.html +2 -2
- data/doc/rvgtspan.html +4 -4
- data/doc/rvgtut.html +4 -4
- data/doc/rvguse.html +3 -3
- data/doc/rvgxform.html +2 -2
- data/doc/struct.html +6 -6
- data/doc/usage.html +3 -3
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +9 -1
- data/ext/RMagick/rmagick_config.h.in +8 -0
- 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 +42 -10
- data/ext/RMagick/rminfo.c +2 -2
- data/ext/RMagick/rmmain.c +3 -3
- data/ext/RMagick/rmutil.c +5 -2
- data/lib/RMagick.rb +2 -2
- data/lib/rvg/clippath.rb +2 -2
- data/lib/rvg/container.rb +2 -2
- data/lib/rvg/describable.rb +2 -2
- data/lib/rvg/embellishable.rb +2 -2
- data/lib/rvg/misc.rb +2 -2
- data/lib/rvg/paint.rb +7 -2
- data/lib/rvg/pathdata.rb +2 -2
- data/lib/rvg/rvg.rb +2 -2
- data/lib/rvg/stretchable.rb +14 -2
- data/lib/rvg/stylable.rb +2 -2
- data/lib/rvg/text.rb +2 -2
- data/lib/rvg/transformable.rb +2 -2
- data/lib/rvg/units.rb +2 -2
- data/rmagick.gemspec +1 -1
- metadata +3 -3
data/configure.ac
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
# RMagick configure.ac
|
3
3
|
|
4
|
-
AC_INIT(RMagick, 1.15.
|
4
|
+
AC_INIT(RMagick, 1.15.14, rmagick@rubyforge.org, RMagick-1.15.14.tar.gz)
|
5
5
|
echo "Configuring ${PACKAGE_STRING}"
|
6
6
|
|
7
7
|
AC_CONFIG_HEADER([ext/RMagick/rmagick_config.h])
|
@@ -114,13 +114,13 @@ fi
|
|
114
114
|
|
115
115
|
AC_CHECK_FUNCS([AdaptiveBlurImageChannel AdaptiveResizeImage AdaptiveSharpenImage])
|
116
116
|
AC_CHECK_FUNCS([AdaptiveThresholdImage AddDefinitions])
|
117
|
-
AC_CHECK_FUNCS([AddNoiseImageChannel BilevelImageChannel BlackThresholdImage])
|
117
|
+
AC_CHECK_FUNCS([AddNoiseImageChannel AllocateImageProfileIterator BilevelImageChannel BlackThresholdImage])
|
118
118
|
AC_CHECK_FUNCS([BlurImageChannel ClearMagickException CompareImageChannels])
|
119
119
|
AC_CHECK_FUNCS([CompareImageLayers CompositeImageChannel ContrastStretchImageChannel])
|
120
120
|
AC_CHECK_FUNCS([ConvertHSLToRGB ConvertRGBToHSL])
|
121
121
|
AC_CHECK_FUNCS([ConvolveImageChannel EvaluateImageChannel ExportImagePixels])
|
122
122
|
AC_CHECK_FUNCS([FuzzyColorCompare FxImageChannel GammaImageChannel])
|
123
|
-
AC_CHECK_FUNCS([GaussianBlurImageChannel GetColorHistogram GetColorInfoArray])
|
123
|
+
AC_CHECK_FUNCS([GaussianBlurImageChannel GetBlobSize GetColorHistogram GetColorInfoArray])
|
124
124
|
|
125
125
|
# We need to be able to query these symbols later in the configure script, so set a shell
|
126
126
|
# variable here as well as defining symbols.
|
@@ -176,7 +176,7 @@ AC_CHECK_FUNCS([NormalizeImageChannel OrderedPosterizeImageChannel])
|
|
176
176
|
AC_CHECK_FUNCS([ParseSizeGeometry PolaroidImage PosterizeImage PreviewImage])
|
177
177
|
AC_CHECK_FUNCS([QuantumOperatorRegionImage RadialBlurImage RadialBlurImageChannel])
|
178
178
|
AC_CHECK_FUNCS([RandomChannelThresholdImage RandomThresholdImageChannel])
|
179
|
-
AC_CHECK_FUNCS([RecolorImage SeparateImageChannel SepiaToneImage])
|
179
|
+
AC_CHECK_FUNCS([RecolorImage RemoveFirstImageFromList SeparateImageChannel SepiaToneImage])
|
180
180
|
AC_CHECK_FUNCS([SetImageBackgroundColor SetImageChannelDepth SetImageColorspace SetImageExtent])
|
181
181
|
AC_CHECK_FUNCS([SetImageInfoFile SetImageOption SetImageProperty SetImageRegistry SetImageStorageClass])
|
182
182
|
AC_CHECK_FUNCS([SetImageProgressMonitor ShadowImage SharpenImageChannel])
|
@@ -221,7 +221,8 @@ AC_CHECK_MEMBERS([ExceptionInfo.module],,,
|
|
221
221
|
#endif
|
222
222
|
#include "magick/api.h"])
|
223
223
|
|
224
|
-
AC_CHECK_MEMBERS([Image.bias, Image.orientation, Image.quality, Image.ticks_per_second, Image.transparent_color
|
224
|
+
AC_CHECK_MEMBERS([Image.bias, Image.orientation, Image.quality, Image.ticks_per_second, Image.transparent_color,
|
225
|
+
Image.iptc_profile, Image.generic_profile, Image.generic_profiles],,,
|
225
226
|
[#include <stdio.h>
|
226
227
|
#if HAVE_SYS_TYPES_H
|
227
228
|
#include <sys/types.h>
|
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.14: 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.14 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.14: 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.14 User's Guide and Reference</h6>
|
65
65
|
|
66
66
|
<div class="nav">
|
67
67
|
« <a href="info.html">Prev</a> | <a href=
|
@@ -155,7 +155,7 @@
|
|
155
155
|
|
156
156
|
<dd>An extended form of the <code>Version</code> constant with
|
157
157
|
the format shown here:<br />
|
158
|
-
<code>This is RMagick 1.10.0 ($Date:
|
158
|
+
<code>This is RMagick 1.10.0 ($Date: 2008/02/17 14:30:12 $)
|
159
159
|
Copyright (C) 2006 by Timothy P. Hunter<br />
|
160
160
|
Built with GraphicsMagick 1.2 unreleased Q16
|
161
161
|
http://www.GraphicsMagick.org/<br />
|
@@ -722,8 +722,8 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
|
|
722
722
|
<p><span class="imquote">Express the desired compression type
|
723
723
|
when encoding an image. Be aware that most image types only
|
724
724
|
support a sub-set of the available compression types. If the
|
725
|
-
compression type specified is
|
726
|
-
×Magick selects a compression type
|
725
|
+
compression type specified is incompatible with the image,
|
726
|
+
×Magick selects a compression type compatible with the
|
727
727
|
image type.</span> See <a href=
|
728
728
|
"imageattrs.html#compression">compression</a>.</p>
|
729
729
|
|
@@ -847,7 +847,7 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
|
|
847
847
|
|
848
848
|
<p><span class="imquote">Used to adjust the filter algorithm used
|
849
849
|
when resizing images. Different filters experience varying
|
850
|
-
degrees of success with various images and can take
|
850
|
+
degrees of success with various images and can take significantly
|
851
851
|
different amounts of processing time. ×Magick uses the
|
852
852
|
LanczosFilter by default since this filter has been shown to
|
853
853
|
provide the best results for most images in a reasonable amount
|
@@ -913,7 +913,7 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
|
|
913
913
|
|
914
914
|
<dt>NorthGravity</dt>
|
915
915
|
|
916
|
-
<dd class="imquote">
|
916
|
+
<dd class="imquote">Position object at top-center of
|
917
917
|
region</dd>
|
918
918
|
|
919
919
|
<dt>NorthEastGravity</dt>
|
@@ -1242,7 +1242,7 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
|
|
1242
1242
|
<dt>PixelsPerInchResolution</dt>
|
1243
1243
|
|
1244
1244
|
<dd class="imquote">Density specifications are specified in
|
1245
|
-
units of pixels per inch (
|
1245
|
+
units of pixels per inch (English units).</dd>
|
1246
1246
|
|
1247
1247
|
<dt>PixelsPerCentimeterResolution</dt>
|
1248
1248
|
|
@@ -1340,7 +1340,7 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
|
|
1340
1340
|
<dl>
|
1341
1341
|
<dt>AnyWeight</dt>
|
1342
1342
|
|
1343
|
-
<dd>No weight
|
1343
|
+
<dd>No weight specified.</dd>
|
1344
1344
|
|
1345
1345
|
<dt>NormalWeight</dt>
|
1346
1346
|
|
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.14: 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.14 User's Guide and Reference</h6>
|
29
29
|
|
30
30
|
<div class="nav">
|
31
31
|
« <a href="image3.html">Prev</a> | <a href=
|
@@ -534,7 +534,7 @@ title.annotate(montage, 0,0,0,40, 'Named Colors') {
|
|
534
534
|
<h4>Description</h4>
|
535
535
|
|
536
536
|
<p>Same as <a href="#dup">dup</a> except the frozen state of
|
537
|
-
the original is
|
537
|
+
the original is propagated to the copy.</p>
|
538
538
|
|
539
539
|
<h4>Returns</h4>
|
540
540
|
|
@@ -2214,7 +2214,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2214
2214
|
<div class="desc">
|
2215
2215
|
<h4>Description</h4>
|
2216
2216
|
|
2217
|
-
<p>Define a skew
|
2217
|
+
<p>Define a skew transformation along the x-axis.</p>
|
2218
2218
|
|
2219
2219
|
<h4>Arguments</h4>
|
2220
2220
|
|
@@ -2246,7 +2246,7 @@ draw.decorate(Magick::LineThroughDecoration)
|
|
2246
2246
|
<div class="desc">
|
2247
2247
|
<h4>Description</h4>
|
2248
2248
|
|
2249
|
-
<p>Define a skew
|
2249
|
+
<p>Define a skew transformation along the y-axis.</p>
|
2250
2250
|
|
2251
2251
|
<h4>Arguments</h4>
|
2252
2252
|
|
data/doc/ex/clip_path.rb
CHANGED
@@ -26,14 +26,12 @@ girl.read("images/Flower_Hat.jpg")
|
|
26
26
|
cols = rows = nil
|
27
27
|
|
28
28
|
# Our final image is about 290 pixels wide, so here
|
29
|
-
# we widen our picture to fit.
|
30
|
-
# method will adjust the height proportionately.
|
29
|
+
# we widen our picture to fit.
|
31
30
|
|
32
|
-
girl.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
end
|
31
|
+
girl.resize!(290.0/girl.columns)
|
32
|
+
cols = girl.columns
|
33
|
+
rows = girl.rows
|
34
|
+
pr.composite(0, 0, cols, rows, girl)
|
37
35
|
|
38
36
|
pr.pop
|
39
37
|
|
@@ -50,10 +48,6 @@ canvas = canvas.blur_image(0, 20)
|
|
50
48
|
# Draw the star over the background
|
51
49
|
pr.draw(canvas)
|
52
50
|
|
53
|
-
# Crop away all the solid white border pixels.
|
54
|
-
crop = canvas.bounding_box
|
55
|
-
canvas.crop!(crop.x, crop.y, crop.width, crop.height)
|
56
|
-
|
57
51
|
canvas.write("clip_path.gif")
|
58
52
|
|
59
53
|
exit
|
data/doc/ex/stegano.rb
CHANGED
@@ -29,11 +29,6 @@ begin
|
|
29
29
|
# Read the image and retrieve the watermark. The size
|
30
30
|
# attribute describes the size and offset of the watermark.
|
31
31
|
|
32
|
-
# This can take some time. Keep track of how far along we are.
|
33
|
-
# We have to be careful, though. Recent versions of ImageMagick support the
|
34
|
-
# Info#monitor= method and deprecate Magick.set_monitor, so don't use
|
35
|
-
# Magick.set_monitor if Info#monitor= is supported.
|
36
|
-
|
37
32
|
monitor = Proc.new do |text, quantum, span|
|
38
33
|
printf("Extracting watermark...%3.0f%% complete\n", ((1.0-(quantum/span.to_f))*100.0))
|
39
34
|
true
|
@@ -41,17 +36,6 @@ begin
|
|
41
36
|
|
42
37
|
stegano = Magick::Image.read('stegano:img.miff') do
|
43
38
|
self.size = Magick::Geometry.new(wmcols, wmrows, 91)
|
44
|
-
begin
|
45
|
-
self.monitor = monitor
|
46
|
-
rescue NotImplementedError
|
47
|
-
Magick.set_monitor(monitor)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
begin
|
52
|
-
stegano[0].monitor = nil
|
53
|
-
rescue NotImplementedError
|
54
|
-
Magick.set_monitor(nil)
|
55
39
|
end
|
56
40
|
|
57
41
|
# We don't need this any more.
|
data/doc/ex/wet_floor.rb
CHANGED
@@ -2,25 +2,31 @@
|
|
2
2
|
|
3
3
|
require 'RMagick'
|
4
4
|
|
5
|
+
if Magick::Magick_version =~ /ImageMagick/
|
6
|
+
y = -15
|
7
|
+
else
|
8
|
+
y = 1
|
9
|
+
end
|
5
10
|
|
6
11
|
results = Magick::ImageList.new
|
7
12
|
|
8
13
|
img = Magick::Image.new(270, 60)
|
14
|
+
img.matte = true
|
9
15
|
|
10
16
|
gc = Magick::Draw.new
|
11
|
-
gc.annotate(img, 0, 0, 0,
|
17
|
+
gc.annotate(img, 0, 0, 0, y, "RUBY!") do
|
12
18
|
gc.fill = '#c00'
|
13
19
|
gc.stroke = 'black'
|
14
20
|
gc.stroke_width = 2
|
15
21
|
gc.font_weight = Magick::BoldWeight
|
16
22
|
gc.gravity = Magick::SouthGravity
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
23
|
+
if RUBY_PLATFORM =~ /mswin32/
|
24
|
+
gc.font_family = "Georgia"
|
25
|
+
gc.pointsize = 76
|
26
|
+
else
|
27
|
+
gc.font_family = "times"
|
28
|
+
gc.pointsize = 80
|
29
|
+
end
|
24
30
|
end
|
25
31
|
|
26
32
|
# Add a little bit of shading
|
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.14: 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.14 User's Guide and Reference</h6>
|
24
24
|
|
25
25
|
<div class="nav">
|
26
26
|
« <a href="magick.html">Prev</a> | <a href=
|
@@ -563,7 +563,7 @@ imagelist.animate { self.server_name = "other:0.0" }
|
|
563
563
|
<h4>Description</h4>
|
564
564
|
|
565
565
|
<p>Same as <a href="#dup">dup</a>, but the frozen state of the
|
566
|
-
original is
|
566
|
+
original is propagated to the copy.</p>
|
567
567
|
|
568
568
|
<h4>Returns</h4>
|
569
569
|
|
@@ -689,7 +689,7 @@ imagelist2 = imagelist1.copy
|
|
689
689
|
successor. The resulting imagelist usually produces a much
|
690
690
|
smaller file.</p>
|
691
691
|
|
692
|
-
<p>The <code>
|
692
|
+
<p>The <code>deconstruct</code> method starts by copying the
|
693
693
|
first image in the list to the output imagelist. Then, for each
|
694
694
|
pair of images, <code>deconstruct</code> computes the smallest
|
695
695
|
rectangle that encompasses all the changes between the first
|
@@ -1391,7 +1391,7 @@ imagelist.new_image(100, 100) { self.background_color = "red" }
|
|
1391
1391
|
"imquote">do NOT have to be the same size, though it is best
|
1392
1392
|
that all the images are fully 'coalesced' (images are all the
|
1393
1393
|
same size, on a flattened canvas, and represent how an specific
|
1394
|
-
frame should look is
|
1394
|
+
frame should look is animated)</span></p>
|
1395
1395
|
|
1396
1396
|
<p class="imquote">If images are not the same size as the page
|
1397
1397
|
canvas size of first image, then it is alpha composed using
|
data/doc/image1.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.14: class Image (class and instance methods,
|
10
10
|
part 1)</title>
|
11
11
|
<meta http-equiv="Content-Type" content=
|
12
12
|
"text/html; charset=us-ascii" />
|
@@ -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.14 User's Guide and Reference</h6>
|
52
52
|
|
53
53
|
<div class="nav">
|
54
54
|
« <a href="imageattrs.html">Prev</a> | <a href=
|
@@ -753,7 +753,7 @@ img = Magick::Image.read_inline(content)
|
|
753
753
|
<div class="desc">
|
754
754
|
<h4>Description</h4>
|
755
755
|
|
756
|
-
<p><span class="imquote">Adaptively blurs the image by
|
756
|
+
<p><span class="imquote">Adaptively blurs the image by blurring
|
757
757
|
more intensely near image edges and less intensely far from
|
758
758
|
edges.</span> The adaptive_blur method blurs <span class=
|
759
759
|
"imquote">the image with a Gaussian operator of the
|
@@ -2073,7 +2073,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
|
|
2073
2073
|
<h4>Description</h4>
|
2074
2074
|
|
2075
2075
|
<p>Same as <a href="#dup">dup</a> except the frozen state of
|
2076
|
-
the original is
|
2076
|
+
the original is propagated to the new copy.</p>
|
2077
2077
|
|
2078
2078
|
<h4>Returns</h4>
|
2079
2079
|
|
@@ -2263,7 +2263,7 @@ mona.change_geometry!('320x240') { |cols, rows, img|
|
|
2263
2263
|
<dt>red_pct, green_pct, blue_pct, matte_pct</dt>
|
2264
2264
|
|
2265
2265
|
<dd>The percentage of the fill color red, green, blue and
|
2266
|
-
matte (
|
2266
|
+
matte (transparency) components to blend with the image pixel.
|
2267
2267
|
For example, <code>.25</code> is 25%. The matte_pct argument
|
2268
2268
|
is optional.</dd>
|
2269
2269
|
|
@@ -2972,7 +2972,7 @@ f.colors » 108
|
|
2972
2972
|
|
2973
2973
|
<div class="desc">
|
2974
2974
|
<h4>Description</h4>Returns a copy of the image. The tainted
|
2975
|
-
state of the original is
|
2975
|
+
state of the original is propagated to the copy.
|
2976
2976
|
|
2977
2977
|
<h4>Example</h4>
|
2978
2978
|
<pre>
|
@@ -3402,7 +3402,7 @@ cropped = img.crop(x, y, width, height, true)
|
|
3402
3402
|
about their difference.</p>
|
3403
3403
|
|
3404
3404
|
<p class="imquote">A small normalized mean square
|
3405
|
-
error...suggests the images are very
|
3405
|
+
error...suggests the images are very similar in spatial layout
|
3406
3406
|
and color.</p>
|
3407
3407
|
|
3408
3408
|
<h4>Returns</h4>
|
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.14: 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.14 User's Guide and Reference</h6>
|
51
51
|
|
52
52
|
<div class="nav">
|
53
53
|
« <a href="image1.html">Prev</a> | <a href=
|
@@ -1941,7 +1941,7 @@ img.level(white_point, gamma, black_point) -> anImage # wrong!
|
|
1941
1941
|
</pre>
|
1942
1942
|
|
1943
1943
|
<p>That is, the <code>gamma</code> and <code>white_point</code>
|
1944
|
-
arguments were swapped. In an effort to maintain
|
1944
|
+
arguments were swapped. In an effort to maintain compatibility
|
1945
1945
|
with older scripts that expect that signature,
|
1946
1946
|
<code>level</code> inspects its arguments and will interchange
|
1947
1947
|
<code>white_point</code> and gamma if they "look" incorrect.
|
@@ -2077,7 +2077,7 @@ img.level(white_point, gamma, black_point) -> anImage # wrong!
|
|
2077
2077
|
|
2078
2078
|
<p><a href="#magnify_bang">magnify!</a>, <a href=
|
2079
2079
|
"#minify">minify</a>, <a href="image3.html#resize">resize</a>,
|
2080
|
-
<a href="image3.html#scale">
|
2080
|
+
<a href="image3.html#scale">scale</a></p>
|
2081
2081
|
|
2082
2082
|
<h4>Magick API</h4>
|
2083
2083
|
|
@@ -2862,7 +2862,7 @@ img = img.opaque('white', 'red')
|
|
2862
2862
|
<div class="desc">
|
2863
2863
|
<h4>Description</h4>
|
2864
2864
|
|
2865
|
-
<p>
|
2865
|
+
<p>Dithers the image to a predefined pattern. The <span class=
|
2866
2866
|
"arg">threshold_map</span> argument defines the pattern to
|
2867
2867
|
use.</p>
|
2868
2868
|
|
data/doc/image3.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.14: class Image (instance methods, part
|
10
10
|
3)</title>
|
11
11
|
<meta http-equiv="Content-Type" content=
|
12
12
|
"text/html; charset=us-ascii" />
|
@@ -52,7 +52,7 @@
|
|
52
52
|
</head>
|
53
53
|
|
54
54
|
<body>
|
55
|
-
<h6 id="header">RMagick 1.15.
|
55
|
+
<h6 id="header">RMagick 1.15.14 User's Guide and Reference</h6>
|
56
56
|
|
57
57
|
<div class="nav">
|
58
58
|
« <a href="image2.html">Prev</a> | <a href=
|
@@ -2817,7 +2817,7 @@ img.to_color(pixel)
|
|
2817
2817
|
<p>Changes the opacity value of all the pixels that match
|
2818
2818
|
<span class="arg">color</span> to the value specified by
|
2819
2819
|
<span class="arg">opacity</span>. By default the pixel must
|
2820
|
-
match exactly, but you can specify a
|
2820
|
+
match exactly, but you can specify a tolerance level by setting
|
2821
2821
|
the <a href="imageattrs.html#fuzz">fuzz</a> attribute on
|
2822
2822
|
the image.</p>
|
2823
2823
|
|
@@ -3590,7 +3590,7 @@ end
|
|
3590
3590
|
<h3 id="wet_floor">wet_floor</h3>
|
3591
3591
|
|
3592
3592
|
<p><span class="arg">image</span>.wet_floor(<span class=
|
3593
|
-
"arg">
|
3593
|
+
"arg">initial=0.5</span>, <span class="arg">rate=1.0</span>)
|
3594
3594
|
-> <em>anImage</em></p>
|
3595
3595
|
</div>
|
3596
3596
|
|