mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
compressedThumbnail function: fix image orientation
This commit is contained in:
@@ -84,6 +84,7 @@ export const FT_compressedThumbnail = functions.storage
|
||||
|
||||
// Resize image to thumbnail size
|
||||
const resized = await sharp(tempLocalFile)
|
||||
.rotate()
|
||||
.resize(
|
||||
parseInt(size.split("x")[0], 10),
|
||||
parseInt(size.split("x")[1], 10),
|
||||
|
||||
Reference in New Issue
Block a user