[web][photos] Rename cropWithRotation to cropImage

This commit is contained in:
laurenspriem 2024-05-21 11:39:46 +05:30
parent ae5496f306
commit 56cd3a9949

View file

@ -744,10 +744,10 @@ const extractFaceCrop = (
const scaleForPadding = 1 + padding * 2;
const paddedBox = roundBox(enlargeBox(alignmentBox, scaleForPadding));
return cropWithRotation(imageBitmap, paddedBox, 256);
return cropImage(imageBitmap, paddedBox, 256);
};
const cropWithRotation = (
const cropImage = (
imageBitmap: ImageBitmap,
cropBox: Box,
maxDimension: number,