Skip to content

Commit

Permalink
added -flatten option to imageimagick to remove transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
gloubidou committed Feb 26, 2012
1 parent 10fa470 commit 2ca45c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grim/image_magick_processor.rb
Expand Up @@ -23,7 +23,7 @@ def save(pdf, index, path, options)
width = options.fetch(:width, Grim::WIDTH)
density = options.fetch(:density, Grim::DENSITY)
quality = options.fetch(:quality, Grim::QUALITY)
command = [@imagemagick_path, "-resize", width.to_s, "-antialias", "-render",
command = [@imagemagick_path, "-flatten", "-resize", width.to_s, "-antialias", "-render",
"-quality", quality.to_s, "-colorspace", "RGB",
"-interlace", "none", "-density", density.to_s,
"#{Shellwords.shellescape(pdf.path)}[#{index}]", path]
Expand Down

0 comments on commit 2ca45c8

Please sign in to comment.