Skip to content

Commit 0f47bea

Browse files
committed
Make -colorspace argument optional
It will still default to 'RGB' but if you explicitly pass in `save..., colorspace: nil` it will leave out the `-colorspace` option and let imagemagick figure out the best colorspace on it's own. We've seen some problems with some conversions, but this fixed the issue for us.
1 parent 9f74162 commit 0f47bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grim/image_magick_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def save(pdf, index, path, options)
3636
command << "-antialias"
3737
command << "-render"
3838
command << "-quality #{quality}"
39-
command << "-colorspace #{colorspace}"
39+
command << "-colorspace #{colorspace}" unless colorspace.nil?
4040
command << "-interlace none"
4141
command << "-density #{density}"
4242
command << "#{Shellwords.shellescape(pdf.path)}[#{index}]"

0 commit comments

Comments
 (0)