mirror of https://gitgud.io/fatchan/gm
parent
13ba1dc11b
commit
1b1af7455d
3 changed files with 28 additions and 2 deletions
After Width: | Height: | Size: 8.9 KiB |
@ -0,0 +1,26 @@ |
||||
|
||||
var assert = require('assert') |
||||
|
||||
module.exports = function (_, dir, finish, gm) { |
||||
if (!gm.integration) |
||||
return finish(); |
||||
|
||||
var im = _._options.imageMagick; |
||||
|
||||
var test = gm(__dirname + '/fixtures/iptc.jpg'); |
||||
if (im) test.options({ imageMagick: true }); |
||||
|
||||
test.identify(function (err) { |
||||
if (err) return finish(err); |
||||
|
||||
var d = this.data; |
||||
|
||||
if (im) { |
||||
var iptc = d['Profiles'] && d['Profiles']['Profile-iptc']; |
||||
assert.equal(iptc['Caption[2,120]'], 'Some caption with colon space: for example'); |
||||
} |
||||
|
||||
finish(); |
||||
}); |
||||
|
||||
} |
Loading…
Reference in new issue