rmagick 2.10.0 → 2.11.0

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 CHANGED
@@ -1,3 +1,11 @@
1
+ RMagick 2.11.0
2
+ o Fix bug #26475, dissolve and watermark don't work with new versions of
3
+ ImageMagick (reported by Jim Crate)
4
+ o Add Image#composite_mathematics (available in ImageMagick 6.5.4-3)
5
+ o Add new LinearDodgeCompositeOp, LinearBurnCompositeOp,
6
+ PegtopCompositeOp, PinLightCompositeOp, VividLightCompositeOp enum values
7
+ (available in ImageMagick 6.5.4-3)
8
+
1
9
  RMagick 2.10.0
2
10
  o ImageMagick releases earlier than 6.3.5-10 and Ruby releases earlier
3
11
  than 1.8.5 no longer supported.
@@ -1,13 +1,13 @@
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 2.10.0 README</title>
4
+ <title>RMagick 2.11.0 README</title>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6
6
  <meta name="GENERATOR" content="RedCloth">
7
7
  </head>
8
8
  <body>
9
- <h1>RMagick 2.10.0 <span class="caps">README</span></h1>
10
- <h2>06/19/09</h2>
9
+ <h1>RMagick 2.11.0 <span class="caps">README</span></h1>
10
+ <h2>07/29/09</h2>
11
11
  <h3>Table of Contents</h3>
12
12
  <ul>
13
13
  <li><a href="#intro">Introduction</a></li>
@@ -47,11 +47,11 @@ his &#8220;web site&#8221;:&lt;http://i.loveruby.net.</p>
47
47
  this. If you have not decompressed the tarball, do so with one of these commands,<br />
48
48
  depending on which tarball you have:</p>
49
49
  <pre>
50
- tar xvzf RMagick-2.10.0-tar.gz (gzipped tarball)
51
- tar xvjf RMagick-2.10.0-tar.bz2 (bzipped tarball)
50
+ tar xvzf RMagick-2.11.0-tar.gz (gzipped tarball)
51
+ tar xvjf RMagick-2.11.0-tar.bz2 (bzipped tarball)
52
52
  7z e RMagick-x.y.z.tar.lzma -so | tar xv (7zipped tarball)
53
53
  </pre>
