rmagick 2.7.0 → 2.7.1

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,14 @@
1
+ RMagick 2.7.1
2
+ o Fix bug #22471, Magick::fonts can abend on 64-bit systems (bug report and
3
+ patch by James Le Cuirot)
4
+ o ImageList.new accepts a block which is passed on to Image::read when
5
+ reading the input images. The block is executed in the context of an
6
+ Image::Info object.
7
+ o Add support for the "user" image property.
8
+ o Define the Magick::FatalImageMagickError exception class, raised if
9
+ ImageMagick raises a fatal (unrecoverable) exception.
10
+ o Added feature #22618, Image#total_ink_density (request by F. Behrens)
11
+
1
12
  RMagick 2.7.0
2
13
  o Fix bug #22152, extconf.rb does not respect the LDFLAGS environment
3
14
  variable (bug report by Joseph Sokol-Margolis)
@@ -1,15 +1,15 @@
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.7.0 README</title>
4
+ <title>RMagick 2.7.1 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.7.0 <span class="caps">README</span></h1>
9
+ <h1>RMagick 2.7.1 <span class="caps">README</span></h1>
10
10
 
11
11
 
12
- <h2>09/28/08</h2>
12
+ <h2>11/01/08</h2>
13
13
 
14
14
 
15
15
  <h3>Table of Contents</h3>
@@ -75,12 +75,12 @@ depending on which tarball you have:</p>
75
75
 
76
76
 
77
77
  <pre>
78
- tar xvzf RMagick-2.7.0-tar.gz (gzipped tarball)
79
- tar xvjf RMagick-2.7.0-tar.bz2 (bzipped tarball)
78
+ tar xvzf RMagick-2.7.1-tar.gz (gzipped tarball)
79
+ tar xvjf RMagick-2.7.1-tar.bz2 (bzipped tarball)
80
80
  7z e RMagick-x.y.z.tar.lzma -so | tar xv (7zipped tarball)
81
81
  </pre>
82
82
 
83
- <p>Change to the RMagick-2.7.0 directory. If you are not using any
83
+ <p>Change to the RMagick-2.7.1 directory. If you are not using any
84
84
  configuration options (usually you don&#8217;t need to) enter the command</p>
85
85
 
86
86
 
@@ -191,7 +191,7 @@ systems, see the documentation for the dynamic loading facility.</p>
191
191
 
192
192
 
193
193
  <pre>
194
- hook /home/me/src/RMagick-2.7.0/./post-setup.rb failed:
194
+ hook /home/me/src/RMagick-2.7.1/./post-setup.rb failed:
195
195
  No such file or directory - "/tmp/rmagick6872.6"
196
196
  </pre>
197
197
 
@@ -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.7.0: Common Tasks</title>
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
34
+ <h6 id="header">RMagick 2.7.1 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=
@@ -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.7.0: Constants</title>
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
64
+ <h6 id="header">RMagick 2.7.1 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=
@@ -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.7.0: class Draw</title>
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
28
+ <h6 id="header">RMagick 2.7.1 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 @@
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.7.0: class ImageList</title>
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
23
+ <h6 id="header">RMagick 2.7.1 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=
@@ -134,9 +134,11 @@
134
134
  <div class="sig">
135
135
  <h3 id="new">new</h3>
136
136
 
137
- <p>Magick::ImageList.new -&gt; <em>imagelist</em><br />
137
+ <p>Magick::ImageList.new <span class="arg">[&nbsp;{ optional
138
+ arguments }&nbsp;]</span> -&gt; <em>imagelist</em><br />
138
139
  Magick::ImageList.new(<span class="arg">filename[,
139
- filename...]]</span>) -&gt; <em>imagelist</em></p>
140
+ filename...]]</span>) <span class="arg">[&nbsp;{ optional
141
+ arguments }&nbsp;]</span> -&gt; <em>imagelist</em></p>
140
142
  </div>
141
143
 
142
144
  <div class="desc">
@@ -150,7 +152,10 @@
150
152
 
151
153
  <h4>Arguments</h4>
152
154
 
153
- <p>Zero or more image file names.</p>
155
+ <p>Zero or more image file names. You can also specify optional
156
+ arguments to be used when reading the file(s) by setting
157
+ <a href="info.html">Image::Info</a> attributes in the optional
158
+ block.</p>
154
159
 
155
160
  <h4>Returns</h4>
156
161
 
@@ -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.7.0: class Image (class methods and instance
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
51
+ <h6 id="header">RMagick 2.7.1 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=
@@ -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.7.0: class Image (instance methods e-o)</title>
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
50
+ <h6 id="header">RMagick 2.7.1 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.7.0: class Image (instance methods p-w)</title>
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
54
+ <h6 id="header">RMagick 2.7.1 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=
@@ -4,28 +4,28 @@
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 1 September 2005), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.7.0: class Image (attribute methods)</title>
9
+ <title>RMagick 2.7.1: 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" />
13
13
  <meta name="Copyright" content=
