mirror of https://gitgud.io/fatchan/gm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
552 B
26 lines
552 B
|
|
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();
|
|
});
|
|
|
|
}
|
|
|