image.isImage
Property that's true for all Text instances. Avoids reliance on the instanceof operator and enables you to query for all image types:
var imageAssets = assetGraph.findAssets({isImage: true});
|
contentType: null, // Avoid reregistering application/octet-stream
defaultEncoding: null,
getHistogram: function (cb) {
if (!histogram) {
return cb(new Error('histogram is not installed'));
}
histogram(this.rawSrc, cb);
}
});
module.exports = Image;
|