Rotate JPG image on upload #4206 (#4223)

This commit is contained in:
Pyll Gomez
2021-02-22 12:36:03 -05:00
committed by GitHub
parent 7dee95e8aa
commit 87ec42c1bc

View File

@@ -52,6 +52,7 @@ export class FilesService extends ItemsService {
const pipeline = sharp();
pipeline
.rotate()
.metadata()
.then((meta) => {
payload.width = meta.width;