code: function() {
              if (this._autocrop && this._applyAutocrop) {
                  if (!this.toggleLoadingImage()) {
                      this.toggleLoadingImage(true)
                  }
  
                  if (this._image.autocrop()) {
                      this.redraw();
                  }
              }
  
              if (this._waitForWorkers == 0) {
                  this.toggleLoadingImage(false);
              }
          }
docs: Auto crop images