[ Node.js ] Sharp image rotate 메타데이터 유실
.withMetadata() S3.getObject({Bucket: BUCKET, Key: originalKey}).promise() .then(data => Sharp(data.Body) .resize(width, height) .withMetadata() // add this line here .toBuffer() ) https://velog.io/@nawnoes/AWS-lambda-nodejs-sharp-%EC%9D%B4%EB%AF%B8%EC%A7%80-%EB%A6%AC%EC%82%AC%EC%9D%B4%EC%A6%88-%EC%8B%9C-%EC%82%AC%EC%A7%84-%ED%9A%8C%EC%A0%84%ED%95%98%EB%8A%94-%ED%98%84%EC%83%81 AWS lambda, nodej..