attachment_on_the_fly 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/attachment_on_the_fly.gemspec +4 -3
- data/lib/attachment_on_the_fly.rb +3 -3
- data/pkg/attachment_on_the_fly-0.0.3.gem +0 -0
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{attachment_on_the_fly}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jeff Sutherland"]
|
12
|
-
s.date = %q{2009-11-
|
12
|
+
s.date = %q{2009-11-19}
|
13
13
|
s.description = %q{A Paperclip mix-in to allow auto-generation of resized images}
|
14
14
|
s.email = %q{jefferey.sutherland@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -26,7 +26,8 @@ Gem::Specification.new do |s|
|
|
26
26
|
"lib/attachment_on_the_fly.rb",
|
27
27
|
"pkg/attachment_on_the_fly-0.0.0.gem",
|
28
28
|
"pkg/attachment_on_the_fly-0.0.1.gem",
|
29
|
-
"pkg/attachment_on_the_fly-0.0.2.gem"
|
29
|
+
"pkg/attachment_on_the_fly-0.0.2.gem",
|
30
|
+
"pkg/attachment_on_the_fly-0.0.3.gem"
|
30
31
|
]
|
31
32
|
s.homepage = %q{http://github.com/drpentode/Attachment-on-the-Fly}
|
32
33
|
s.rdoc_options = ["--charset=UTF-8"]
|
@@ -80,13 +80,13 @@ Paperclip::Attachment.class_eval do
|
|
80
80
|
|
81
81
|
if kind == "height"
|
82
82
|
# resize_image infilename, outfilename , 0, height
|
83
|
-
`convert -colorspace RGB -geometry x#{height} -quality 100 #{original} #{newfilename} 2>&1 > /dev/null`
|
83
|
+
`convert -colorspace RGB -geometry x#{height} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
|
84
84
|
elsif kind == "width"
|
85
85
|
# resize_image infilename, outfilename, width
|
86
|
-
`convert -colorspace RGB -geometry #{width} -quality 100 #{original} #{newfilename} 2>&1 > /dev/null`
|
86
|
+
`convert -colorspace RGB -geometry #{width} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
|
87
87
|
elsif kind == "both"
|
88
88
|
# resize_image infilename, outfilename, height, width
|
89
|
-
`convert -colorspace RGB -geometry #{height}x#{height} -quality 100 #{original} #{newfilename} 2>&1 > /dev/null`
|
89
|
+
`convert -colorspace RGB -geometry #{height}x#{height} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
|
90
90
|
end
|
91
91
|
|
92
92
|
return new_path
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attachment_on_the_fly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Sutherland
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-11-
|
12
|
+
date: 2009-11-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- pkg/attachment_on_the_fly-0.0.0.gem
|
34
34
|
- pkg/attachment_on_the_fly-0.0.1.gem
|
35
35
|
- pkg/attachment_on_the_fly-0.0.2.gem
|
36
|
+
- pkg/attachment_on_the_fly-0.0.3.gem
|
36
37
|
has_rdoc: true
|
37
38
|
homepage: http://github.com/drpentode/Attachment-on-the-Fly
|
38
39
|
licenses: []
|