@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.
@@ -5879,13 +5879,14 @@ class Export {
5879
5879
  showSpinner(parent.element);
5880
5880
  parent.element.style.opacity = '0.5';
5881
5881
  const tempCanvas = this.exportToCanvas();
5882
+ const imagetype = (type === 'jpeg') ? 'image/jpeg' : 'image/png';
5882
5883
  // eslint-disable-next-line @typescript-eslint/tslint/config
5883
5884
  tempCanvas.toBlob(function (blob) {
5884
5885
  const blobUrl = URL.createObjectURL(blob);
5885
5886
  proxy.downloadImg(blobUrl, fileName + '.' + type);
5886
5887
  hideSpinner(parent.element);
5887
5888
  parent.element.style.opacity = '1';
5888
- }, 'image/png');
5889
+ }, imagetype);
5889
5890
  }
5890
5891
  exportToCanvas(object) {
5891
5892
  const parent = this.parent;