filtr 0.0.2 → 0.0.3
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.
- data/lib/filtr/image.rb +10 -0
- data/lib/filtr/version.rb +1 -1
- metadata +3 -3
data/lib/filtr/image.rb
CHANGED
|
@@ -69,6 +69,16 @@ module Filtr
|
|
|
69
69
|
return image
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
def blues(file_path)
|
|
73
|
+
image = self.new(file_path)
|
|
74
|
+
`cp #{image.file_path} #{image.path}`
|
|
75
|
+
`convert -resize 800x600\\> -unsharp 1.5x1.5 -modulate 125,50 -contrast -contrast -contrast #{image.path} #{image.path}`
|
|
76
|
+
`convert #{image.path} -fill blue -colorize 10% #{image.path}`
|
|
77
|
+
return image
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
end
|
|
81
|
+
|
|
72
82
|
end
|
|
73
83
|
end
|
|
74
84
|
end
|
data/lib/filtr/version.rb
CHANGED
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 3
|
|
9
|
+
version: 0.0.3
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Burin Asavesna
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-11-
|
|
17
|
+
date: 2010-11-18 00:00:00 -06:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|