rmagick 1.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.

Files changed (239) hide show
  1. data/ChangeLog +232 -0
  2. data/Makefile.in +28 -0
  3. data/README.html +404 -0
  4. data/README.txt +397 -0
  5. data/configure +8554 -0
  6. data/configure.ac +497 -0
  7. data/doc/comtasks.html +241 -0
  8. data/doc/constants.html +1195 -0
  9. data/doc/css/doc.css +299 -0
  10. data/doc/css/popup.css +34 -0
  11. data/doc/draw.html +3108 -0
  12. data/doc/ex/Adispatch.rb +43 -0
  13. data/doc/ex/Zconstitute.rb +9 -0
  14. data/doc/ex/adaptive_threshold.rb +19 -0
  15. data/doc/ex/add_noise.rb +18 -0
  16. data/doc/ex/affine.rb +48 -0
  17. data/doc/ex/affine_transform.rb +20 -0
  18. data/doc/ex/arc.rb +47 -0
  19. data/doc/ex/arcpath.rb +33 -0
  20. data/doc/ex/average.rb +15 -0
  21. data/doc/ex/axes.rb +64 -0
  22. data/doc/ex/bilevel_channel.rb +20 -0
  23. data/doc/ex/blur_image.rb +12 -0
  24. data/doc/ex/border.rb +10 -0
  25. data/doc/ex/bounding_box.rb +48 -0
  26. data/doc/ex/cbezier1.rb +40 -0
  27. data/doc/ex/cbezier2.rb +40 -0
  28. data/doc/ex/cbezier3.rb +40 -0
  29. data/doc/ex/cbezier4.rb +41 -0
  30. data/doc/ex/cbezier5.rb +41 -0
  31. data/doc/ex/cbezier6.rb +51 -0
  32. data/doc/ex/channel.rb +26 -0
  33. data/doc/ex/channel_threshold.rb +48 -0
  34. data/doc/ex/charcoal.rb +12 -0
  35. data/doc/ex/chop.rb +29 -0
  36. data/doc/ex/circle.rb +31 -0
  37. data/doc/ex/clip_path.rb +56 -0
  38. data/doc/ex/coalesce.rb +60 -0
  39. data/doc/ex/color_fill_to_border.rb +29 -0
  40. data/doc/ex/color_floodfill.rb +28 -0
  41. data/doc/ex/color_histogram.rb +60 -0
  42. data/doc/ex/color_reset.rb +11 -0
  43. data/doc/ex/colorize.rb +16 -0
  44. data/doc/ex/colors.rb +65 -0
  45. data/doc/ex/composite.rb +135 -0
  46. data/doc/ex/contrast.rb +37 -0
  47. data/doc/ex/crop.rb +31 -0
  48. data/doc/ex/crop_with_gravity.rb +46 -0
  49. data/doc/ex/cycle_colormap.rb +21 -0
  50. data/doc/ex/demo.rb +324 -0
  51. data/doc/ex/drawcomp.rb +42 -0
  52. data/doc/ex/drop_shadow.rb +60 -0
  53. data/doc/ex/edge.rb +11 -0
  54. data/doc/ex/ellipse.rb +43 -0
  55. data/doc/ex/emboss.rb +11 -0
  56. data/doc/ex/enhance.rb +28 -0
  57. data/doc/ex/equalize.rb +11 -0
  58. data/doc/ex/flatten_images.rb +38 -0
  59. data/doc/ex/flip.rb +11 -0
  60. data/doc/ex/flop.rb +11 -0
  61. data/doc/ex/fonts.rb +20 -0
  62. data/doc/ex/frame.rb +12 -0
  63. data/doc/ex/gaussian_blur.rb +11 -0
  64. data/doc/ex/get_multiline_type_metrics.rb +53 -0
  65. data/doc/ex/get_pixels.rb +48 -0
  66. data/doc/ex/get_type_metrics.rb +140 -0
  67. data/doc/ex/gradientfill.rb +27 -0
  68. data/doc/ex/grav.rb +44 -0
  69. data/doc/ex/gravity.rb +80 -0
  70. data/doc/ex/hatchfill.rb +27 -0
  71. data/doc/ex/images/Ballerina.jpg +0 -0
  72. data/doc/ex/images/Ballerina3.jpg +0 -0
  73. data/doc/ex/images/Button_0.gif +0 -0
  74. data/doc/ex/images/Button_1.gif +0 -0
  75. data/doc/ex/images/Button_2.gif +0 -0
  76. data/doc/ex/images/Button_3.gif +0 -0
  77. data/doc/ex/images/Button_4.gif +0 -0
  78. data/doc/ex/images/Button_5.gif +0 -0
  79. data/doc/ex/images/Button_6.gif +0 -0
  80. data/doc/ex/images/Button_7.gif +0 -0
  81. data/doc/ex/images/Button_8.gif +0 -0
  82. data/doc/ex/images/Button_9.gif +0 -0
  83. data/doc/ex/images/Button_A.gif +0 -0
  84. data/doc/ex/images/Button_B.gif +0 -0
  85. data/doc/ex/images/Button_C.gif +0 -0
  86. data/doc/ex/images/Button_D.gif +0 -0
  87. data/doc/ex/images/Button_E.gif +0 -0
  88. data/doc/ex/images/Button_F.gif +0 -0
  89. data/doc/ex/images/Button_G.gif +0 -0
  90. data/doc/ex/images/Button_H.gif +0 -0
  91. data/doc/ex/images/Button_I.gif +0 -0
  92. data/doc/ex/images/Button_J.gif +0 -0
  93. data/doc/ex/images/Button_K.gif +0 -0
  94. data/doc/ex/images/Button_L.gif +0 -0
  95. data/doc/ex/images/Button_M.gif +0 -0
  96. data/doc/ex/images/Button_N.gif +0 -0
  97. data/doc/ex/images/Button_O.gif +0 -0
  98. data/doc/ex/images/Button_P.gif +0 -0
  99. data/doc/ex/images/Button_Q.gif +0 -0
  100. data/doc/ex/images/Button_R.gif +0 -0
  101. data/doc/ex/images/Button_S.gif +0 -0
  102. data/doc/ex/images/Button_T.gif +0 -0
  103. data/doc/ex/images/Button_U.gif +0 -0
  104. data/doc/ex/images/Button_V.gif +0 -0
  105. data/doc/ex/images/Button_W.gif +0 -0
  106. data/doc/ex/images/Button_X.gif +0 -0
  107. data/doc/ex/images/Button_Y.gif +0 -0
  108. data/doc/ex/images/Button_Z.gif +0 -0
  109. data/doc/ex/images/Cheetah.jpg +0 -0
  110. data/doc/ex/images/Coffee.wmf +0 -0
  111. data/doc/ex/images/Flower_Hat.jpg +0 -0
  112. data/doc/ex/images/Gold_Statue.jpg +0 -0
  113. data/doc/ex/images/Hot_Air_Balloons.jpg +0 -0
  114. data/doc/ex/images/Hot_Air_Balloons_H.jpg +0 -0
  115. data/doc/ex/images/No.wmf +0 -0
  116. data/doc/ex/images/Polynesia.jpg +0 -0
  117. data/doc/ex/images/Red_Rocks.jpg +0 -0
  118. data/doc/ex/images/Shorts.jpg +0 -0
  119. data/doc/ex/images/Snake.wmf +0 -0
  120. data/doc/ex/images/Violin.jpg +0 -0
  121. data/doc/ex/images/graydient230x6.gif +0 -0
  122. data/doc/ex/images/logo400x83.gif +0 -0
  123. data/doc/ex/images/model.miff +0 -0
  124. data/doc/ex/images/notimplemented.gif +0 -0
  125. data/doc/ex/images/smile.miff +0 -0
  126. data/doc/ex/images/spin.gif +0 -0
  127. data/doc/ex/implode.rb +32 -0
  128. data/doc/ex/level.rb +12 -0
  129. data/doc/ex/level_channel.rb +33 -0
  130. data/doc/ex/line.rb +40 -0
  131. data/doc/ex/map.rb +28 -0
  132. data/doc/ex/map_f.rb +15 -0
  133. data/doc/ex/matte_fill_to_border.rb +42 -0
  134. data/doc/ex/matte_floodfill.rb +35 -0
  135. data/doc/ex/matte_replace.rb +42 -0
  136. data/doc/ex/median_filter.rb +28 -0
  137. data/doc/ex/modulate.rb +11 -0
  138. data/doc/ex/mono.rb +23 -0
  139. data/doc/ex/morph.rb +26 -0
  140. data/doc/ex/mosaic.rb +35 -0
  141. data/doc/ex/motion_blur.rb +11 -0
  142. data/doc/ex/negate.rb +11 -0
  143. data/doc/ex/negate_channel.rb +19 -0
  144. data/doc/ex/normalize.rb +11 -0
  145. data/doc/ex/oil_paint.rb +11 -0
  146. data/doc/ex/opacity.rb +38 -0
  147. data/doc/ex/opaque.rb +14 -0
  148. data/doc/ex/ordered_dither.rb +11 -0
  149. data/doc/ex/path.rb +62 -0
  150. data/doc/ex/pattern1.rb +25 -0
  151. data/doc/ex/pattern2.rb +26 -0
  152. data/doc/ex/polygon.rb +24 -0
  153. data/doc/ex/polyline.rb +23 -0
  154. data/doc/ex/posterize.rb +19 -0
  155. data/doc/ex/preview.rb +16 -0
  156. data/doc/ex/qbezierpath.rb +49 -0
  157. data/doc/ex/quantize-m.rb +25 -0
  158. data/doc/ex/radial_blur.rb +19 -0
  159. data/doc/ex/raise.rb +11 -0
  160. data/doc/ex/random_channel_threshold.rb +17 -0
  161. data/doc/ex/random_threshold_channel.rb +18 -0
  162. data/doc/ex/rectangle.rb +33 -0
  163. data/doc/ex/reduce_noise.rb +28 -0
  164. data/doc/ex/roll.rb +9 -0
  165. data/doc/ex/rotate.rb +43 -0
  166. data/doc/ex/rotate_f.rb +14 -0
  167. data/doc/ex/roundrect.rb +32 -0
  168. data/doc/ex/rubyname.rb +31 -0
  169. data/doc/ex/segment.rb +11 -0
  170. data/doc/ex/shade.rb +11 -0
  171. data/doc/ex/shave.rb +15 -0
  172. data/doc/ex/shear.rb +10 -0
  173. data/doc/ex/skewx.rb +50 -0
  174. data/doc/ex/skewy.rb +45 -0
  175. data/doc/ex/smile.rb +124 -0
  176. data/doc/ex/solarize.rb +11 -0
  177. data/doc/ex/splice.rb +16 -0
  178. data/doc/ex/spread.rb +11 -0
  179. data/doc/ex/stegano.rb +50 -0
  180. data/doc/ex/stroke_dasharray.rb +41 -0
  181. data/doc/ex/stroke_linecap.rb +44 -0
  182. data/doc/ex/stroke_linejoin.rb +48 -0
  183. data/doc/ex/stroke_width.rb +47 -0
  184. data/doc/ex/swirl.rb +17 -0
  185. data/doc/ex/text.rb +32 -0
  186. data/doc/ex/text_align.rb +36 -0
  187. data/doc/ex/text_antialias.rb +33 -0
  188. data/doc/ex/text_undercolor.rb +26 -0
  189. data/doc/ex/texture_fill_to_border.rb +34 -0
  190. data/doc/ex/texture_floodfill.rb +31 -0
  191. data/doc/ex/texturefill.rb +25 -0
  192. data/doc/ex/threshold.rb +13 -0
  193. data/doc/ex/to_blob.rb +14 -0
  194. data/doc/ex/translate.rb +37 -0
  195. data/doc/ex/transparent.rb +38 -0
  196. data/doc/ex/trim.rb +25 -0
  197. data/doc/ex/unsharp_mask.rb +28 -0
  198. data/doc/ex/viewex.rb +36 -0
  199. data/doc/ex/wave.rb +9 -0
  200. data/doc/ilist.html +1592 -0
  201. data/doc/image1.html +3009 -0
  202. data/doc/image2.html +2169 -0
  203. data/doc/image3.html +2815 -0
  204. data/doc/imageattrs.html +1319 -0
  205. data/doc/imusage.html +403 -0
  206. data/doc/index.html +418 -0
  207. data/doc/info.html +949 -0
  208. data/doc/magick.html +439 -0
  209. data/doc/scripts/doc.js +9 -0
  210. data/doc/struct.html +1334 -0
  211. data/doc/usage.html +1318 -0
  212. data/examples/describe.rb +44 -0
  213. data/examples/histogram.rb +289 -0
  214. data/examples/image_opacity.rb +29 -0
  215. data/examples/import_export.rb +31 -0
  216. data/examples/pattern_fill.rb +38 -0
  217. data/examples/rotating_text.rb +47 -0
  218. data/examples/thumbnail.rb +65 -0
  219. data/examples/vignette.rb +79 -0
  220. data/ext/RMagick/MANIFEST +239 -0
  221. data/ext/RMagick/extconf.rb.in +21 -0
  222. data/ext/RMagick/rmagick.h +938 -0
  223. data/ext/RMagick/rmagick_config.h.in +170 -0
  224. data/ext/RMagick/rmdraw.c +1308 -0
  225. data/ext/RMagick/rmfill.c +609 -0
  226. data/ext/RMagick/rmilist.c +685 -0
  227. data/ext/RMagick/rmimage.c +7980 -0
  228. data/ext/RMagick/rminfo.c +982 -0
  229. data/ext/RMagick/rmmain.c +1497 -0
  230. data/ext/RMagick/rmutil.c +2685 -0
  231. data/install.rb +1015 -0
  232. data/lib/RMagick.rb +1486 -0
  233. data/metaconfig.in +6 -0
  234. data/post-clean.rb +12 -0
  235. data/post-install.rb +36 -0
  236. data/post-setup.rb +245 -0
  237. data/rmagick.gemspec +22 -0
  238. data/uninstall.rb +71 -0
  239. metadata +286 -0
