본문 바로가기
TIL

[Sharp] VipsJpeg: Invalid SOS parameters for sequential JPEG

by 사탕공방 2022. 12. 10.

문제상황

리뷰 이미지가 깨지는 상황

해결

  1. 이미지 경로 추적
  2. 리사이즈 된 이미지 저장 경로에 이미지가 없음을 확인
  3. 원본 이미지 확인
  4. 로컬에서 리사이즈 테스트
    1. VipsJpeg: Invalid SOS parameters for sequential JPEG 에러 발생
  5. 구글링
  6. 해결: failOnError: false 옵션 추가
 

VipsJpeg: Invalid SOS parameters for sequential JPEG · Issue #1578 · lovell/sharp

Repro example: https://gist.github.com/asilvas/773b902b2d175d452c6472a4ed128762 This is an issue that recently came up that seems related to a recent change. At first I brushed it off as a corrupt ...

github.com

sharp(data, { failOnError: false })

리뷰 이미지 잘 표출됨

댓글