@innovastudio/contentbuilder 1.3.67 → 1.3.70
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/package.json
CHANGED
@@ -50046,9 +50046,11 @@ class Image$1 {
|
|
50046
50046
|
img.setAttribute('data-filename', newname + '.' + extension);
|
50047
50047
|
}
|
50048
50048
|
|
50049
|
-
if (extension === 'jpg') {
|
50049
|
+
if (extension === 'jpg' || extension === 'jpeg') {
|
50050
50050
|
img.src = this.cropper.getCroppedCanvas({
|
50051
|
-
fillColor: '#fff'
|
50051
|
+
fillColor: '#fff',
|
50052
|
+
imageSmoothingEnabled: true,
|
50053
|
+
imageSmoothingQuality: 'high'
|
50052
50054
|
}).toDataURL('image/jpeg');
|
50053
50055
|
} else {
|
50054
50056
|
img.src = this.cropper.getCroppedCanvas({}).toDataURL();
|