mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-22 14:38:11 +02:00
fix: auto-rotate images based on EXIF data
This commit is contained in:
1 parent
55c2bfdeb7
commit
6c299b954a
1 file changed
+1
-1
+1
-1
@@ -570,7 +570,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
|||||||
|
|
||||||
// Load with Sharp to process
|
// Load with Sharp to process
|
||||||
const sharp = (await import("sharp")).default;
|
const sharp = (await import("sharp")).default;
|
||||||
let image = sharp(imageBuffer);
|
let image = sharp(imageBuffer).rotate();
|
||||||
|
|
||||||
// Get image metadata for dimensions
|
// Get image metadata for dimensions
|
||||||
const metadata = await image.metadata();
|
const metadata = await image.metadata();
|
||||||
|
|||||||
Reference in new issue
Block a user