Team/난감했던 이슈들
[ OpenCV ] sharp 플러그인 EXIF 정보 유실된 케이스
HEON.D
2023. 9. 8. 17:28
{ failOnError: false } 속성을 추가하면 됨
{ failOnError: false }
sharp(imageBuffer, { failOnError: false })
.rotate()
.resize({
width: dimension,
height: dimension,
fit: sharp.fit.cover,
position: sharp.strategy.entropy,
})
.jpeg({ quality: 90, mozjpeg: true })
.toBuffer()
https://github.com/lovell/sharp/issues/2780
https://exiftool.org/forum/index.php?topic=12349.0