Skip to content

Commit

Permalink
Added -quality, -strip commands. (ImageMagick defaults to JPEG qualit…
Browse files Browse the repository at this point in the history
…y 92, big files.)
  • Loading branch information
slowernet committed Jul 29, 2011
1 parent 906696e commit c91a0d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/mapel.rb
Expand Up @@ -83,6 +83,16 @@ def scale(*args)
self self
end end


def quality(level)
@commands << "-quality #{level}"
self
end

def strip
@commands << "-strip"
self
end

def to(path) def to(path)
@commands << path @commands << path
self self
Expand Down

0 comments on commit c91a0d4

Please sign in to comment.