code: function () {
                  return __awaiter(this, void 0, void 0, function () {
                      var _this = this;
                      return __generator(this, function (_a) {
                          switch (_a.label) {
                              case 0: return [4 /*yield*/, this.applyFilter(false)];
                              case 1:
                                  _a.sent();
                                  if (this.options.maxImageDimensions) {
                                      this.resize(this.editedImage)
                                          .then(function (resizeResult) {
                                          resizeResult.toBlob(function (blob) {
                                              _this.editResult.emit(blob);
                                              _this.processing.emit(false);
                                          }, _this.originalImage.type);
                                      });
                                  }
                                  else {
                                      this.editedImage.toBlob(function (blob) {
                                          _this.editResult.emit(blob);
                                          _this.processing.emit(false);
                                      }, this.originalImage.type);
                                  }
                                  return [2 /*return*/];
                          }
                      });
                  });
              }
docs: applies the selected filter, and when done emits the resulted image
  @private
  @return {?}