data/ChangeLog ADDED
@@ -0,0 +1,232 @@
1
+ RMagick 1.7.1
2
+ o Fix bugs #1250, #1253
3
+ o Tested with ImageMagick 6.1.7, Ruby 1.8.2
4
+
5
+ RMagick 1.7.0
6
+ o Added splice, set_channel_depth to Image class (ImageMagick 6.0.0)
7
+ o Added sharpen_channel, blur_channel to Image class (ImageMagick 6.0.1)
8
+ o Added get_multiline_type_metrics to Draw class (ImageMagick 6.1.5),
9
+ added new example scripts and images
10
+ o Added normalize_channel, unsharp_mask_channel to Image class
11
+ (ImageMagick 6.1.0)
12
+ o Added read_inline to Image class
13
+ o Renamed channel_compare to compare_channel, retained old name as an alias
14
+ for backward compatibility.
15
+ o Added default values for unsharp_mask arguments
16
+ o Fixed bug #1193
17
+ o Fixed segfault in destroy_Draw when Ruby gc'd the temp file name
18
+ array before calling destroy_Draw
19
+ o Tested with ImageMagick 6.1.6, GraphicsMagick 1.1.4, Ruby 1.8.2preview3.
20
+
21
+ RMagick 1.6.2
22
+ o Fixed ImageList#deconstruct to return an imagelist
23
+ o Fixed installation procedure to propagate user's CFLAGS, CPPFLAGS,
24
+ and LDFLAGS through to the low-level Makefile
25
+ o Fixed bugs #1048, #1127
26
+
27
+ RMagick 1.6.1
28
+ o Changed to match changes in ImageMagick 6.1.4 API
29
+ o Fixed bug #950
30
+
31
+ RMagick 1.6.0
32
+ o Added posterize, gaussian_blur_channel, convolve_channel methods to Image class
33
+ (ImageMagick 6.0.0)
34
+ o Added new CompositeOperator constants (ImageMagick 6.0.0)
35
+ o Added trim and trim! methods to Image class
36
+ o Added each method to Enum subclasses
37
+ o Added stroke_width= attribute to the Draw class
38
+ o Fixed bugs #624, #642, #716, applied patch #819 (thanks to Daniel Quimper)
39
+ o Tested with ImageMagick 6.0.5-2, GraphicsMagick 1.1.3, Ruby 1.8.2
40
+
41
+ RMagick 1.5.0
42
+ o Added meaningful implementations of dup and clone to the Image and Draw
43
+ classes. Clarified the documentation.
44
+ o Do not allow changes to frozen Image, ImageList, and Draw objects.
45
+ o Raise TypeError if freeze method sent to Image::Info or ImageList::Montage
46
+ object.
47
+ o Added view method to Image, Image::View class (thanks to Ara T. Howard and
48
+ Charles Comstock on c.l.r for the discussion which prompted me to add this class)
49
+ o Added grayscale_pseudo_class method to Image class (GraphicsMagick 1.1)
50
+ o Added radial_blur, random_threshold_channel methods to Image class
51
+ (ImageMagick 6.0.0)
52
+ o Added quantum_operator method to Image class (GraphicsMagick 1.1, ImageMagick 6.0.0)
53
+ o Added statistics method to Image class (GraphicsMagick 1.1)
54
+ o Support channel_extrema, channel_mean with GraphicsMagick 1.1
55
+ o Added endian attribute to Image class
56
+ o Added composite! method to Image class
57
+ o Deprecated random_channel_threshold method when linked with ImageMagick 6.0.0.
58
+
59
+ RMagick 1.4.0
60
+ o Revised and updated documentation
61
+ o Implemented enumeration values as instances of an Enum
62
+ class. Based on a description by Paul Brannon in ruby-talk 79041.
63
+ o Added HSLColorspace, HWBColorspace constants (ImageMagick 5.5.7,
64
+ GraphicsMagick 1.0.2)
65
+ o Added CopyCyanCompositeOp, CopyMagentaCompositeOp,
66
+ CopyYellowCompositeOp, CopyBlackCompositeOp constants (ImageMagick 5.5.7,
67
+ GraphicsMagick 1.1)
68
+ o Added ReplaceCompositeOp. CopyCompositeOp constants (ImageMagick 6.0.0)
69
+ o Added color_histogram to Image class. (ImageMagick 6.0.0, GraphicsMagick 1.1)
70
+ o Added define method to Image::Info class (ImageMagick 6.0.0, GraphicsMagick 1.1)
71
+ o Added tint, each_profile, channel_extrema, channel_compare,
72
+ channel_depth, channel_mean, quantum_depth, preview, gamma_channel,
73
+ negate_channel, bilevel_channel methods to Image class (ImageMagick 6.0.0)
74
+ o Added get_exif_by_entry, get_exif_by_tag to Image class
75
+ o Added border! method to Image class
76
+ o Added fcmp, intensity methods to Pixel class
77
+ o Added Version_long constant
78
+ o The 'fuzz' attribute in the Image and ImageInfo classes now
79
+ accepts a percentage value as well as a numeric value.
80
+ o Added Geometry class and changed all methods that accept a geometry
81
+ string to accept a Geometry object as well
82
+ o Added dup and clone methods to the ImageList, Image, and Draw
83
+ classes (Fix for bug #254.)
84
+ o Tested with latest ImageMagick 6.0.0 beta and GraphicsMagick 1.1 snapshot
85
+
86
+ RMagick 1.3.2
87
+ o Fix profile! to require only 2 arguments, as documented.
88
+ o Correct spelling of 'transparent' in text_antialias.rb example.
89
+ o Add output of `Magick-config --libs` to LIBS variable in configure
90
+ o Minor fixes in documentation
91
+ o Test with GraphicsMagick 1.0.4
92
+ o Test with latest ImageMagick 5.5.8 beta
93
+
94
+ RMagick 1.3.1
95
+ o Fixed default base URI in the links to the installed xMagick doc
96
+ o Applied the patch for bug #76 that caused the rubyname.rb example
97
+ to hang when installing on FreeBSD.
98
+ o Fixed the <=> method in Image to return nil when the class of the
99
+ other object is not Image
100
+ o Added code to ensure that the `text' argument to Draw#text is not
101
+ nil or empty
102
+ o Fixed the handle_error function to re-initialize the exception
103
+ structure after destroying its contents.
104
+
105
+ RMagick 1.3.0
106
+ o Added strip!, import_pixels, export_pixels, random_channel_threshold
107
+ to the Image class. (Available only with ImageMagick 5.5.8, which
108
+ is still in beta.)
109
+ o Added black_threshold and white_threshold to the Image class.
110
+ o Added format= attribute writer to the Image class
111
+ o Added monochrome= attribute writer to the Image::Info class
112
+ o Added annotate to the Image class.
113
+ o Made the image argument to get_type_metrics optional. (Thanks to
114
+ Hal Fulton for suggesting this change and the annotate change!)
115
+ o Enhance the read, write, and ping methods in both the Image
116
+ class and the ImageList class to accept an open File object as
117
+ well as a filename argument.
118
+ o Added change_geometry to the Image class
119
+ o Changed configure to generate top-level Makefile with install
120
+ and uninstall targets. (Thanks to Bob Friesenhahn for the
121
+ suggestion and the the Makefile!)
122
+ o Incorporated 1.2.2.1 patch to correct problems when building
123
+ with Ruby 1.6.7.
124
+ o Added "magick_location" attribute to the ImageMagickError
125
+ class. (Available only with GraphicsMagick 1.1, not yet released.)
126
+ o Tested with ImageMagick 5.5.8 beta
127
+ o Tested with GraphicsMagick 1.0.2 and 1.1 snapshot
128
+ o Tested with Ruby 1.8.0
129
+ o Changed to MIT license
130
+
131
+ RMagick 1.2.2
132
+ o Fixed many bugs in configuration script
133
+ o Added support for GraphicsMagick 1.0 (with assistance from Bob Friesenhahn)
134
+ o Changed default documentation directory (--doc-dir option default) to
135
+ $prefix/share/RMagick
136
+ o Added "examples" directory to contain example programs that aren't
137
+ referenced by the documentation
138
+
139
+ RMagick 1.2.1
140
+ o Yet another fix to the Cygwin installation procedure
141
+
142
+ RMagick 1.2.0
143
+ o Changed install to work correctly on Cygwin
144
+ (Cygwin testing by Yuki Hirakawa and David Martinez Garcia.)
145
+ o Changed install to support Gentoo ebuild
146
+ (Gentoo support provided by Tom Payne.)
147
+ o Changed configure script to find IM doc in IM 5.5.7
148
+ o Added Image#capture
149
+ o Added optional matte_pct argument to Image#colorize
150
+ o Add default argument values to Image#gaussian_blur
151
+ o Fix bug in Image#store_pixels that prevented it from working with
152
+ GIF and other PseudoClass image formats
153
+ o Changed Image#crop and Image#crop! to accept a GravityType constant
154
+ as the first argument, instead of the x- and y-offset arguments.
155
+ (Suggested by Robert Wagner.)
156
+ o Added Image::Info#filename=, image_type=
157
+ o Added ImageList#__map__ as an alias for Enumerable#map
158
+ o Added fetch, insert, select, reject methods to ImageList class for
159
+ Ruby 1.8.0
160
+ o Undefined zip and transpose methods in ImageList class for Ruby 1.8.0
161
+ o ImageMagick 5.5.7 supported
162
+
163
+ RMagick 1.1.0
164
+ o Fixed bug in handle_error that caused an abend when linked with IM 5.5.6
165
+ o Added RMAGICK image "format". When read, returns 252x108 RMagick logo
166
+ in PNG format.
167
+ o Changed examples to give all floating point constants a leading digit.
168
+ o Added Image#rotate!
169
+ o Tested with Ruby 1.8.0preview2
170
+ o Added Image#extract_info, Image::Info#extract=, Image::Info#scene=,
171
+ Image::Info#number_scenes=, Image::Info#tile=
172
+ o Added Draw#text_align, Draw#text_anchor, Draw#text_undercolor
173
+ o ImageMagick 5.5.6 supported
174
+
175
+ RMagick 1.0.0
176
+ o Fixed warnings when compiling with Ruby 1.8.0
177
+ o Added Draw#rotation=, rotated_text.rb
178
+ o Fixed temp image files in Montage_texture and Draw_composite
179
+ o ImageMagick 5.5.5 supported
180
+
181
+ RMagick 0.9.5
182
+ o Added channel.rb example
183
+ o Fixed install problems with IM 5.5.1
184
+
185
+ RMagick 0.9.4
186
+ o Cleaned up documentation.
187
+ o Added logging methods Magick.set_log_event_mask and Magick.set_log_format
188
+ o Added Magick.set_monitor
189
+ o Added custom serialization methods _dump and _load to Image class.
190
+ Added marshaling section to usage doc.
191
+ o Added Image#mime_type
192
+ o Changed install to use autoconf-generated configure script
193
+ o Replaced makedoc.rb with post-install.rb hook
194
+ o Added rmconst.rb utility script
195
+ o ImageMagick 5.5.4 supported
196
+
197
+ RMagick 0.9.3
198
+ o Changed ImageList#<=> to use same algorithm as Array#<=>
199
+ o Changed Draw class variables to class constants
200
+ o Fixed bug in Magick::colors method that caused some colors
201
+ to be repeated or missed when the optional block is used
202
+ o Changed fill classes to not inherit from common Fill class.
203
+ Removed Fill class.
204
+ o Improved usage documentation
205
+ o Added Image#level_channel, introduced with IM 5.5.3
206
+ o ImageMagick 5.5.3 supported
207
+ o Ruby 1.6.8, 1.8.0preview1 supported
208
+
209
+ RMagick 0.9.2
210
+ o Added crop!, flip!, flop!, magnify!, minify!, resize!, sample!,
211
+ scale!, shave!, channel_threshold methods to Image class
212
+ o Documented DisposeType, ColorSeparationMatteType and OptimizeType
213
+ constants
214
+ o Changed Image#<=>, ImageList#<=> to raise TypeError if the other
215
+ argument is not in the same class
216
+ o Deleted Image#==, ImageList#==, include Comparable in both classes
217
+ o Added Image#thumbnail, thumbnail!, adaptive_threshold for 5.5.2 & later
218
+ o Used image list functions in 5.5.2 & later
219
+ o ImageMagick 5.5.2 supported
220
+ o Removed last vestiges of 5.4.9 support
221
+
222
+ RMagick 0.9.1
223
+ o Added -Wl,rpath option to $LDFLAGS in extconf.rb
224
+ o #include <sys/types.h> in rmagick.h
225
+ o Changed set_cache_threshold to call SetMagickResourceLimit instead of SetCacheThreshold
226
+ o Changed Image_texture_flood_fill to clone texture image instead of adding a reference
227
+ o Many fixes to the Array methods in ImageList
228
+ o Defined Image#<=>, defined Image#== in terms of Image#<=>
229
+ o Defined ImageList#<=> in terms of Image#<=>
230
+
231
+ RMagick 0.9.0
232
+ 1st beta
data/Makefile.in ADDED
@@ -0,0 +1,28 @@
1
+
2
+ # Path to ruby interpreter
3
+ RUBY=@RUBY@
4
+
5
+ # Any extra options from configure script to pass to 'install.rb config'
6
+ RUBY_CONFIG_OPTS=@RUBY_CONFIG_OPTS@
7
+
8
+ all: config.save
9
+ $(RUBY) install.rb setup
10
+
11
+ install:
12
+ $(RUBY) install.rb install
13
+
14
+ clean: config.save
15
+ $(RUBY) install.rb clean
16
+
17
+ distclean: config.save
18
+ $(RUBY) install.rb clean
19
+ rm -f Makefile ext/RMagick/extconf.rb metaconfig
20
+ rm -f config.status Makefile config.cache config.log
21
+ rm -rf autom4te.cache
22
+
23
+ uninstall: config.save
24
+ $(RUBY) uninstall.rb $(RUBY_CONFIG_OPTS)
25
+
26
+ config.save: metaconfig
27
+ $(RUBY) install.rb config $(RUBY_CONFIG_OPTS)
28
+
data/README.html ADDED
@@ -0,0 +1,404 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2
+ "http://www.w3.org/TR/html4/loose.dtd">
3
+ <html>
4
+ <head>
5
+ <meta name="generator" content=
6
+ "HTML Tidy for Linux/x86 (vers 1st September 2002), see www.w3.org">
7
+ <title>RMagick 1.7.1 README</title>
8
+ <meta http-equiv="Content-Type" content=
9
+ "text/html; charset=ISO-8859-1">
10
+ <meta name="GENERATOR" content="Quanta Plus">
11
+ </head>
12
+ <body>
13
+ <div align="center">
14
+ <h1>RMagick 1.7.1</h1>
15
+ <h2>README</h2>
16
+ <h4>12/25/04</h4>
17
+ </div>
18
+ <h2>Table of Contents</h2>
19
+ <ul>
20
+ <li><a href="#introduction">Introduction</a></li>
21
+ <li><a href="#contact_information">Contact
22
+ information</a></li>
23
+ <li><a href="#prerequisites">Prerequisites</a></li>
24
+ <li><a href="#tips">Tips for installing and configuring
25
+ ImageMagick and GraphicsMagick</a></li>
26
+ <li><a href="#installing_rmagick">Installing RMagick</a>
27
+ <ul>
28
+ <li><a href="#configuration_options">Configuration
29
+ options</a></li>
30
+ <li><a href="#running">Running the configure and make
31
+ scripts</a></li>
32
+ </ul>
33
+ </li>
34
+ <li><a href="#things_that_can_go_wrong">Things that can go
35
+ wrong</a></li>
36
+ <li><a href="#upgrading">Upgrading</a></li>
37
+ <li><a href="#uninstalling">Uninstalling</a></li>
38
+ <li><a href="#more_samples">More samples</a></li>
39
+ <li><a href="#undocumented_features">Undocumented
40
+ features</a></li>
41
+ <li><a href="#known_issues">Known issues</a></li>
42
+ <li><a href="#reporting_bugs">Reporting bugs</a></li>
43
+ <li><a href="#credits">Credits</a></li>
44
+ <li><a href="#license">License</a></li>
45
+ </ul>
46
+ <h2><a name="introduction">Introduction</a></h2>
47
+ <p>RMagick is an interface between the Ruby programming
48
+ language and the ImageMagick and GraphicsMagick image
49
+ processing libraries.</p>
50
+ <h2><a name="contact_information">Contact Information</a></h2>
51
+ <b>Author:</b>&nbsp;Tim Hunter<br>
52
+ <b>Email:</b>&nbsp;<a href=
53
+ "mailto:rmagick@rubyforge.org">rmagick@rubyforge.org</a><br>
54
+ <b>RubyForge:</b>&nbsp;<a href="http://rubyforge.org/projects/rmagick">RMagick</a><br>
55
+
56
+ <h2><a name="prerequisites">Prerequisites</a></h2>
57
+ <dl>
58
+ <dt><b>O/S</b></dt>
59
+ <dd>Linux, Sun Solaris, Cygwin, FreeBSD, MS Windows 98 and later.</dd>
60
+ <dt><b>Ruby</b></dt>
61
+ <dd>Ruby 1.6.7 or later. You can get Ruby from
62
+ <a href="http://www.ruby-lang.org">www.ruby-lang.org</a></dd>
63
+ </dl>
64
+ One of
65
+ <dl>
66
+ <dt><b>ImageMagick</b></dt>
67
+ <dd>ImageMagick 6.0.0 or later. You can get ImageMagick
68
+ from <a href="http://www.imagemagick.org">www.imagemagick.org</a>.</dd>
69
+ <dt><b>GraphicsMagick</b></dt>
70
+ <dd>GraphicsMagick is a friendly fork of ImageMagick 5.5.1.
71
+ You can get GraphicsMagick from <a href="http://www.graphicsmagick.org">www.graphicsmagick.org</a>.</dd>
72
+ </dl>
73
+ <p>You only need one of ImageMagick or GraphicsMagick. RMagick
74
+ works equally well with both. Some RMagick methods may not be supported in one or the other library.</p>
75
+ <h2><a name="tips">Tips for installing and configuring
76
+ ImageMagick and GraphicsMagick</a></h2>
77
+ <p>if you are installing RMagick by compiling the source code,
78
+ I <em>strongly</em> encourage you to install the latest version
79
+ of ImageMagick or GraphicsMagick <em>from source</em>.
80
+ If you have never installed ImageMagick or GraphicsMagick
81
+ before, I also strongly encourage you to
82
+ read the README.txt file as many times as is necessary for you
83
+ to understand how to configure it. ImageMagick and
84
+ GraphicsMagick are large and complicated programs and can be
85
+ difficult to configure. Follow these tips to minimize the
86
+ amount of time you'll spend and your frustration level.</p>
87
+ <p>Do <i>not</i> simply type ./configure and expect the
88
+ defaults to be correct for you. Since you are installing ImageMagick/GraphicsMagick to use
89
+ with Ruby, consider whether you want to skip
90
+ ImageMagick's/GraphicMagicks' support for Perl and C++ by using
91
+ the --without-perl and --without-magick-plus-plus options.
92
+ Doing so will speed up the installation process and save some
93
+ disk space. You will almost certainly want to specify the
94
+ --enable-shared and --disable-static options.</p>
95
+ <p>Determine which image formats you are interested in using
96
+ and make sure that you have installed the libraries that
97
+ ImageMagick/GraphicsMagick uses to process these formats.
98
+ ImageMagick and GraphicsMagick use additional libraries to
99
+ support some image formats. If you do not install those
100
+ libraries you cannot read and write those image formats. You
101
+ will need to configure ImageMagick/GraphicsMagick to support
102
+ the JPG, PNG, TIFF, and WMF formats in order to execute all the
103
+ RMagick sample programs. See ImageMagick's or GraphicMagick's
104
+ README.txt file for more information.</p>
105
+ <p>Once you have determined the configuration options you need,
106
+ run the configure script. When it completes, read the summary
107
+ output to see if configuration worked the way you expected.
108
+ Here's an example of the summary output from ImageMagick's
109
+ configure script. Notice that the result of each option is
110
+ listed in the "Configured value" column.</p>
111
+ <pre>
112
+ Option Value
113
+ -------------------------------------------------------------------------
114
+ Shared libraries --enable-shared=yes yes
115
+ Static libraries --enable-static=no no
116
+ Module support --with-modules=yes yes
117
+ GNU ld --with-gnu-ld=yes yes
118
+ LZW support --enable-lzw=yes yes
119
+ Quantum depth --with-quantum-depth=8 8
120
+
121
+ Delegate Configuration:
122
+ BZLIB --with-bzlib=yes yes
123
+ DPS --with-dps=yes yes
124
+ FlashPIX --with-fpx=yes no
125
+ FreeType 2.0 --with-ttf=yes yes
126
+ Ghostscript None gs (7.07.2)
127
+ Ghostscript fonts --with-gs-font-dir=default /usr/share/fonts/default/Type1/
128
+ Ghostscript lib --with-gslib=no no
129
+ Graphviz --with-dot=yes no
130
+ JBIG --with-jbig=yes no
131
+ JPEG v1 --with-jpeg=yes yes
132
+ JPEG-2000 --with-jp2=yes no
133
+ LCMS --with-lcms=yes yes
134
+ Magick++ --with-magick-plus-plus=no no
135
+ PERL --with-perl=no no
136
+ PNG --with-png=yes yes
137
+ TIFF --with-tiff=yes yes
138
+ Windows fonts --with-windows-font-dir=/mnt/windows/windows/fonts /mnt/windows/windows/fonts/
139
+ WMF --with-wmf=yes yes
140
+ X11 --with-x= yes
141
+ XML --with-xml=yes yes
142
+ ZLIB --with-zlib=yes yes
143
+
144
+ X11 Configuration:
145
+ X_CFLAGS = -I/usr/X11R6/include
146
+ X_PRE_LIBS = -lSM -lICE
147
+ X_LIBS = -L/usr/X11R6/lib
148
+ X_EXTRA_LIBS =
149
+ </pre>
150
+ <p>If the results are not what you wanted, install any missing
151
+ libraries, choose new or different options, or whatever it
152
+ takes, erase the config.cache file, and re-run configure.
153
+ Repeat as often as necessary before moving to the `make' and
154
+ `make install' steps.</p>
155
+ <p>Detailed information about all of ImageMagick's and
156
+ GraphicsMagick's configuration options may be found in their
157
+ README.txt and INSTALL.txt files.</p>
158
+ <h4>Windows Metafile Format</h4>
159
+ <p>As noted in the ImageMagick and GraphicsMagick README.txt
160
+ files, to support images in the Windows Metafile format,
161
+ ImageMagick/GraphicsMagick requires an additional library.
162
+ Without this library some of the RMagick sample programs will
163
+ not work. ImageMagick and GraphicsMagick require libwmf 0.2.5,
164
+ 0.2.7, or 0.2.2 to support the WMF format. (Avoid libwmf
165
+ 0.2.6!)</p>
166
+ <h2><a name="installing_rmagick">Installing RMagick</a></h2>
167
+ <p>Installing RMagick is much simpler than installing
168
+ ImageMagick or GraphicsMagick. Note that the <i>make</i> step
169
+ runs all the example programs. This process both builds the
170
+ example images used in the documentation and validates your
171
+ RMagick installation. This step can take 5-15 minutes depending
172
+ on the speed of your computer.</p>
173
+ <h4><a name="configuration_options">Configuration
174
+ options</a></h4>
175
+ <p>Type <code>./configure --help</code> to see a list of
176
+ configuration options. In addition to the regular options,
177
+ there are a few RMagick-specific options:</p>
178
+ <dl>
179
+ <dt>--with-doc-dir=directory</dt>
180
+ <dd>
181
+ Specify the directory to install the RMagick documentation.
182
+ By default this is $prefix/share/RMagick, where $prefix is
183
+ the prefix specified by --prefix. For example, to install
184
+ the documentation in /home/user/RMagick, specify:
185
+ <pre>
186
+ ./configure --with-doc-dir=/home/user/RMagick
187
+ </pre>
188
+ </dd>
189
+ <dt>--enable-allow-example-errors</dt>
190
+ <dd>Normally the documentation installation terminates if 5
191
+ examples fail. If you use this option, the installation does
192
+ not check for failing examples and will always complete. This
193
+ option is useful if you're having trouble installing RMagick
194
+ and you want to see all the failing examples.</dd>
195
+ <dt>--with-graphics-magick</dt>
196
+ <dd>If you have both ImageMagick and GraphicsMagick installed, this option will force RMagick to be configured with GraphicsMagick.</dd>
197
+ <dt>--with-so-dir=directory</dt>
198
+ <dd>The directory for ruby extensions.</dd>
199
+ <dt>--with-ruby-path=directory</dt>
200
+ <dd>The path to set the !# line in Ruby scripts. The default is <code>$prefix/bin/ruby</code>.</dd>
201
+ <dt>--with-ruby-prog=name</dt>
202
+ <dd>The name of the Ruby executable. The default is <code>ruby</code>.</dd>
203
+ <dt>--with-make-prog=name</dt>
204
+ <dd>The name of the <code>make</code> program.</dd>
205
+ <dt>--with-rbconfig=path</dt>
206
+ <dd>The path to the rbconfig.rb file to use. The default is Ruby's rbconfig.</dd>
207
+ </dl>
208
+ <br>
209
+
210
+ <h4><a name="running">Running the <code>configure</code> and
211
+ <code>make</code> scripts</a></h4>
212
+ <p>De-compress the RMagick-1.7.1.tar.gz archive and
213
+ enter the top directory. Then type:</p>
214
+ <pre>
215
+ $ ./configure &lt;configuration options&gt;
216
+ $ make
217
+ ($ su)
218
+ $ make install
219
+ (optionally)
220
+ $ make clean
221
+ </pre>
222
+ <h2><a name="things_that_can_go_wrong">Things that can go
223
+ wrong</a></h2>
224
+ <dl>
225
+ <dt><b>Cannot open shared object file</b></dt>
226
+ <dd>
227
+ <p>When <code>make</code> is running the examples, if you get
228
+ a message like this:</p>
229
+ <pre>
230
+ /home/you/RMagick-1.7.1/lib/RMagick.rb:11:in `require': libMagick.so.0:
231
+ cannot open shared object file: No such file or directory -
232
+ /home/you/RMagick-1.7.1/ext/RMagick/RMagick.so (LoadError)
233
+ </pre>
234
+ <p>you probably do not have the directory in which the
235
+ ImageMagick or GraphicsMagick library is installed in your
236
+ load path. An easy way to fix this is to define the
237
+ directory in the LD_LIBRARY_PATH environment variable. For
238
+ example, suppose you installed the GraphicsMagick library
239
+ libGraphicsMagick.so in /usr/local/lib. (By default this is
240
+ where it is installed.) Create the LD_LIBRARY_PATH variable
241
+ like this:</p>
242
+ <pre>
243
+ export LD_LIBRARY_PATH=/usr/local/lib
244
+ </pre>
245
+ <p>On Linux, see <code>ld(1)</code> and
246
+ <code>ld.so(8)</code> for more information. On other
247
+ operating systems, see the documentation for the dynamic
248
+ loading facility.</p>
249
+ </dd>
250
+ <dt><b>No such file or directory -
251
+ "/tmp/rmagick6872.6"</b></dt>
252
+ <dd>
253
+ <p>When <code>make</code> is running the examples, if you get
254
+ a message like this:</p>
255
+ <pre>
256
+ hook /home/me/src/RMagick-1.7.1/./post-setup.rb failed:
257
+ No such file or directory - "/tmp/rmagick6872.6"
258
+ </pre>
259
+ <p>you probably do not have a temporary directory
260
+ environment variable set. Set the TMPDIR environment
261
+ variable to your temporary directory. For example:</p>
262
+ <pre>
263
+ export TMPDIR=/home/me/tmp
264
+ </pre>
265
+ </dd>
266
+ </dl>
267
+ <h2><a name="upgrading">Upgrading</a></h2>
268
+ <p>If you upgrade to a newer release of ImageMagick or
269
+ GraphicsMagick, make sure you're using a release of RMagick
270
+ that supports that release. Usually I put out a new release of
271
+ RMagick with every new release of ImageMagick. It's safe to
272
+ install a newer release of RMagick over an earlier release.</p>
273
+ <h2><a name="uninstalling">Uninstalling</a></h2>
274
+ <p>The `uninstall' target will uninstall RMagick completely:</p>
275
+ <blockquote><code>make uninstall</code></blockquote>
276
+ <h2>More samples</h2>
277
+ <p>You can find more sample RMagick programs in the /example
278
+ directory. These programs are not installed in the RMagick
279
+ documentation tree.</p>
280
+ <h2><a name="undocumented_features">Undocumented
281
+ features</a></h2>
282
+ <p>This release includes an extra feature that isn't in the
283
+ documentation. The Magick module defines two methods that
284
+ control ImageMagick's logging function. This function is not
285
+ officially documented by ImageMagick, so I have decided not to
286
+ add them to RMagick's documentation. However, you may find them
287
+ helpful for debugging your application. (Caveat: these two
288
+ methods may change behavior or be removed without advance
289
+ notice! You are on your own!)</p>
290
+ <p><i>Magick::set_log_event_mask(event [,...]) -&gt;
291
+ Magick</i></p>
292
+ <p>The arguments are one or more "event domains". The
293
+ set_log_event_mask method recognizes these event domains:
294
+ "all", "annotate", "blob", "cache", "coder", "configure",
295
+ "deprecate", "draw", "locale", "none", "resource", "transform", "user",
296
+ and "x11". ImageMagick events that match the mask are logged.
297
+ The default domain is "none". For example,</p>
298
+ <pre>
299
+ Magick::set_log_event_mask("render")
300
+
301
+ </pre>
302
+ <p>Logging is controlled by the log.mgk file, which may be
303
+ found in the same directory as the delegates.mgk files. (See
304
+ ImageMagick's README.txt file.) The purpose of the entries in
305
+ this file is undocumented, so your guess is as good as mine.
306
+ Also, the meaning of the event domains and exactly what events
307
+ are logged are undocumented.</p>
308
+ <p><i>Magick::set_log_format(format) -&gt; Magick</i></p>
309
+ <p>The default log format is described in the log.mgk file.
310
+ This method allows you to redefine the format at run-time. The
311
+ format argument is a string similar to an fprintf format
312
+ string. Each line in the log has the format described by the
313
+ format string. Characters that are not control characters are
314
+ printed as-is. The control characters are:</p>
315
+ <pre>
316
+ %t - the current time
317
+ %r - the elapsed time
318
+ %u - the user time
319
+ %p - the pid (process id)
320
+ %m - the name of the ImageMagick source file that contains the
321
+ function that generated the event
322
+ %f - the name of the ImageMagick function that generated the
323
+ event
324
+ %l - the line number in the source file
325
+ %d - the event domain (one of the event mask strings listed above)
326
+ %e - the event name
327
+ </pre>
328
+ <p>For example, the default log format is:</p>
329
+ <pre>
330
+ Magick::set_log_format("%t %r %u %p %m/%f/%l/%d:\n %e")
331
+ </pre>
332
+ <h2><a name="known_issues">Known issues</a></h2>
333
+ <ol>
334
+ <li>
335
+ gcc 3.2, during the "install.rb setup" step, issues the
336
+ warning:
337
+ <pre>
338
+ cc1: warning: changing search order for system directory "/usr/local/include"
339
+ cc1: warning: as it has already been specified as a non-system directory
340
+ </pre>
341
+ This does not indicate a problem.
342
+ </li>
343
+ <li>
344
+ With older releases of ImageMagick you may see the warning:
345
+ <pre>
346
+ /usr/include/sys/ipc.h:25:3: warning: #warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
347
+ </pre>
348
+ This is harmless.
349
+ </li>
350
+ </ol>
351
+ <h2><a name="reporting_bugs">Reporting bugs</a></h2>
352
+ <p>Please report bugs in RMagick, its documentation, or its
353
+ installation programs to me via the bug tracker on the
354
+ <a href="http://rubyforge.org/projects/rmagick/">RMagick project page</a>
355
+ at RubyForge.
356
+ However, I cannot help with Ruby installation and configuration
357
+ or ImageMagick or GraphicsMagick installation and
358
+ configuration. Please report problems with that software to
359
+ their respective authors or distributors.</p>
360
+ <h2><a name="credits">Credits</a></h2>
361
+ <p>Thanks to</p>
362
+ <ul>
363
+ <li>Akinori MUSHA, for his work making RMagick available on
364
+ FreeBSD.</li>
365
+ <li>Tom Payne, for reporting bugs, sending me the Ruby 1.8.0
366
+ patches, and for the Gentoo ebuild.</li>
367
+ <li>Bob Friesenhahn, for GraphicsMagick. Also for his help with
368
+ the RMagick installation and many other things.</li>
369
+ <li>
370
+ Simple Systems, for hosting the RMagick documentation online.
371
+ </li>
372
+ <li>Mike Williams, for the RMagick Debian package</li>
373
+ <li>ImageMagick Studio LLC, for ImageMagick and for
374
+ hosting the RMagick documentation.</li>
375
+ <li>Kaspar Schiess, for the MS Windows gem.</li>
376
+ </ul>
377
+ <h2><a name="license">License</a></h2>
378
+
379
+ <div style="padding: 1em; margin-left: 5%; margin-right: 5%; background-color: #dcdcdc">
380
+
381
+ <p>Copyright &copy; 2004 by Timothy P. Hunter</p>
382
+ <p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
383
+ </p>
384
+
385
+
386
+ <p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
387
+
388
+
389
+
390
+ <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </p> </div>
391
+ <div align="center" style="padding: 3em">
392
+ <table>
393
+ <tr>
394
+ <td>
395
+ <a href="http://www.opensource.org/docs/definition.php">
396
+ <img src="http://www.opensource.org/trademarks/osi-certified/web/osi-certified-60x50.gif"
397
+ border="0" width="60" height="50"></a>
398
+ <td align="center">
399
+ <p><strong>This software is OSI Certified Open Source Software.<br>
400
+ OSI Certified is a certification mark of the Open Source Initiative.</strong></p>
401
+ </td></tr></table>
402
+ </div>
403
+ </body>
404
+ </html>