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