Skip to content

Commit 6cbf5e3

Browse files
committed
options and arguments are now in one line
1 parent 3103b7e commit 6cbf5e3

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

lib/grim/image_magick_processor.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,15 @@ def save(pdf, index, path, options)
2929

3030
command = []
3131
command << @imagemagick_path
32-
command << "-resize"
33-
command << width.to_s
32+
command << "-resize #{width}"
3433
command << "-alpha #{alpha}" if alpha
3534
command << "-antialias"
3635
command << "-render"
37-
command << "-quality"
38-
command << quality.to_s
39-
command << "-colorspace"
40-
command << colorspace
36+
command << "-quality #{quality}"
37+
command << "-colorspace #{colorspace}"
4138
command << "-interlace"
4239
command << "none"
43-
command << "-density"
44-
command << density.to_s
40+
command << "-density #{density}"
4541
command << "#{Shellwords.shellescape(pdf.path)}[#{index}]"
4642
command << path
4743

0 commit comments

Comments
 (0)