feat(expense): 영수증 이미지 업로드 시 가로 1000px 초과면 축소 + JPEG q80
- 가로 > 1000px 이미지: 비율 유지 1000px 축소 후 JPEG 품질 80 재인코딩 - EXIF 회전 보정, 알파/팔레트 → RGB 변환, 확장자 .jpg 로 통일 - 1000px 이하/비이미지/처리 실패 시 원본 그대로 저장 - 업로드를 메모리 읽기 후 처리 방식으로 변경(20MB 제한 유지) - requirements: pillow>=10.0 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -8,3 +8,4 @@ python-dotenv>=1.0
|
||||
psycopg[binary,pool]>=3.2
|
||||
python-multipart>=0.0.20
|
||||
openpyxl>=3.1
|
||||
pillow>=10.0
|
||||
|
||||
Reference in New Issue
Block a user