Hmm I can't seem to access this._options.imageMagick like in other operations. Am I missing something?

Thanks,

LH

> On Dec 3, 2013, at 3:42 PM, Jonathan Ong <notifications@github.com> wrote:
> 
> In lib/compare.js:
> 
> > @@ -18,41 +18,77 @@ var utils = require('./utils');
> >   * @param {Function} cb(err, Boolean, equality, rawOutput)
> >   */
> >  
> > -module.exports = exports = function compare (orig, compareTo, tolerance, cb) {
> > -  orig = utils.escape(orig);
> > -  compareTo = utils.escape(compareTo);
> > -
> > -  // outputting the diff image
> > -  if (typeof tolerance === 'object') {
> > -    var diffOptions = tolerance;
> > -    if (typeof diffOptions.file !== 'string') {
> > -      throw new TypeError('The path for the diff output is invalid');
> > -    }
> > -    // graphicsmagick defaults to red
> > -    var highlightColorOption = diffOptions.highlightColor
> > -      ? ' -highlight-color ' + diffOptions.highlightColor + ' '
> > -      : ' ';
> > +module.exports = exports = function (proto) {
> not sure what you mean by "namespace". gm.subClass({ imageMagick: true }).compare would have worked before, just it wouldn't have honored imageMagick: true.
> 
> —
> Reply to this email directly or view it on GitHub.