54
- <p>Change to the RMagick-2.10.0 directory. If you are not using any<br />
54
+ <p>Change to the RMagick-2.11.0 directory. If you are not using any<br />
55
55
  configuration options (usually you don&#8217;t need to) enter the command</p>
56
56
  <pre>
57
57
  ruby setup.rb
@@ -115,7 +115,7 @@ systems, see the documentation for the dynamic loading facility.</p>
115
115
  <h4>No such file or directory &#8211; &#8220;/tmp/rmagick6872.6&#8221;</h4>
116
116
  <p>When setup.rb is running the examples, if you get a message like this:</p>
117
117
  <pre>
118
- hook /home/me/src/RMagick-2.10.0/./post-setup.rb failed:
118
+ hook /home/me/src/RMagick-2.11.0/./post-setup.rb failed:
119
119
  No such file or directory - "/tmp/rmagick6872.6"
120
120
  </pre>
121
121
  <p>you probably do not have a temporary directory environment variable set. Set<br />
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: Common Tasks</title>
9
+ <title>RMagick 2.11.0: 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 2.10.0 User's Guide and Reference</h6>
34
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
35
35
 
36
36
  <div class="nav">
37
37
  &laquo;&nbsp;<a href="optequiv.html">Prev</a> | <a href=
@@ -4,9 +4,9 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml">
5
5
  <head>
6
6
  <meta name="generator" content=
7
- "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: Constants</title>
9
+ <title>RMagick 2.11.0: 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 2.10.0 User's Guide and Reference</h6>
64
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
65
65
 
66
66
  <div class="nav">
67
67
  &laquo;&nbsp;<a href="info.html">Prev</a> | <a href=
@@ -157,7 +157,7 @@
157
157
 
158
158
  <dd>An extended form of the <code>Version</code> constant with
159
159
  the format shown here:<br />
160
- <code>This is RMagick 2.0.0 ($Date: 2009/06/19 22:08:03 $)
160
+ <code>This is RMagick 2.0.0 ($Date: 2009/07/22 22:52:38 $)
161
161
  Copyright (C) 2008 by Timothy P. Hunter<br />
162
162
  Built with ImageMagick 6.3.7 01/05/08 Q16
163
163
  http://www.imagemagick.org<br />
@@ -688,6 +688,21 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
688
688
  <dd>Replace target image pixels with lighter pixels from the
689
689
  composite image.</dd>
690
690
 
691
+ <dt>LinearBurnCompositeOp</dt>
692
+
693
+ <dd>Same as <code>LinearDodgeCompositeOp</code>, but also
694
+ subtract one from the result. Sort of a additive 'Screen' of
695
+ the images.</dd>
696
+
697
+ <dt>LinearDodgeCompositeOp</dt>
698
+
699
+ <dd class="imquote">This is equivelent to
700
+ <code>PlusCompositeOp</code> in that the color channels are
701
+ simply added, however it does not "plus" the alpha channel, but
702
+ uses the normal <code>OverCompositeOp</code> alpha blending,
703
+ which transparencies are involved. Produces a sort of additive
704
+ multiply-like result.</dd>
705
+
691
706
  <dt>LinearLightCompositeOp</dt>
692
707
 
693
708
  <dd class="imquote">Increase contrast slightly with an impact
@@ -743,6 +758,20 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
743
758
  color is not replaced, but is mixed with the source color to
744
759
  reflect the lightness or darkness of the destination.</dd>
745
760
 
761
+ <dt>PegtopLightCompositeOp</dt>
762
+
763
+ <dd class="imquote">Almost equivalent to
764
+ <code>SoftLightCompositeOp</code>, but using a continuious
765
+ mathematical formula rather than two conditionally selected
766
+ formulae.</dd>
767
+
768
+ <dt>PinLightCompositeOp</dt>
769
+
770
+ <dd class="imquote">Similar to
771
+ <code>HardLightCompositeOp</code>, but using sharp linear
772
+ shadings, to similate the effects of a strong 'pinhole' light
773
+ source.</dd>
774
+
746
775
  <dt>PlusCompositeOp</dt>
747
776
 
748
777
  <dd class="imquote">The result is just the sum of the image
@@ -814,6 +843,12 @@ ruby -rRMagick -e"Magick::ColorspaceType.values {|cs| puts cs}"
814
843
 
815
844
  <dd>?</dd>
816
845
 
846
+ <dt>VividLightCompositeOp</dt>
847
+
848
+ <dd class="imquote">A modified
849
+ <code>LinearLightCompositeOp</code> designed to preserve very
850
+ stong primary and secondary colors in the image.</dd>
851
+
817
852
  <dt>XorCompositeOp</dt>
818
853
 
819
854
  <dd class="imquote">The result is the image data from both
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: class Draw</title>
9
+ <title>RMagick 2.11.0: 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 2.10.0 User's Guide and Reference</h6>
28
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
29
29
 
30
30
  <div class="nav">
31
31
  &laquo;&nbsp;<a href="image3.html">Prev</a> | <a href=
@@ -6,7 +6,7 @@ bgnd = Magick::Image.read('images/Violin.jpg').first
6
6
  overlay = Magick::Image.read('images/Flower_Hat.jpg').first
7
7
 
8
8
  # Make the violin image the same size as the hat image
9
- bgnd.crop_resized!(overlay.columns, overlay.rows)
9
+ bgnd.resize_to_fill!(overlay.columns, overlay.rows)
10
10
 
11
11
  composited = bgnd.dissolve(overlay, 0.50)
12
12
  composited.write('dissolve.jpg')
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: class ImageList</title>
9
+ <title>RMagick 2.11.0: 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 2.10.0 User's Guide and Reference</h6>
23
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
24
24
 
25
25
  <div class="nav">
26
26
  &laquo;&nbsp;<a href="magick.html">Prev</a> | <a href=
@@ -4,9 +4,9 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml">
5
5
  <head>
6
6
  <meta name="generator" content=
7
- "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: class Image (class methods and instance
9
+ <title>RMagick 2.11.0: class Image (class methods and instance
10
10
  methods a-d)</title>
11
11
  <meta http-equiv="Content-Type" content=
12
12
  "text/html; charset=us-ascii" />
@@ -48,7 +48,7 @@
48
48
  </head>
49
49
 
50
50
  <body>
51
- <h6 id="header">RMagick 2.10.0 User's Guide and Reference</h6>
51
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
52
52
 
53
53
  <div class="nav">
54
54
  &laquo;&nbsp;<a href="imageattrs.html">Prev</a> | <a href=
@@ -148,6 +148,8 @@
148
148
 
149
149
  <li><a href="#blend">blend</a></li>
150
150
 
151
+ <li><a href="#blue_shift">blue_shift</a></li>
152
+
151
153
  <li><a href="#blur_channel">blur_channel</a></li>
152
154
 
153
155
  <li><a href="#blur_image">blur_image</a></li>
@@ -207,6 +209,9 @@
207
209
 
208
210
  <li><a href="#composite_affine">composite_affine</a></li>
209
211
 
212
+ <li><a href=
213
+ "#composite_mathematics">composite_mathematics</a></li>
214
+
210
215
  <li><a href="#composite_tiled">composite_tiled</a></li>
211
216
  </ul>
212
217
  </div>
@@ -1838,6 +1843,41 @@ img = Image.read_inline(content)
1838
1843
  "#composite">composite</a></p>
1839
1844
  </div>
1840
1845
 
1846
+ <div class="sig">
1847
+ <h3 id="blue_shift">blue_shift</h3>
1848
+
1849
+ <p><span class="arg">img</span>.blue_shift(<span class=
1850
+ "arg">factor</span>=1.5) -&gt; <em>image</em></p>
1851
+ </div>
1852
+
1853
+ <div class="desc">
1854
+ <h4>Description</h4>
1855
+
1856
+ <p class="imquote">Simulate a scene at nighttime in the
1857
+ moonlight.</p>
1858
+
1859
+ <h4>Arguments</h4>
1860
+
1861
+ <dl>
1862
+ <dt>factor</dt>
1863
+
1864
+ <dd>Larger values increase the effect. The default is
1865
+ 1.5.</dd>
1866
+ </dl>
1867
+
1868
+ <h4>Returns</h4>
1869
+
1870
+ <p>A new image</p>
1871
+
1872
+ <h4>Notes</h4>
1873
+
1874
+ <p>Available in ImageMagick 6.5.4-3 and later.</p>
1875
+
1876
+ <h4>Magick API</h4>
1877
+
1878
+ <p>BlueShiftImage</p>
1879
+ </div>
1880
+
1841
1881
  <div class="sig">
1842
1882
  <h3 id="blur_channel">blur_channel</h3>
1843
1883
 
@@ -3146,6 +3186,82 @@ f.color_reset!(red)
3146
3186
  <p>DrawAffineImage</p>
3147
3187
  </div>
3148
3188
 
3189
+ <div class="sig">
3190
+ <h3 id="composite_mathematics">composite_mathematics</h3>
3191
+
3192
+ <p><span class=
3193
+ "arg">dest</span>.composite_mathematics(<span class=
3194
+ "arg">src</span>, <span class="arg">a</span>, <span class=
3195
+ "arg">b</span>, <span class="arg">c</span>, <span class=
3196
+ "arg">d</span>, <span class="arg">gravity</span>) -&gt;
3197
+ <em>image</em><br />
3198
+ <span class=
3199
+ "arg">dest</span>.composite_mathematics(<span class="arg">src</span>,
3200
+ <span class="arg">a</span>, <span class="arg">b</span>,
3201
+ <span class="arg">c</span>, <span class="arg">d</span>,
3202
+ <span class="arg">x</span>, <span class="arg">y</span>) -&gt;
3203
+ <em>image</em><br />
3204
+ <span class=
3205
+ "arg">dest</span>.composite_mathematics(<span class="arg">src</span>,
3206
+ <span class="arg">a</span>, <span class="arg">b</span>,
3207
+ <span class="arg">c</span>, <span class="arg">d</span>,
3208
+ <span class="arg">gravity</span>, <span class="arg">x</span>,
3209
+ <span class="arg">y</span>) -&gt; <em>image</em></p>
3210
+ </div>
3211
+
3212
+ <div class="desc">
3213
+ <h4>Description</h4>
3214
+
3215
+ <p>Merge the source and destination images according to the
3216
+ formula
3217
+ <em>a*Sc*Dc&nbsp;+&nbsp;b*Sc&nbsp;+&nbsp;c*Dc&nbsp;+&nbsp;d</em>
3218
+ where Sc is the source pixel and Dc is the destination
3219
+ pixel.</p>
3220
+
3221
+ <p>Equivalent to the <code>-compose Mathematics -set
3222
+ option:compose:args a,b,c,d</code> options to ImagMagick's
3223
+ <code>convert</code> command. See <a href=
3224
+ "http://www.imagemagick.org/Usage/compose/#mathematics">Examples
3225
+ of ImageMagick Usage</a>.</p>
3226
+
3227
+ <h4>Arguments</h4>
3228
+
3229
+ <dl>
3230
+ <dt>src</dt>
3231
+
3232
+ <dd>Either an imagelist or an image. If an imagelist, uses
3233
+ the current image.</dd>
3234
+
3235
+ <dt>a, b, c, d</dt>
3236
+
3237
+ <dd>See the description.</dd>
3238
+
3239
+ <dt>gravity</dt>
3240
+
3241
+ <dd>A <a href="constants.html#GravityType">GravityType</a>
3242
+ value. If omitted, the default gravity is
3243
+ NorthWestGravity.</dd>
3244
+
3245
+ <dt>x, y</dt>
3246
+
3247
+ <dd>The x- and y-offset of the composited image, measured
3248
+ relative to the <em>gravity</em> argument. If omitted, the
3249
+ default value is 0.0.</dd>
3250
+ </dl>
3251
+
3252
+ <h4>Returns</h4>
3253
+
3254
+ <p>A new image</p>
3255
+
3256
+ <h4>See also</h4>
3257
+
3258
+ <p><a href="#composite">composite</a></p>
3259
+
3260
+ <h4>Magick API</h4>
3261
+
3262
+ <p>CompositeImage</p>
3263
+ </div>
3264
+
3149
3265
  <div class="sig">
3150
3266
  <h3 id="composite_tiled">composite_tiled</h3>
3151
3267
 
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: class Image (instance methods e-o)</title>
9
+ <title>RMagick 2.11.0: class Image (instance methods e-o)</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 @@
47
47
  </head>
48
48
 
49
49
  <body>
50
- <h6 id="header">RMagick 2.10.0 User's Guide and Reference</h6>
50
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
51
51
 
52
52
  <div class="nav">
53
53
  &laquo;&nbsp;<a href="image1.html">Prev</a> | <a href=
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: class Image (instance methods p-w)</title>
9
+ <title>RMagick 2.11.0: class Image (instance methods p-w)</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -51,7 +51,7 @@
51
51
  </head>
52
52
 
53
53
  <body>
54
- <h6 id="header">RMagick 2.10.0 User's Guide and Reference</h6>
54
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
55
55
 
56
56
  <div class="nav">
57
57
  &laquo;&nbsp;<a href="image2.html">Prev</a> | <a href=
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: class Image (attribute methods)</title>
9
+ <title>RMagick 2.11.0: class Image (attribute methods)</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 2.10.0 User's Guide and Reference</h6>
28
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
29
29
 
30
30
  <div class="nav">
31
31
  &laquo;&nbsp;<a href="ilist.html">Prev</a> | <a href=
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0: ImageMagick Conventions</title>
9
+ <title>RMagick 2.11.0: ImageMagick Conventions</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -69,7 +69,7 @@
69
69
  </head>
70
70
 
71
71
  <body>
72
- <h6 id="header">RMagick 2.10.0 User's Guide and Reference</h6>
72
+ <h6 id="header">RMagick 2.11.0 User's Guide and Reference</h6>
73
73
 
74
74
  <div class="nav">
75
75
  &laquo;&nbsp;<a href="usage.html">Prev</a> | <a href=
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.10.0 User's Guide and Reference</title>
9
+ <title>RMagick 2.11.0 User's Guide and Reference</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <p id="magick">Ruby+ImageMagick<span class="tm">TM</span><br />
108
- Version 2.10.0</p>
108
+ Version 2.11.0</p>
109
109
 
110
110
  <h1>User's Guide and Reference</h1>
111
111
 
@@ -293,7 +293,7 @@
293
293
 
294
294
  <h3>About this document</h3>
295
295
 
296
- <p>This document describes Version 2.10.0 of RMagick. It is
296
+ <p>This document describes Version 2.11.0 of RMagick. It is
297
297
  divided into 4 parts. The first is this page. The second part is
298
298
  a user's guide covering both RMagick and ImageMagick usage and
299
299
  conventions. The third part is a reference guide to the