Language/Python

OSError: cannot write mode RGBA as JPEG

개발자웅이 2023. 12. 18. 15:15

python 으로 이미지 저장 시, 발생한 에러입니다.

 

# 변경 전

imgDecodingData.save("C:/Users/Desktop/test.jpg")

# 변경 후

imgDecodingData.convert("RGB").save("C:/Users/Desktop/test.jpg")

 

반응형