'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.loadImage = loadImage;

var _utils = require('../../utils');

function loadImage(url) {
  var getPixels = module.require('get-pixels');
  if (!getPixels) {
    throw new Error('loadImage: get-pixels not installed');
  }

  return (0, _utils.promisify)(getPixels)(url);
}
//# sourceMappingURL=node-load-image.js.map