14
14
  "Copyright (C) 2006 by Timothy P. Hunter" />
15
15
  <link rel="stylesheet" type="text/css" href="css/doc.css" />
16
- <script type="text/javascript" src="scripts/doc.js">
16
+ <script type="text/javascript" src="scripts/doc.js">
17
17
  </script>
18
- <style type="text/css">
19
- /*<![CDATA[*/
18
+ <style type="text/css">
19
+ /*<![CDATA[*/
20
20
 
21
21
  /* Styles local to this page. */
22
22
 
23
23
  /*]]>*/
24
- </style>
24
+ </style>
25
25
  </head>
26
26
 
27
27
  <body>
28
- <h6 id="header">RMagick 2.7.0 User's Guide and Reference</h6>
28
+ <h6 id="header">RMagick 2.7.1 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=
@@ -83,13 +83,13 @@
83
83
  <li><a href="#density">density</a></li>
84
84
 
85
85
  <li><a href="#depth">depth</a></li>
86
+
87
+ <li><a href="#directory">directory</a></li>
86
88
  </ul>
87
89
  </div>
88
90
 
89
91
  <div class="toccol">
90
92
  <ul>
91
- <li><a href="#directory">directory</a></li>
92
-
93
93
  <li><a href="#dispose">dispose</a></li>
94
94
 
95
95
  <li><a href="#endian">endian</a></li>
@@ -128,14 +128,14 @@
128
128
  <li><a href="#monitor">monitor</a></li>
129
129
 
130
130
  <li><a href="#montage">montage</a></li>
131
+
132
+ <li><a href=
133
+ "#normalized_mean_error">normalized_mean_error</a></li>
131
134
  </ul>
132
135
  </div>
133
136
 
134
137
  <div class="toccol">
135
138
  <ul>
136
- <li><a href=
137
- "#normalized_mean_error">normalized_mean_error</a></li>
138
-
139
139
  <li><a href=
140
140
  "#normalized_maximum_error">normalized_maximum_error</a></li>
141
141
 
@@ -168,6 +168,9 @@
168
168
 
169
169
  <li><a href="#total_colors">total_colors</a></li>
170
170
 
171
+ <li><a href=
172
+ "#total_ink_density">total_ink_density</a></li>
173
+
171
174
  <li><a href="#units">units</a></li>
172
175
 
173
176
  <li><a href=
@@ -1456,6 +1459,22 @@ blur_image is 100% complete.
1456
1459
  Get-only.</p>
1457
1460
  </div>
1458
1461
 
1462
+ <div class="sig">
1463
+ <h3 id="total_ink_density">total_ink_density</h3>
1464
+
1465
+ <p><span class="arg">img</span>.total_ink_density -&gt;
1466
+ float</p>
1467
+ </div>
1468
+
1469
+ <div class="desc">
1470
+ <h4>Description</h4>
1471
+
1472
+ <p><span class="imquote">The total ink density for a CMYK
1473
+ image. Total Ink Density (TID) is determined by adding the CMYK
1474
+ values in the darkest shadow area in an image.</span>
1475
+ Get-only.</p>
1476
+ </div>
1477
+
1459
1478
  <div class="sig">
1460
1479
  <h3 id="units">units</h3>
1461
1480
 
@@ -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.7.0: ImageMagick Conventions</title>
9
+ <title>RMagick 2.7.1: 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.7.0 User's Guide and Reference</h6>
72
+ <h6 id="header">RMagick 2.7.1 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.7.0 User's Guide and Reference</title>
9
+ <title>RMagick 2.7.1 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.7.0</p>
108
+ Version 2.7.1</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.7.0 of RMagick. It is
296
+ <p>This document describes Version 2.7.1 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
@@ -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 1 September 2005), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.7.0: class Image::Info - Optional method
9
+ <title>RMagick 2.7.1: class Image::Info - Optional method
10
10
  arguments</title>
11
11
  <meta http-equiv="Content-Type" content=
12
12
  "text/html; charset=us-ascii" />
@@ -14,10 +14,10 @@
14
14
  <meta name="Copyright" content=
15
15
  "Copyright (C) 2006 by Timothy P. Hunter" />
16
16
  <link rel="stylesheet" type="text/css" href="css/doc.css" />
17
- <script type="text/javascript" src="scripts/doc.js">
17
+ <script type="text/javascript" src="scripts/doc.js">
18
18
  </script>
