rmagick 2.13.1 → 2.13.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.travis.yml +57 -0
  4. data/CONTRIBUTING.md +22 -0
  5. data/ChangeLog +49 -2
  6. data/Gemfile +7 -0
  7. data/LICENSE +20 -0
  8. data/README.textile +161 -0
  9. data/Rakefile +176 -0
  10. data/before_install_linux.sh +12 -0
  11. data/before_install_osx.sh +2 -0
  12. data/doc/.cvsignore +1 -0
  13. data/doc/comtasks.html +2 -2
  14. data/doc/constants.html +2 -2
  15. data/doc/draw.html +2 -2
  16. data/doc/ex/PreserveAspectRatio.rb +0 -0
  17. data/doc/ex/ViewBox.rb +0 -0
  18. data/doc/ex/adaptive_threshold.rb +0 -0
  19. data/doc/ex/add_noise.rb +0 -0
  20. data/doc/ex/affine.rb +0 -0
  21. data/doc/ex/affine_transform.rb +0 -0
  22. data/doc/ex/arc.rb +0 -0
  23. data/doc/ex/arcpath.rb +0 -0
  24. data/doc/ex/average.rb +0 -0
  25. data/doc/ex/axes.rb +0 -0
  26. data/doc/ex/bilevel_channel.rb +0 -0
  27. data/doc/ex/blur_image.rb +0 -0
  28. data/doc/ex/border.rb +0 -0
  29. data/doc/ex/bounding_box.rb +0 -0
  30. data/doc/ex/cbezier1.rb +0 -0
  31. data/doc/ex/cbezier2.rb +0 -0
  32. data/doc/ex/cbezier3.rb +0 -0
  33. data/doc/ex/cbezier4.rb +0 -0
  34. data/doc/ex/cbezier5.rb +0 -0
  35. data/doc/ex/cbezier6.rb +0 -0
  36. data/doc/ex/channel.rb +0 -0
  37. data/doc/ex/charcoal.rb +0 -0
  38. data/doc/ex/chop.rb +0 -0
  39. data/doc/ex/circle.rb +0 -0
  40. data/doc/ex/clip_path.rb +0 -0
  41. data/doc/ex/coalesce.rb +0 -0
  42. data/doc/ex/color_fill_to_border.rb +0 -0
  43. data/doc/ex/color_floodfill.rb +0 -0
  44. data/doc/ex/color_histogram.rb +0 -0
  45. data/doc/ex/color_reset.rb +0 -0
  46. data/doc/ex/colorize.rb +0 -0
  47. data/doc/ex/colors.rb +0 -0
  48. data/doc/ex/composite.rb +0 -0
  49. data/doc/ex/composite_layers.rb +0 -0
  50. data/doc/ex/contrast.rb +0 -0
  51. data/doc/ex/crop.rb +0 -0
  52. data/doc/ex/cycle_colormap.rb +0 -0
  53. data/doc/ex/drawcomp.rb +0 -0
  54. data/doc/ex/drop_shadow.rb +0 -0
  55. data/doc/ex/edge.rb +0 -0
  56. data/doc/ex/ellipse.rb +0 -0
  57. data/doc/ex/emboss.rb +0 -0
  58. data/doc/ex/enhance.rb +0 -0
  59. data/doc/ex/equalize.rb +0 -0
  60. data/doc/ex/evenodd.rb +0 -0
  61. data/doc/ex/flatten_images.rb +0 -0
  62. data/doc/ex/flip.rb +0 -0
  63. data/doc/ex/flop.rb +0 -0
  64. data/doc/ex/fonts.rb +0 -0
  65. data/doc/ex/frame.rb +0 -0
  66. data/doc/ex/gaussian_blur.rb +0 -0
  67. data/doc/ex/get_pixels.rb +0 -0
  68. data/doc/ex/gradientfill.rb +0 -0
  69. data/doc/ex/grav.rb +0 -0
  70. data/doc/ex/gravity.rb +0 -0
  71. data/doc/ex/hatchfill.rb +0 -0
  72. data/doc/ex/images/image_with_profile.jpg +0 -0
  73. data/doc/ex/images/logo400x83.gif +0 -0
  74. data/doc/ex/implode.rb +0 -0
  75. data/doc/ex/level.rb +0 -0
  76. data/doc/ex/line.rb +0 -0
  77. data/doc/ex/mask.rb +1 -1
  78. data/doc/ex/matte_fill_to_border.rb +0 -0
  79. data/doc/ex/matte_floodfill.rb +0 -0
  80. data/doc/ex/matte_replace.rb +0 -0
  81. data/doc/ex/median_filter.rb +0 -0
  82. data/doc/ex/modulate.rb +0 -0
  83. data/doc/ex/mono.rb +0 -0
  84. data/doc/ex/morph.rb +0 -0
  85. data/doc/ex/mosaic.rb +0 -0
  86. data/doc/ex/motion_blur.rb +0 -0
  87. data/doc/ex/negate.rb +0 -0
  88. data/doc/ex/nested_rvg.rb +0 -0
  89. data/doc/ex/nonzero.rb +0 -0
  90. data/doc/ex/normalize.rb +0 -0
  91. data/doc/ex/oil_paint.rb +0 -0
  92. data/doc/ex/opacity.rb +0 -0
  93. data/doc/ex/ordered_dither.rb +0 -0
  94. data/doc/ex/path.rb +0 -0
  95. data/doc/ex/pattern1.rb +0 -0
  96. data/doc/ex/pattern2.rb +0 -0
  97. data/doc/ex/polygon.rb +0 -0
  98. data/doc/ex/polyline.rb +0 -0
  99. data/doc/ex/preview.rb +0 -0
  100. data/doc/ex/qbezierpath.rb +0 -0
  101. data/doc/ex/quantize-m.rb +0 -0
  102. data/doc/ex/radial_blur.rb +0 -0
  103. data/doc/ex/raise.rb +0 -0
  104. data/doc/ex/rectangle.rb +0 -0
  105. data/doc/ex/reduce_noise.rb +0 -0
  106. data/doc/ex/roll.rb +0 -0
  107. data/doc/ex/rotate.rb +0 -0
  108. data/doc/ex/rotate_f.rb +0 -0
  109. data/doc/ex/roundrect.rb +0 -0
  110. data/doc/ex/rubyname.rb +0 -0
  111. data/doc/ex/rvg_linecap.rb +0 -0
  112. data/doc/ex/rvg_linejoin.rb +0 -0
  113. data/doc/ex/rvg_opacity.rb +0 -0
  114. data/doc/ex/rvg_stroke_dasharray.rb +0 -0
  115. data/doc/ex/segment.rb +0 -0
  116. data/doc/ex/shade.rb +0 -0
  117. data/doc/ex/shave.rb +0 -0
  118. data/doc/ex/shear.rb +0 -0
  119. data/doc/ex/sketch.rb +0 -0
  120. data/doc/ex/skewx.rb +0 -0
  121. data/doc/ex/skewy.rb +0 -0
  122. data/doc/ex/smile.rb +0 -0
  123. data/doc/ex/solarize.rb +0 -0
  124. data/doc/ex/spread.rb +0 -0
  125. data/doc/ex/stegano.rb +0 -0
  126. data/doc/ex/stroke_dasharray.rb +0 -0
  127. data/doc/ex/stroke_fill.rb +0 -0
  128. data/doc/ex/stroke_linecap.rb +0 -0
  129. data/doc/ex/stroke_linejoin.rb +0 -0
  130. data/doc/ex/stroke_width.rb +0 -0
  131. data/doc/ex/swirl.rb +0 -0
  132. data/doc/ex/text.rb +0 -0
  133. data/doc/ex/text_align.rb +0 -0
  134. data/doc/ex/text_antialias.rb +0 -0
  135. data/doc/ex/text_undercolor.rb +0 -0
  136. data/doc/ex/texture_fill_to_border.rb +0 -0
  137. data/doc/ex/texture_floodfill.rb +0 -0
  138. data/doc/ex/texturefill.rb +0 -0
  139. data/doc/ex/threshold.rb +0 -0
  140. data/doc/ex/to_blob.rb +0 -0
  141. data/doc/ex/translate.rb +0 -0
  142. data/doc/ex/transparent.rb +0 -0
  143. data/doc/ex/unsharp_mask.rb +0 -0
  144. data/doc/ex/wave.rb +0 -0
  145. data/doc/ilist.html +2 -2
  146. data/doc/image1.html +2 -2
  147. data/doc/image2.html +2 -2
  148. data/doc/image3.html +2 -2
  149. data/doc/imageattrs.html +2 -2
  150. data/doc/imusage.html +2 -2
  151. data/doc/index.html +3 -3
  152. data/doc/info.html +2 -2
  153. data/doc/magick.html +2 -2
  154. data/doc/optequiv.html +2 -2
  155. data/doc/rvg.html +2 -2
  156. data/doc/rvgclip.html +2 -2
  157. data/doc/rvggroup.html +2 -2
  158. data/doc/rvgimage.html +2 -2
  159. data/doc/rvgpattern.html +2 -2
  160. data/doc/rvgshape.html +2 -2
  161. data/doc/rvgstyle.html +2 -2
  162. data/doc/rvgtext.html +2 -2
  163. data/doc/rvgtspan.html +2 -2
  164. data/doc/rvgtut.html +2 -2
  165. data/doc/rvguse.html +2 -2
  166. data/doc/rvgxform.html +2 -2
  167. data/doc/struct.html +2 -2
  168. data/doc/usage.html +2 -2
  169. data/examples/crop_with_gravity.rb +0 -0
  170. data/examples/demo.rb +0 -0
  171. data/examples/describe.rb +0 -0
  172. data/examples/identify.rb +1 -1
  173. data/examples/rotating_text.rb +0 -0
  174. data/ext/RMagick/extconf.rb +62 -31
  175. data/ext/RMagick/rmagick.c +15 -15
  176. data/ext/RMagick/rmagick.h +9 -7
  177. data/ext/RMagick/rmdraw.c +12 -12
  178. data/ext/RMagick/rmenum.c +2 -2
  179. data/ext/RMagick/rmfill.c +25 -25
  180. data/ext/RMagick/rmilist.c +121 -104
  181. data/ext/RMagick/rmimage.c +743 -548
  182. data/ext/RMagick/rminfo.c +15 -15
  183. data/ext/RMagick/rmmain.c +27 -3
  184. data/ext/RMagick/rmpixel.c +25 -27
  185. data/ext/RMagick/rmstruct.c +1 -1
  186. data/ext/RMagick/rmutil.c +18 -18
  187. data/lib/RMagick.rb +1 -1962
  188. data/lib/rmagick/version.rb +5 -0
  189. data/lib/rmagick.rb +1 -0
  190. data/lib/rmagick_internal.rb +1964 -0
  191. data/rmagick.gemspec +21 -9
  192. data/test/Draw.rb +121 -0
  193. data/test/Image1.rb +763 -0
  194. data/test/Image2.rb +1312 -0
  195. data/test/Image3.rb +1033 -0
  196. data/test/ImageList1.rb +808 -0
  197. data/test/ImageList2.rb +389 -0
  198. data/test/Image_attributes.rb +700 -0
  199. data/test/Import_Export.rb +126 -0
  200. data/test/Info.rb +349 -0
  201. data/test/Magick.rb +324 -0
  202. data/test/Pixel.rb +119 -0
  203. data/test/Preview.rb +62 -0
  204. data/test/cmyk.icm +0 -0
  205. data/test/srgb.icm +0 -0
  206. data/test/test_all_basic.rb +34 -0
  207. data/test/tmpnam_test.rb +50 -0
  208. metadata +395 -352
  209. data/README-Mac-OSX.txt +0 -1
  210. data/README.html +0 -10
  211. data/build_tarball.rake +0 -215
  212. data/ext/RMagick/MANIFEST +0 -358
  213. data/metaconfig +0 -7
  214. data/post-clean.rb +0 -12
  215. data/post-install.rb +0 -50
  216. data/post-setup.rb +0 -254
  217. data/setup.rb +0 -1585
  218. data/uninstall.rb +0 -74
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 508f276e9009e084323676549e393518a5d4bb86
4
+ data.tar.gz: 25255ce344cfe6c13ad3e8c86196af8c4acfc1df
5
+ SHA512:
6
+ metadata.gz: d6c520465ccb71d40bc6930e5c21d857c13f6f5d48d38d9ebce852ed6a7a96db4e840ddf9c959b9692de0d495ba74c122272592cf76de690c02c272273338310
7
+ data.tar.gz: 224f1cc16579906b338ee8e5bd6052b08e736d4b22cb314984abff9600a2dabb13a8f287fa2c9adeada88673ca5a6d51f0b87ac8567a07675e458e577965b1aa
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ lib/bundler/man
11
+ pkg
12
+ rdoc
13
+ spec/reports
14
+ test/tmp
15
+ test/version_tmp
16
+ tmp
17
+ *.bundle
18
+ *.so
19
+ *.o
20
+ *.a
21
+ mkmf.log
data/.travis.yml ADDED
@@ -0,0 +1,57 @@
1
+ language: ruby
2
+
3
+ os:
4
+ - linux
5
+ #- osx
6
+
7
+ env:
8
+ # Currently successful release
9
+ - IMAGEMAGICK_VERSION=6.6.9-10
10
+ # Ubuntu's current stable release
11
+ - IMAGEMAGICK_VERSION=6.7.7-10
12
+ # Latest 6.7 release
13
+ - IMAGEMAGICK_VERSION=6.7.9-10
14
+ # Latest 6.8 release
15
+ - IMAGEMAGICK_VERSION=6.8.9-6
16
+ # Try with HDRI support, we don't mind if this fails currently.
17
+ - IMAGEMAGICK_VERSION=6.8.9-6 CONFIGURE_OPTIONS=--enable-hdri
18
+
19
+ before_install:
20
+ - source before_install_$TRAVIS_OS_NAME.sh
21
+
22
+ rvm:
23
+ - 1.9
24
+ - 2.0
25
+ - 2.1
26
+
27
+ matrix:
28
+ exclude:
29
+ # - rvm: 1.9
30
+ # env: IMAGEMAGICK_VERSION=6.7.7-10
31
+ - rvm: 1.9
32
+ env: IMAGEMAGICK_VERSION=6.7.9-10
33
+ # - rvm: 1.9
34
+ # env: IMAGEMAGICK_VERSION=6.8.9-6
35
+ - rvm: 1.9
36
+ env: IMAGEMAGICK_VERSION=6.8.9-6 CONFIGURE_OPTIONS=--enable-hdri
37
+ - rvm: 2.0
38
+ env: IMAGEMAGICK_VERSION=6.7.7-10
39
+ - rvm: 2.0
40
+ env: IMAGEMAGICK_VERSION=6.7.9-10
41
+ - rvm: 2.0
42
+ env: IMAGEMAGICK_VERSION=6.8.9-6
43
+ - rvm: 2.0
44
+ env: IMAGEMAGICK_VERSION=6.8.9-6 CONFIGURE_OPTIONS=--enable-hdri
45
+ allow_failures:
46
+ - env: IMAGEMAGICK_VERSION=6.7.7-10
47
+ - env: IMAGEMAGICK_VERSION=6.7.9-10
48
+ #- env: IMAGEMAGICK_VERSION=6.8.9-6
49
+ - env: IMAGEMAGICK_VERSION=6.8.9-6 CONFIGURE_OPTIONS=--enable-hdri
50
+
51
+ notifications:
52
+ webhooks:
53
+ urls:
54
+ - https://webhooks.gitter.im/e/a98c1112f5d60f97a532
55
+ on_success: change # options: [always|never|change] default: always
56
+ on_failure: always # options: [always|never|change] default: always
57
+ on_start: false # default: false
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,22 @@
1
+ RMagick Contributor's Guide
2
+ ===========================
3
+
4
+ Welcome
5
+ -------
6
+
7
+ Thank you for considering contributing to RMagick. Your contribution is always welcome!
8
+
9
+
10
+ Background
11
+ ----------
12
+
13
+ RMagick is a Ruby gem with a C extension. The extension wraps the ImageMagick C library. Therefore, the following document may be helpful to you:
14
+
15
+ [Running C in Ruby](http://silverhammermba.github.io/emberb/extend/)
16
+
17
+
18
+ Priorities
19
+ ----------
20
+
21
+ 9. Green build of the gem on all operating systems. You can see the current build state on [the project page at Travis CI](https://travis-ci.org/gemhome/rmagick). You are welcome to improve it.
22
+ 9. [Open issues](https://github.com/gemhome/rmagick/issues). You are welcome to reproduce them, report current state, suggest solutions, open pull requests with fixes.
data/ChangeLog CHANGED
@@ -1,3 +1,50 @@
1
+ HEAD
2
+ RMagick 2.13.4
3
+ #129 from @theschoolmaster
4
+ proof of concept for using pkg-config in place of Magick-config on debian based systems
5
+
6
+ #127 from @u338steven
7
+ Changed Image#resample to calling ResampleImage (related #29, #45)
8
+
9
+ #124 from @u338steven
10
+ Fixed #122: lib/RMagick.rb is overwritten by lib/rmagick.rb on case-insensitive systems
11
+
12
+ #123 from @prijutme4ty
13
+ New class SolidFill in order to fill image with monochromatic background
14
+
15
+ #121 from @markotom
16
+ Quotes for correct path of font file
17
+
18
+ #120 from @chulkilee
19
+ Allow MagickCore6 from Magick-config
20
+
21
+ #112 from @u338steven/
22
+ Fixed: build error with ImageMagick 6.8.9 (when deprecated functions are excluded)
23
+
24
+ #102 from @u338steven
25
+ Fixed: related x_resolution, y_resolution
26
+
27
+ from @u338steven
28
+ Lots of test fixes
29
+
30
+ #95 from @ioquatix
31
+ Fix pixel hash test
32
+
33
+ #94 from @u338steven
34
+ Fixed: build error on Windows Ruby x64 (with ImageMagick 6.8.0-10 or Ima...
35
+
36
+ #91 from @vassilevsky
37
+ Do not test machine and OS-specific integers
38
+ Fix initial memory limit test
39
+
40
+ RMagick 2.13.3
41
+ #90 from @bricef
42
+ Fix installation error on systems with HRDI enabled RMagick
43
+
44
+ RMagick 2.13.2
45
+ o Fixed issues preventing RMagick from working with version 6.8 or higher
46
+ o Fixed issues preventing RMagick from working with ruby 1.9.3
47
+
1
48
  RMagick 2.13.1
2
49
  o Fixed bug preventing RMagick from working with version 6.5.9 or higher
3
50
 
@@ -5,10 +52,10 @@ RMagick 2.13.0
5
52
  o Added Doxygen documentation, for automatic documentation
6
53
  o Fixed bug #27467, get RMagick to compile witH ImageMagick 6.5.7
7
54
  o Fixed bug #27607, switch Pixel#from_hsla and Pixel#to_hsla to use ranges
8
- 0-255 instead of 0-100 for saturation and lightness (range used by
55
+ 0-255 instead of 0-100 for saturation and lightness (range used by
9
56
  ImageMagick 6.5.6-5 and higher). Also added ability to specify all
10
57
  arguments to these functions as percentages (bug report by Arthur Chan).
11
-
58
+
12
59
 
13
60
  RMagick 2.12.2
14
61
  o Add feature tests for SinusoidFunction and PolynomialFunction enum
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in rmagick.gemspec
4
+ gemspec
5
+
6
+ # Used by README.textile
7
+ # gem "RedCloth"
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright © 2002-2013 Timothy P. Hunter
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.textile ADDED
@@ -0,0 +1,161 @@
1
+ h1. RMagick
2
+
3
+ !https://img.shields.io/gem/v/rmagick.svg?style=flat(RubyGems)!:http://rubygems.org/gems/rmagick !https://img.shields.io/gem/dt/rmagick.svg?style=flat! !https://www.versioneye.com/ruby/rmagick/reference_badge.svg?style=flat(VersionEye)!:https://www.versioneye.com/ruby/rmagick/references !https://img.shields.io/travis/gemhome/rmagick.svg?style=flat(Travis CI)!:https://travis-ci.org/gemhome/rmagick !https://img.shields.io/codeclimate/github/gemhome/rmagick.svg?style=flat(Code Climate)!:https://codeclimate.com/github/gemhome/rmagick !https://badges.gitter.im/Join%20Chat.svg(Gitter)!:https://gitter.im/gemhome/rmagick?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
4
+
5
+ This is the official fork of RMagick. The decision to create a fork "originated here":https://github.com/rmagick/rmagick/issues/18#issuecomment-50022523, where you can read more about why it happened.
6
+
7
+ h3. Table of Contents
8
+
9
+ * "Introduction":#intro
10
+ * "Prerequisites":#prereq
11
+ * "Installing RMagick":#install
12
+ * "Things that can go wrong":#wrong
13
+ * "Upgrading":#upgrade
14
+ * "More samples":#samples
15
+ * "Reporting Bugs":#bugs
16
+ * "Contact Information":#contact
17
+ * "Credits":#credits
18
+ * "License":#license
19
+ * "Releasing":#releasing
20
+
21
+ h2(#intro). Introduction
22
+
23
+ RMagick is an interface between the Ruby programming language and the
24
+ ImageMagick image processing library.
25
+
26
+ h2(#prereq). Prerequisites
27
+
28
+ *O/S* Linux, *BSD, OS X, Windows 2000, XP, Vista, other *nix-like systems.
29
+
30
+ *Ruby* Version 1.8.5 or later. You can get Ruby from "www.ruby-lang.org":http://www.ruby-lang.org.
31
+
32
+ Ruby must be able to build C-Extensions (e.g. MRI, Rubinius, not JRuby)
33
+
34
+ *ImageMagick* Version 6.4.9 or later. You can get ImageMagick from "www.imagemagick.org":http://www.imagemagick.org.
35
+
36
+ h2(#install). Installing RMagick
37
+
38
+ h4. Installing via Bundler
39
+
40
+ Add to your `Gemfile`:
41
+
42
+ bc. gem 'rmagick'
43
+
44
+ Then run:
45
+
46
+ bc. bundle install
47
+
48
+ h4. Installing via RubyGems
49
+
50
+ Run:
51
+
52
+ bc. gem install rmagick
53
+
54
+ Require RMagick in your project as follows:
55
+
56
+ bc. require 'rmagick'
57
+
58
+ h2(#wrong). Things that can go wrong
59
+
60
+ The "RMagick installation FAQ":https://web.archive.org/web/20140512193354/http://rmagick.rubyforge.org/install-faq.html
61
+ has answers to the most commonly reported problems, though may be out of date.
62
+
63
+ h4. Can't install RMagick. Can't find libMagick or one of the dependent libraries. Check the mkmf.log file for more detailed information.
64
+
65
+ Typically this message means that one or more of the libraries that ImageMagick
66
+ depends on hasn't been installed. Examine the mkmf.log file in the ext/RMagick
67
+ subdirectory of the installation directory for any error messages. These messages
68
+ typically contain enough additional information for you to be able to diagnose
69
+ the problem. Also see "this FAQ":https://web.archive.org/web/20140512193354/http://rmagick.rubyforge.org/install-faq.html#libmagick.
70
+
71
+ h4. Cannot open shared object file
72
+
73
+ If you get a message like this:
74
+
75
+ <pre>
76
+ $DIR/RMagick.rb:11:in `require': libMagick.so.0:
77
+ cannot open shared object file: No such file or directory -
78
+ $DIR/RMagick2.so (LoadError)
79
+ </pre>
80
+
81
+ you probably do not have the directory in which the ImageMagick library
82
+ is installed in your load path. An easy way to fix this is to define
83
+ the directory in the LD_LIBRARY_PATH environment variable. For
84
+ example, suppose you installed the ImageMagick library libMagick.so in
85
+ /usr/local/lib. (By default this is where it is installed.) Create the
86
+ LD_LIBRARY_PATH variable like this:
87
+
88
+ <pre>
89
+ export LD_LIBRARY_PATH=/usr/local/lib
90
+ </pre>
91
+
92
+ On Linux, see @ld(1)@ and @ld.so(8)@ for more information. On other operating
93
+ systems, see the documentation for the dynamic loading facility.
94
+
95
+
96
+ h2(#upgrade). Upgrading
97
+
98
+ If you upgrade to a newer release of ImageMagick, make sure you're using a
99
+ release of RMagick that supports that release. It's safe to install a new
100
+ release of RMagick over an earlier release.
101
+
102
+ h2(#samples). More samples
103
+
104
+ You can find more sample RMagick programs in the /example directory.
105
+ These programs are not installed in the RMagick documentation tree.
106
+
107
+ h2(#bugs). Reporting bugs
108
+
109
+ Please report bugs in RMagick, its documentation, or its installation
110
+ programs to me via the bug tracker on the "RMagick issues page":https://github.com/gemhome
111
+
112
+ However, I can't help with Ruby installation and configuration or ImageMagick
113
+ installation and configuration. Information about reporting problems and
114
+ getting help for ImageMagick is available at the "ImageMagick web site":http://www.imagemagick.org
115
+ or the "ImageMagick Forum":http://www.imagemagick.org/discourse-server.
116
+
117
+ h2(#contact). Contact Information
118
+
119
+ *Author:* Tim Hunter, Omer Bar-or, Benjamin Thomas
120
+
121
+ h2(#credits). Credits
122
+
123
+ Thanks to "ImageMagick Studio LLC":http://www.imagemagick.org for ImageMagick
124
+ and for hosting the RMagick documentation.
125
+
126
+ h2(#license). MIT License
127
+
128
+ <pre>
129
+ Copyright &copy; 2002-2009 by Timothy P. Hunter
130
+
131
+ Changes since Nov. 2009 copyright &copy; by Benjamin Thomas and Omer Bar-or
132
+
133
+ Permission is hereby granted, free of charge, to any person obtaining a
134
+ copy of this software and associated documentation files (the "Software"),
135
+ to deal in the Software without restriction, including without limitation
136
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
137
+ and/or sell copies of the Software, and to permit persons to whom the
138
+ Software is furnished to do so, subject to the following conditions:
139
+
140
+ The above copyright notice and this permission notice shall be included in
141
+ all copies or substantial portions of the Software.
142
+
143
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
144
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
145
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
146
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
147
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
148
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
149
+ DEALINGS IN THE SOFTWARE.
150
+ </pre>
151
+
152
+ <hr>
153
+
154
+ h2(#releasing). Releasing
155
+
156
+ See https://github.com/rmagick/rmagick/wiki/Release-Process
157
+
158
+ # Update ChangeLog
159
+ # Edit lib/rmagick/version.rb
160
+ # Are the tests passing? Run `rake` again just to be sure.
161
+ # `rake release`
data/Rakefile ADDED
@@ -0,0 +1,176 @@
1
+ require './lib/rmagick/version'
2
+ require 'fileutils'
3
+ task :config do
4
+ def version
5
+ Magick::VERSION
6
+ end
7
+ # e.g. 2.13.3 becomes RMagick_2-13-3
8
+ def version_tag
9
+ "RMagick_#{version.gsub(".","-")}"
10
+ end
11
+ # e.g. 2.13.3 becomes rmagick-2.13.3.gem
12
+ def gem_name
13
+ "rmagick-#{version}.gem"
14
+ end
15
+ def base
16
+ File.expand_path('..', __FILE__)
17
+ end
18
+ end
19
+
20
+ desc "abort when repo nto clean or has uncommited code"
21
+ task :assert_clean_repo do
22
+ sh("git diff --exit-code")
23
+ abort "Git repo not clean" unless $?.success?
24
+ sh("git diff-index --quiet --cached HEAD")
25
+ abort "Git repo not commited" unless $?.success?
26
+ end
27
+
28
+ desc "build gem"
29
+ task :build => [:config] do
30
+ sh "gem build -V rmagick.gemspec"
31
+ if $?.success?
32
+ FileUtils.mkdir_p(File.join(base, 'pkg'))
33
+ FileUtils.mv(File.join(base, gem_name), 'pkg')
34
+ else
35
+ STDERR.puts "Could not build gem"
36
+ exit $?.exitstatus
37
+ end
38
+ end
39
+
40
+ task :push_and_tag => [:build] do
41
+ sh "gem push #{File.join(base, 'pkg', gem_name)}"
42
+ if $?.success?
43
+ sh "git tag -a -m \"Version #{version}\" #{version_tag}"
44
+ STDOUT.puts "Tagged #{version_tag}."
45
+ sh "git push"
46
+ sh "git push --tags"
47
+ else
48
+ abort "tagging aborted pushing gem failed"
49
+ end
50
+ end
51
+
52
+ desc "Release"
53
+ task :release => [:assert_clean_repo, :push_and_tag]
54
+
55
+ desc "Release and build the legacy way"
56
+ task :legacy_release=> ["legacy:README.html", "legacy:extconf", "legacy:doc", "legacy:manifest", "release"]
57
+
58
+ namespace :legacy do
59
+ require 'find'
60
+
61
+ task :redcloth do
62
+ require 'redcloth'
63
+ end
64
+
65
+ README = "README.html"
66
+ MANIFEST = "ext/RMagick/MANIFEST"
67
+
68
+ # Change the version number placeholders in a file.
69
+ # Returns an array of lines from the file.
70
+ def reversion(name)
71
+ now = Time.new
72
+ now = now.strftime("%m/%d/%y")
73
+
74
+ lines = File.readlines name
75
+ lines.each do |line|
76
+ line.gsub!(%r{0\.0\.0}, Magick::VERSION)
77
+ line.gsub!(%r{YY/MM/DD}, now)
78
+ end
79
+ lines
80
+ end
81
+
82
+ # Rewrite a file containing embedded version number placeholders.
83
+ def reversion_file(name)
84
+ lines = reversion(name)
85
+ tmp_name = name + "_tmp"
86
+ mv name, tmp_name
87
+ begin
88
+ File.open(name, "w") { |f| lines.each { |line| f.write line } }
89
+ rescue
90
+ mv tmp_name, name
91
+ ensure
92
+ rm tmp_name
93
+ end
94
+ end
95
+
96
+ desc "Update version in extconf"
97
+ task :extconf do
98
+ reversion_file "ext/RMagick/extconf.rb"
99
+ end
100
+
101
+ desc "Build README.txt from README.textile using RedCloth"
102
+ task "README.txt" => [:redcloth] do
103
+ reversion_file "README.textile"
104
+ body = File.readlines "README.textile"
105
+ body = RedCloth.new(body.join).to_html + "\n"
106
+ File.open("README.txt", "w") { |f| f.write body }
107
+ end
108
+
109
+ desc "Build README.html from README.txt"
110
+ task README => "README.txt" do
111
+ puts "writing #{README}"
112
+ File.open(README, "w") do |html|
113
+ html.write <<END_HTML_HEAD
114
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
115
+ <html>
116
+ <head>
117
+ <title>RMagick #{Magick::VERSION} README</title>
118
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
119
+ <meta name="GENERATOR" content="RedCloth">
120
+ </head>
121
+ <body>
122
+ END_HTML_HEAD
123
+ html.write File.readlines("README.txt")
124
+ html.write <<END_HTML_TAIL
125
+ </body>
126
+ </html>
127
+ END_HTML_TAIL
128
+ end
129
+ end
130
+
131
+ desc "Update versions in html files"
132
+ task :doc do
133
+ Dir.chdir("doc") do
134
+ FileList["*.html"].each { |d| reversion_file(d) }
135
+ end
136
+ end
137
+
138
+ # Remove files we don't want in the tarball.
139
+ # Ensure files are not executable. (ref: bug #10080)
140
+ desc "Remove files we don't want in the .gem; ensure files are not executable"
141
+ task :fix_files do
142
+ rm "README.txt", :verbose => true
143
+ chmod 0644, FileList["doc/*.html", "doc/ex/*.rb", "doc/ex/images/*", "examples/*.rb"]
144
+ end
145
+
146
+ desc "Build manifest"
147
+ task :manifest do
148
+ now = Time.new
149
+ now = now.strftime("%H:%M:%S %m/%d/%y")
150
+ puts "generating #{MANIFEST}"
151
+
152
+ File.open(MANIFEST, "w") do |f|
153
+ f.puts "MANIFEST for #{Magick::VERSION} - #{now}\n\n"
154
+ Find.find('.') do |name|
155
+ next if File.directory? name
156
+ f.puts name[2..-1] # remove leading "./"
157
+ end
158
+ end
159
+ end
160
+
161
+ end
162
+
163
+ require 'rake/extensiontask'
164
+ require 'rake/testtask'
165
+
166
+ Rake::ExtensionTask.new('RMagick2') do |ext|
167
+ ext.ext_dir = 'ext/RMagick'
168
+ end
169
+
170
+ Rake::TestTask.new(:test) do |t|
171
+ t.libs << 'test'
172
+ end
173
+
174
+ task :test => :compile
175
+
176
+ task :default => :test
@@ -0,0 +1,12 @@
1
+ dpkg --list imagemagick
2
+ sudo apt-get update
3
+ sudo apt-get remove imagemagick
4
+ sudo apt-get install build-essential libx11-dev libxext-dev zlib1g-dev libpng12-dev libjpeg-dev libfreetype6-dev libxml2-dev
5
+ sudo apt-get build-dep imagemagick
6
+ wget http://www.imagemagick.org/download/releases/ImageMagick-${IMAGEMAGICK_VERSION}.tar.gz
7
+ tar -xzvf ImageMagick-${IMAGEMAGICK_VERSION}.tar.gz
8
+ cd ImageMagick-${IMAGEMAGICK_VERSION}
9
+ ./configure --prefix=/usr $CONFIGURE_OPTIONS
10
+ sudo make install
11
+ cd ..
12
+ sudo ldconfig
@@ -0,0 +1,2 @@
1
+ brew update
2
+ brew install imagemagick
data/doc/.cvsignore ADDED
@@ -0,0 +1 @@
1
+ c
data/doc/comtasks.html CHANGED
@@ -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.13.1: Common Tasks</title>
9
+ <title>RMagick 0.0.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.13.1 User's Guide and Reference</h6>
34
+ <h6 id="header">RMagick 0.0.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=
data/doc/constants.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.13.1: Constants</title>
9
+ <title>RMagick 0.0.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.13.1 User's Guide and Reference</h6>
64
+ <h6 id="header">RMagick 0.0.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=
data/doc/draw.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content=
7
7
  "HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />
8
8
 
9
- <title>RMagick 2.13.1: class Draw</title>
9
+ <title>RMagick 0.0.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.13.1 User's Guide and Reference</h6>
28
+ <h6 id="header">RMagick 0.0.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=
File without changes
data/doc/ex/ViewBox.rb CHANGED
File without changes
File without changes
data/doc/ex/add_noise.rb CHANGED
File without changes
data/doc/ex/affine.rb CHANGED
File without changes
File without changes
data/doc/ex/arc.rb CHANGED
File without changes
data/doc/ex/arcpath.rb CHANGED
File without changes
data/doc/ex/average.rb CHANGED
File without changes
data/doc/ex/axes.rb CHANGED
File without changes
File without changes
data/doc/ex/blur_image.rb CHANGED
File without changes
data/doc/ex/border.rb CHANGED
File without changes
File without changes
data/doc/ex/cbezier1.rb CHANGED
File without changes
data/doc/ex/cbezier2.rb CHANGED
File without changes
data/doc/ex/cbezier3.rb CHANGED
File without changes
data/doc/ex/cbezier4.rb CHANGED
File without changes
data/doc/ex/cbezier5.rb CHANGED
File without changes
data/doc/ex/cbezier6.rb CHANGED
File without changes
data/doc/ex/channel.rb CHANGED
File without changes
data/doc/ex/charcoal.rb CHANGED
File without changes
data/doc/ex/chop.rb CHANGED
File without changes