A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix image size is too large
ammarahm-ed597c320e78e4
diff --git a/apps/mobile/android/app/src/main/assets/constants.js b/apps/mobile/android/app/src/main/assets/constants.jsindex b906f7396..62f7be80c 100644--- a/apps/mobile/android/app/src/main/assets/constants.js+++ b/apps/mobile/android/app/src/main/assets/constants.js@@ -148,6 +148,7 @@ var minifyImg = function (new Promise(function (resolve) {image = new Image();image.src = dataUrl;+resolve('Done : ');}).then((d) => {oldWidth = image.width;@@ -158,7 +159,7 @@ var minifyImg = function (canvas.height = newHeight;ctx = canvas.getContext('2d');ctx.drawImage(image, 0, 0, newWidth, newHeight);- newDataUrl = canvas.toDataURL(undefined, imageArguments);+ newDataUrl = canvas.toDataURL(imageType, imageArguments);resolve(newDataUrl);});};diff --git a/apps/mobile/html/Web.bundle/site/constants.js b/apps/mobile/html/Web.bundle/site/constants.jsindex b906f7396..344210924 100644--- a/apps/mobile/html/Web.bundle/site/constants.js+++ b/apps/mobile/html/Web.bundle/site/constants.js@@ -158,7 +158,7 @@ var minifyImg = function (canvas.height = newHeight;ctx = canvas.getContext('2d');ctx.drawImage(image, 0, 0, newWidth, newHeight);- newDataUrl = canvas.toDataURL(undefined, imageArguments);+ newDataUrl = canvas.toDataURL(imageType, imageArguments);resolve(newDataUrl);});};