forked from DebaucheryLibrarian/traxxx
Preserving aspect ratio on release tiles.
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user