Skip to content

Commit 135d6f7

Browse files
committed
Merge branch 'master' into optional-colorspace
2 parents 0f47bea + edcdb51 commit 135d6f7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ Grim is a simple gem for extracting (reaping) a page from a pdf and converting i
2323

2424
## Prerequisites
2525

26-
You will need ghostscript, imagemagick, and poppler installed. On the Mac (OSX) I highly recommend using [Homebrew](http://mxcl.github.com/homebrew/) to get them installed.
26+
You will need ghostscript, imagemagick, and xpdf installed. On the Mac (OSX) I highly recommend using [Homebrew](http://mxcl.github.com/homebrew/) to get them installed.
2727

2828
```bash
29-
$ brew install ghostscript imagemagick poppler
29+
$ brew install ghostscript imagemagick xpdf
3030
```
3131

3232
## Installation

spec/lib/grim/image_magick_processor_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,28 +104,28 @@
104104

105105
it "should use colorspace" do
106106
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path1, {:colorspace => 'RGB'})
107-
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path2, {:colorspace => 'sRGB'})
107+
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path2, {:colorspace => 'CMYK'})
108108

109109
file1_size = File.stat(@path1).size
110110
file2_size = File.stat(@path2).size
111111

112112
expect(file1_size).to_not eq(file2_size)
113113
end
114114
end
115-
115+
116116
describe "#save with alpha option" do
117117
before(:each) do
118118
@path1 = tmp_path("to_png_spec-1.png")
119119
@path2 = tmp_path("to_png_spec-2.png")
120120
@pdf = Grim::Pdf.new(fixture_path("remove_alpha.pdf"))
121121
end
122-
122+
123123
it "should use alpha" do
124124
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path1, {:alpha => 'Set'})
125125
Grim::ImageMagickProcessor.new.save(@pdf, 0, @path2, {:alpha => 'Remove'})
126126

127-
expect(`convert #{@path1} -verbose info:`.include?("alpha: 8-bit")).to be(true)
128-
expect(`convert #{@path2} -verbose info:`.include?("alpha: 1-bit")).to be(true)
127+
expect(`convert #{@path1} -verbose info:`.downcase.include?("alpha: 8-bit")).to be(true)
128+
expect(`convert #{@path2} -verbose info:`.downcase.include?("alpha")).to be(false)
129129
end
130130
end
131131
end

0 commit comments

Comments
 (0)