1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-01-26 05:27:35 +02:00

Use webp for thumbnails

This commit is contained in:
sam365724 2022-11-20 14:01:29 +01:00 committed by GitHub
parent 88e29ac263
commit 3b6f8d7db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ export class PhotoProcessing {
return path.join(
ProjectPath.TranscodedFolder,
ProjectPath.getRelativePathToImages(path.dirname(mediaPath)),
file + '_' + size + '.jpg'
file + '_' + size + '.webp'
);
}
@ -146,7 +146,7 @@ export class PhotoProcessing {
.digest('hex') +
'_' +
size +
'.jpg'
'.webp'
);
}