jpreg 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/jpreg +2 -2
- data/jpreg.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/bin/jpreg
CHANGED
@@ -13,7 +13,7 @@ options = {
|
|
13
13
|
}
|
14
14
|
|
15
15
|
parser = OptionParser.new do |opts|
|
16
|
-
opts.version = "0.
|
16
|
+
opts.version = "0.4"
|
17
17
|
opts.banner = "Usage: jpreg [-h] [-o /path/to/output] [-q] [-v] FILE"
|
18
18
|
|
19
19
|
opts.separator ""
|
@@ -80,7 +80,7 @@ end
|
|
80
80
|
options[:times].to_i.times do
|
81
81
|
|
82
82
|
cmd = ["convert"]
|
83
|
-
cmd << "-quality" << options[:quality].to_s
|
83
|
+
cmd << "-quality" << (options[:quality].to_i + (-5..5).to_a.shuffle.first).to_s
|
84
84
|
cmd << File.join(path, "#{modified_base_name}.tiff")
|
85
85
|
cmd << File.join(path, "#{modified_base_name}.jpg")
|
86
86
|
|
data/jpreg.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'jpreg'
|
16
|
-
s.version = '0.
|
16
|
+
s.version = '0.4'
|
17
17
|
s.date = '2013-04-16'
|
18
18
|
# s.rubyforge_project = 'jpreg'
|
19
19
|
|