mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
@@ -115,7 +115,7 @@ image.stripEXIF = async function (path) {
|
|||||||
}
|
}
|
||||||
const buffer = await fs.promises.readFile(path);
|
const buffer = await fs.promises.readFile(path);
|
||||||
const sharp = requireSharp();
|
const sharp = requireSharp();
|
||||||
await sharp(buffer, { failOnError: true }).rotate().toFile(path);
|
await sharp(buffer, { failOnError: true, pages: -1 }).rotate().toFile(path);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
winston.error(err.stack);
|
winston.error(err.stack);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user