corrade-nucleus-nucleons – Blame information for rev 36
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
36 | office | 1 | // montage |
2 | |||
3 | /** |
||
4 | * Montage images next to each other using the `montage` command in graphicsmagick. |
||
5 | * |
||
6 | * gm('/path/to/image.jpg') |
||
7 | * .montage('/path/to/second_image.jpg') |
||
8 | * .geometry('+100+150') |
||
9 | * .write('/path/to/montage.png', function(err) { |
||
10 | * if(!err) console.log("Written montage image."); |
||
11 | * }); |
||
12 | * |
||
13 | * @param {String} other Path to the image that contains the changes. |
||
14 | */ |
||
15 | |||
16 | module.exports = exports = function(proto) { |
||
17 | proto.montage = function(other) { |
||
18 | this.in(other); |
||
19 | |||
20 | this.subCommand("montage"); |
||
21 | |||
22 | return this; |
||
23 | } |
||
24 | } |