@syncfusion/ej2-image-editor 28.1.39 → 28.1.41
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.
- package/dist/ej2-image-editor.umd.min.js +2 -2
- package/dist/ej2-image-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-image-editor.es2015.js +4 -2
- package/dist/es6/ej2-image-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-image-editor.es5.js +4 -2
- package/dist/es6/ej2-image-editor.es5.js.map +1 -1
- package/dist/global/ej2-image-editor.min.js +2 -2
- package/dist/global/ej2-image-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/image-editor/action/draw.js +4 -2
|
@@ -4962,14 +4962,16 @@ var Draw = /** @__PURE__ @class */ (function () {
|
|
|
4962
4962
|
this.openImageData(dropArea);
|
|
4963
4963
|
return;
|
|
4964
4964
|
}
|
|
4965
|
-
var fileType = this.getFileExtensionFromURL(this.openURL)
|
|
4965
|
+
var fileType = this.getFileExtensionFromURL(this.openURL);
|
|
4966
4966
|
if (fileType) {
|
|
4967
|
+
fileType = fileType.toLowerCase();
|
|
4967
4968
|
fileType = (fileType === 'jpg' || fileType === 'jpeg') ? 'jpeg' : fileType;
|
|
4968
4969
|
}
|
|
4969
4970
|
var isAllowedFileType = (fileType ? (extension.indexOf(fileType) > -1 ||
|
|
4970
4971
|
(fileType === 'jpeg' && (parent.uploadSettings.allowedExtensions.indexOf('jpg') > -1 ||
|
|
4971
4972
|
parent.uploadSettings.allowedExtensions.indexOf('jpeg') > -1))) : false) || this.isNullExtension;
|
|
4972
|
-
if (this.openURL.indexOf('data:image/') > -1 && this.openURL.indexOf('base64') > -1)
|
|
4973
|
+
if ((this.openURL.indexOf('data:image/') > -1 && this.openURL.indexOf('base64') > -1) ||
|
|
4974
|
+
this.openURL.indexOf('blob') > -1) {
|
|
4973
4975
|
this.openImageData(dropArea, true);
|
|
4974
4976
|
}
|
|
4975
4977
|
else if (parent.uploadSettings.minFileSize || parent.uploadSettings.maxFileSize) {
|