rmagick 1.9.0 → 1.9.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.

@@ -1,7 +1,7 @@
1
1
  require 'date'
2
2
  Gem::Specification.new do |s|
3
3
  s.name = %q{rmagick}
4
- s.version = "1.9.0"
4
+ s.version = "1.9.1"
5
5
  s.date = Date.today.to_s
6
6
  s.summary = %q{RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.}
7
7
  s.description =<<DESCRIPTION
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.3
3
3
  specification_version: 1
4
4
  name: rmagick
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.9.0
7
- date: 2005-07-15
6
+ version: 1.9.1
7
+ date: 2005-09-07
8
8
  summary: RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.
9
9
  require_paths:
10
10
  - lib
@@ -113,7 +113,6 @@ files:
113
113
  - doc/ex/cbezier5.rb
114
114
  - doc/ex/cbezier6.rb
115
115
  - doc/ex/channel.rb
116
- - doc/ex/channel_threshold.rb
117
116
  - doc/ex/charcoal.rb
118
117
  - doc/ex/chop.rb
119
118
  - doc/ex/circle.rb
@@ -198,7 +197,6 @@ files:
198
197
  - doc/ex/quantize-m.rb
199
198
  - doc/ex/radial_blur.rb
200
199
  - doc/ex/raise.rb
201
- - doc/ex/random_channel_threshold.rb
202
200
  - doc/ex/random_threshold_channel.rb
203
201
  - doc/ex/rect01.rb
204
202
  - doc/ex/rect02.rb
@@ -347,6 +345,7 @@ files:
347
345
  - ext/RMagick/rmutil.c
348
346
  - examples/describe.rb
349
347
  - examples/histogram.rb
348
+ - examples/identify.rb
350
349
  - examples/image_opacity.rb
351
350
  - examples/import_export.rb
352
351
  - examples/pattern_fill.rb
@@ -1,48 +0,0 @@
1
- #! /usr/local/bin/ruby -w
2
- require 'RMagick'
3
-
4
- # Demonstrate the Image#channel_threshold method
5
-
6
- img = Magick::Image.read('images/Flower_Hat.jpg').first
7
-
8
- # Make the "before" image
9
- imgs = Magick::ImageList.new
10
- imgs << img.copy
11
- imgs.cur_image['Label'] = "\n\n"
12
- imgs << img.copy
13
- imgs.cur_image['Label'] = "\n\n\n"
14
-
15
- montage = imgs.montage {
16
- self.background_color = "white"
17
- self.geometry = "#{img.columns}x#{img.rows}+10+10"
18
- self.tile = "2x1"
19
- }
20
- montage.border!(1,1,"black")
21
- montage.write("channel_threshold_before.jpg")
22
-
23
- # Now the "after" image.
24
- # Channel threshold values should be a %-age of MaxRGB
25
- # Let the opacity threshold default to MaxRGB.
26
- img2 = img.channel_threshold(Magick::MaxRGB*0.75,
27
- Magick::MaxRGB*0.50)
28
- img2['Label'] = "channel_threshold(\nMagick::MaxRGB*0.75,\nMagick::MaxRGB*0.50)"
29
-
30
- img3 = img.channel_threshold(Magick::MaxRGB*0.50,
31
- Magick::MaxRGB*0.25,
32
- Magick::MaxRGB*0.25)
33
- img3['Label'] = 'channel_threshold(\nMagick::MaxRGB*0.50,\nMagick::MaxRGB*0.25,\nMagick::MaxRGB*0.25)'
34
-
35
- # Montage the two sample images
36
- imgs = Magick::ImageList.new
37
- imgs << img2 << img3
38
-
39
- montage = imgs.montage {
40
- self.background_color = "white"
41
- self.geometry = "#{img.columns}x#{img.rows}+10+10"
42
- self.tile = "2x1"
43
- }
44
-
45
- # Give the montage a black border
46
- montage.border!(1,1,'black')
47
- montage.write('channel_threshold_after.jpg')
48
- exit
@@ -1,17 +0,0 @@
1
- #!/home/software/ruby-1.6.8/bin/ruby -w
2
-
3
- # Demonstrate the random_channel_threshold method
4
-
5
- require 'RMagick'
6
- include Magick
7
-
8
- img = Image.read('images/Flower_Hat.jpg').first
9
-
10
- begin
11
- img2 = img.random_channel_threshold('intensity', '35%')
12
- rescue NotImplementedError
13
- img2 = Image.read('images/notimplemented.gif').first
14
- end
15
-
16
- img2.write('random_channel_threshold.jpg')
17
- exit