{ 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