19
- <style type="text/css">
20
- /*<![CDATA[*/
19
+ <style type="text/css">
20
+ /*<![CDATA[*/
21
21
 
22
22
  /* Styles local to this page. */
23
23
 
@@ -40,11 +40,11 @@
40
40
  }
41
41
 
42
42
  /*]]>*/
43
- </style>
43
+ </style>
44
44
  </head>
45
45
 
46
46
  <body>
47
- <h6 id="header">RMagick 2.7.0 User's Guide and Reference</h6>
47
+ <h6 id="header">RMagick 2.7.1 User's Guide and Reference</h6>
48
48
 
49
49
  <div class="nav">
50
50
  &laquo;&nbsp;<a href="struct.html">Prev</a> | <a href=
@@ -247,6 +247,30 @@
247
247
  <code>nil</code> to set the key to a null value.</dd>
248
248
  </dl>
249
249
 
250
+ <h4 id="user_option">The "user" option</h4>
251
+
252
+ <p>The "user" option is unique to RMagick. It may be set to any
253
+ string. If this option is used when creating an image via one
254
+ of the methods listed below then the new image gets the value
255
+ assigned as a property as if <code>img["user"]</code> had been
256
+ used. In addition, the value is displayed in the string
257
+ returned by <code>Image#inspect</code>. The "user" property can
258
+ be used to help distinguish otherwise similar images when
259
+ debugging.</p>
260
+
261
+ <p>For example,</p>
262
+ <pre>
263
+ img = Magick::Image.new(10,10) do
264
+ self['user'] = __FILE__ + ':' + __LINE__.to_s
265
+ end &raquo; 10x10 DirectClass 16-bit user:test.rb:3
266
+ </pre>
267
+
268
+ <p>These methods propogate the value of the "user" option to
269
+ new image(s): <code>Image.new, ImageList.new,
270
+ ImageList.new_image, Image.capture, Image.from_blob,
271
+ ImageList.from_blob, Image.read, ImageList.read,
272
+ Image.read_inline, and Image.ping</code>.</p>
273
+
250
274
  <h4>Returns</h4>
251
275
 
252
276
  <p>self</p>
@@ -1083,8 +1107,8 @@ p img.first['caption'] &raquo; "a new caption"
1083
1107
  optional arguments such as <code>read</code> and
1084
1108
  <code>write</code>. To stop monitoring, set the monitor to
1085
1109
  <code>nil</code>. See <a href=
1086
- "imageattrs.html#monitor">Image#monitor</a> for more information
1087
- about the proc. This attribute is set-only.</p>
1110
+ "imageattrs.html#monitor">Image#monitor</a> for more
1111
+ information about the proc. This attribute is set-only.</p>
1088
1112
 
1089
1113
  <p>If you assign a monitor to an image with
1090
1114
  <code>self.monitor=</code> when the image is created, the image
@@ -4,27 +4,27 @@
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 1 September 2005), see www.w3.org" />
7
+ "HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.7.0: module Magick</title>
9
+ <title>RMagick 2.7.1: module Magick</title>
10
10
  <meta http-equiv="Content-Type" content=
11
11
  "text/html; charset=us-ascii" />
12
12
  <meta name="GENERATOR" content="Quanta Plus" />
13
13
  <meta name="Copyright" content=
14
14
  "Copyright (C) 2006 by Timothy P. Hunter" />
15
15
  <link rel="stylesheet" type="text/css" href="css/doc.css" />
16
- <script type="text/javascript" src="scripts/doc.js">
16
+ <script type="text/javascript" src="scripts/doc.js">
17
17
  </script>
18
- <style type="text/css">
19
- /*<![CDATA[*/
18
+ <style type="text/css">
19
+ /*<![CDATA[*/
20
20
 
21
21
  /* Styles local to this page. */
22
22
  /*]]>*/
23
- </style>
23
+ </style>
24
24
  </head>
25
25
 
26
26
  <body>
27
- <h6 id="header">RMagick 2.7.0 User's Guide and Reference</h6>
27
+ <h6 id="header">RMagick 2.7.1 User's Guide and Reference</h6>
28
28
 
29
29
  <div class="nav">
30
30
  &laquo;&nbsp;<a href="comtasks.html">Prev</a> | <a href=
@@ -548,6 +548,10 @@ convert -list log
548
548
 
549
549
  <p>If called while Ruby is cleaning up after the program has
550
550
  finished, any methods the proc calls may not be executed.</p>
551
+
552
+ <p>Use <a href="info.html#user_option">the "user" option</a> to
553
+ add an additional identifying string to the image's
554
+ description.</p>
551
555
  </div>
552
556
 
553
557
  <p class="spacer">&nbsp;</p>