Permalink
Browse files

Added -quality, -strip commands. (ImageMagick defaults to JPEG qualit…

…y 92, big files.)
  • Loading branch information...
1 parent 906696e commit c91a0d4ec6b85d71ed8cddd3d634bc1061f3f545 @slowernet slowernet committed Jul 29, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/mapel.rb
View
@@ -83,6 +83,16 @@ def scale(*args)
self
end
+ def quality(level)
+ @commands << "-quality #{level}"
+ self
+ end
+
+ def strip
+ @commands << "-strip"
+ self
+ end
+
def to(path)
@commands << path
self

0 comments on commit c91a0d4

Please sign in to comment.