Skip to content

Commit

Permalink
Merge pull request #1366 from guardian/em-graphicsmagick
Browse files Browse the repository at this point in the history
graphicsmagick
  • Loading branch information
Emma Milner committed Oct 14, 2015
2 parents d9dc961 + 7f7db4f commit d239c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ You will need to install:
* sbt
* JDK 8
* Nginx
* [GraphicsMagick](http://www.graphicsmagick.org/) or [ImageMagick](http://www.imagemagick.org/) (we use
GraphicsMagick on the servers).
`sudo apt-get install graphics` or `brew install imagemagick`.
* [GraphicsMagick](http://www.graphicsmagick.org/)
`sudo apt-get install graphicsmagick` or `brew install graphicsmagick`.

### Nginx

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ object ImageMagick {
def thumbnail(op: IMOperation)(width: Int): IMOperation = op <| (_.thumbnail(width))
def scale(op: IMOperation)(dimensions: Dimensions): IMOperation = op <| (_.scale(dimensions.width, dimensions.height))
def format(op: IMOperation)(definition: String): IMOperation = op <| (_.format(definition))
val useGraphicsMagick = true

def runConvertCmd(op: IMOperation): Future[Unit] = Future((new ConvertCmd).run(op))
def runConvertCmd(op: IMOperation): Future[Unit] = Future((new ConvertCmd(useGraphicsMagick)).run(op))
def runIdentifyCmd(op: IMOperation): Future[List[String]] = Future {
val cmd = new IdentifyCmd()
val cmd = new IdentifyCmd(useGraphicsMagick)
val output = new ArrayListOutputConsumer()
cmd.setOutputConsumer(output)
cmd.run(op)
Expand Down

0 comments on commit d239c96

Please sign in to comment.