Update image minimizer

This commit is contained in:
Naveen Singh
2024-11-17 22:42:38 +05:30
parent 193b32a77f
commit 1b1867bb4e

View File

@@ -139,7 +139,6 @@ module.exports = async ({github, context}) => {
if (shouldModify) {
wasMatchModified = true;
console.log(`Modifying match '${match}'`);
var newBody
return `<img alt="${g1}" src="${g2}" width=${Math.min(600, Math.floor(IMG_MAX_HEIGHT_PX * probeAspectRatio))} />`;
}