Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add -sharpen 2 to convert command line

  • Loading branch information...
commit 2cd6a050a6ce7f08dd42da22b44450f1c1ba1bb9 1 parent 0e181a2
@drpentode authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 attachment_on_the_fly.gemspec
  2. +3 −3 lib/attachment_on_the_fly.rb
View
4 attachment_on_the_fly.gemspec
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = %q{attachment_on_the_fly}
- s.version = "0.0.3"
+ s.version = "0.0.4"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Jeff Sutherland"]
- s.date = %q{2009-11-04}
+ s.date = %q{2009-11-19}
s.description = %q{A Paperclip mix-in to allow auto-generation of resized images}
s.email = %q{jefferey.sutherland@gmail.com}
s.extra_rdoc_files = [
View
6 lib/attachment_on_the_fly.rb
@@ -80,13 +80,13 @@ def generate_image(kind, height = 0, width = 0)
if kind == "height"
# resize_image infilename, outfilename , 0, height
- `convert -colorspace RGB -geometry x#{height} -quality 100 #{original} #{newfilename} 2>&1 > /dev/null`
+ `convert -colorspace RGB -geometry x#{height} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
elsif kind == "width"
# resize_image infilename, outfilename, width
- `convert -colorspace RGB -geometry #{width} -quality 100 #{original} #{newfilename} 2>&1 > /dev/null`
+ `convert -colorspace RGB -geometry #{width} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
elsif kind == "both"
# resize_image infilename, outfilename, height, width
- `convert -colorspace RGB -geometry #{height}x#{height} -quality 100 #{original} #{newfilename} 2>&1 > /dev/null`
+ `convert -colorspace RGB -geometry #{height}x#{height} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
end
return new_path
Please sign in to comment.
Something went wrong with that request. Please try again.