Preserving aspect ratio on release tiles.

This commit is contained in:
2020-04-27 04:00:16 +02:00
parent f684923a8a
commit 79c7847f1c
5 changed files with 147 additions and 141 deletions

View File

@@ -356,7 +356,6 @@ async function fetchSource(source, baseMedia) {
if (type === 'image') {
// generate thumbnail
/*
metaStream
.clone()
.resize({
@@ -366,7 +365,6 @@ async function fetchSource(source, baseMedia) {
.jpeg({ quality: config.media.thumbnailQuality })
.pipe(tempThumbTarget)
.on('error', error => logger.error(error));
*/
}
// pipeline destroys streams, so attach info event first
@@ -375,7 +373,7 @@ async function fetchSource(source, baseMedia) {
await pipeline(
res.originalRes,
// metaStream,
metaStream,
hashStream,
tempFileTarget,
);