Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Sep 19, 2022
1 parent ed041fe commit 1ebb09c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ or clone the repo:

## Use ImageMagick instead of gm

Subclass `gm` to enable ImageMagick
Subclass `gm` to enable ImageMagick, optionally specifying the path to the executable.

```js
var fs = require('fs')
, gm = require('gm').subClass({imageMagick: true});
const fs = require('fs')
const gm = require('gm').subClass({
imageMagick: true,
appPath: String.raw`C:\Program Files\ImageMagick-7.1.0-Q16-HDRI\magick.exe`
});

// resize and remove EXIF profile data
gm('/path/to/my/img.jpg')
Expand Down

0 comments on commit 1ebb09c

Please sign in to comment.