Node.js based forum software built for the modern web
fix: extract all pages when stripping metadata
Opliko0b3eb6c02d96
diff --git a/src/image.js b/src/image.jsindex 2374693aa0..62f84d365e 100644--- a/src/image.js+++ b/src/image.js@@ -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);}