Permalink
Browse files

trying a different sharpen number

  • Loading branch information...
1 parent 2cd6a05 commit f9077a796d0ec9896d7c162bdcdf29c5782c926c @drpentode committed Nov 23, 2009
Showing with 11 additions and 3 deletions.
  1. +8 −0 README.rdoc
  2. +3 −3 lib/attachment_on_the_fly.rb
View
@@ -0,0 +1,8 @@
+=Attachment on the Fly
+
+==Quick Start
+
+==Usage
+
+==Contributing
+
@@ -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 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
+ `convert -colorspace RGB -geometry x#{height} -quality 100 -sharpen 1 #{original} #{newfilename} 2>&1 > /dev/null`
elsif kind == "width"
# resize_image infilename, outfilename, width
- `convert -colorspace RGB -geometry #{width} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
+ `convert -colorspace RGB -geometry #{width} -quality 100 -sharpen 1 #{original} #{newfilename} 2>&1 > /dev/null`
elsif kind == "both"
# resize_image infilename, outfilename, height, width
- `convert -colorspace RGB -geometry #{height}x#{height} -quality 100 -sharpen 2 #{original} #{newfilename} 2>&1 > /dev/null`
+ `convert -colorspace RGB -geometry #{height}x#{height} -quality 100 -sharpen 1 #{original} #{newfilename} 2>&1 > /dev/null`
end
return new_path

0 comments on commit f9077a7

Please sign in to comment.