function Compressor(file, options) {
    _classCallCheck(this, Compressor);
    this.file = file;
    this.exif = [];
    this.image = new Image();
    this.options = _objectSpread2(_objectSpread2({}, DEFAULTS), options);
    this.aborted = false;
    this.result = null;
    this.init();
  }
The constructor of Compressor.
@param {File|Blob} file - The target image file for compressing.
@param {Object} [options] - The options for compressing.