Set image-minimizer to specify image width ...

Fix https://github.com/TeamNewPipe/NewPipe/issues/9469
for portrait like orientations
pull/9470/head
yashpalgoyal1304 2022-11-26 23:29:11 +05:30 zatwierdzone przez GitHub
rodzic aad5e26f31
commit 44bc6bf069
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -86,7 +86,7 @@ module.exports = async ({github, context}) => {
if (shouldModify) {
wasMatchModified = true;
console.log(`Modifying match '${match}'`);
return `<img alt="${g1}" src="${g2}" height=${IMG_MAX_HEIGHT_PX} />`;
return `<img alt="${g1}" src="${g2}" width=${IMG_MAX_WIDTH_PX} />`;
}
console.log(`Match '${match}' is ok/will not be modified`);