@syncfusion/ej2-image-editor 25.2.3 → 25.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5889,13 +5889,14 @@ var Export = /** @__PURE__ @class */ (function () {
5889
5889
  showSpinner(parent.element);
5890
5890
  parent.element.style.opacity = '0.5';
5891
5891
  var tempCanvas = this.exportToCanvas();
5892
+ var imagetype = (type === 'jpeg') ? 'image/jpeg' : 'image/png';
5892
5893
  // eslint-disable-next-line @typescript-eslint/tslint/config
5893
5894
  tempCanvas.toBlob(function (blob) {
5894
5895
  var blobUrl = URL.createObjectURL(blob);
5895
5896
  proxy.downloadImg(blobUrl, fileName + '.' + type);
5896
5897
  hideSpinner(parent.element);
5897
5898
  parent.element.style.opacity = '1';
5898
- }, 'image/png');
5899
+ }, imagetype);
5899
5900
  };
5900
5901
  Export.prototype.exportToCanvas = function (object) {
5901
5902
  var parent = this.parent;