π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
1
Manav Rathi0bf3c64ceb03
diff --git a/web/packages/new/photos/services/ml/clip.ts b/web/packages/new/photos/services/ml/clip.tsindex 4c4d61456b..bcea2dca7a 100644--- a/web/packages/new/photos/services/ml/clip.ts+++ b/web/packages/new/photos/services/ml/clip.ts@@ -129,7 +129,7 @@ const convertToCLIPInput = (imageData: ImageData) => {const scale = Math.max(requiredWidth / width, requiredHeight / height);// Perform antialiasing if downscaling.- const antiAlias = scale < 0.8;+ const antialias = scale < 0.8;const scaledWidth = Math.round(width * scale);const scaledHeight = Math.round(height * scale);@@ -150,7 +150,7 @@ const convertToCLIPInput = (imageData: ImageData) => {pixelData,width,height,- antiAlias,+ antialias,);clipInput[pi] = r / 255.0;clipInput[pi + cOffsetG] = g / 255.0;diff --git a/web/packages/new/photos/services/ml/image.ts b/web/packages/new/photos/services/ml/image.tsindex 376474e407..14733b6604 100644--- a/web/packages/new/photos/services/ml/image.ts+++ b/web/packages/new/photos/services/ml/image.ts@@ -15,7 +15,7 @@ export function pixelRGBBilinear(imageData: Uint8ClampedArray,imageWidth: number,imageHeight: number,- antiAlias: boolean,+ antialias: boolean,) {// Clamp to image boundaries.fx = clamp(fx, 0, imageWidth - 1);@@ -32,7 +32,7 @@ export function pixelRGBBilinear(const dy1 = 1.0 - dy;// Get the original pixels.- const getPixelRGBA = antiAlias ? pixelRGBABlurred : pixelRGBA;+ const getPixelRGBA = antialias ? pixelRGBABlurred : pixelRGBA;const pixel1 = getPixelRGBA(imageData, imageWidth, imageHeight, x0, y0);const pixel2 = getPixelRGBA(imageData, imageWidth, imageHeight, x1, y0);const pixel3 = getPixelRGBA(imageData, imageWidth, imageHeight, x0, y1);