Repository navigation
feat(media): 목록용 축소본 생성 - #124
Merged
Merged
Conversation
휴대폰 사진은 장당 수백 KB~수 MB 라, 스무 건을 한 번에 부르는 커뮤니티 목록이 원본을 쓰면 첫 화면에서만 10MB 가까이 내려받는다. 목록에 그려지는 크기는 한 변 200px 안팎이라 그만한 화질이 필요 없다. 업로드가 긴 변 480px JPEG 사본을 원본 옆에 올리고, 게시물이 그 주소를 저장한다. 사본이 없는 사진은 원본으로 돌아간다. 저장소 정리와 게시물 완전 삭제가 사본까지 함께 다루도록 질의를 넓혔다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
main 에 들어온 '게시물 수정으로 빠진 사진 파일 정리'(#123)와 겹친다. 그쪽은 요청의 원본 주소에 없는 딸린 파일을 지우는데, 축소본이 생기면서 딸린 파일 주소에 축소본이 함께 들어온다. 그대로 두는 사진의 축소본까지 지워져 목록 사진이 깨지므로, 남길 목록에 요청의 thumbnailUrl 도 넣는다. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
🤖 Gemini PR Review분석 결과 실제 버그 및 런타임 오류 가능성이 있는 부분이 발견되어 아래와 같이 리뷰를 작성합니다. 1. [HIGH] JPQL 내
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
커뮤니티 목록이 원본 사진을 그대로 받던 것을 고쳤음.
왜
thumbnailUrl이 첫 사진의 원본 주소였음. 실제 사진이 장당 0.7MB변경 사항
ThumbnailGenerator추가. 긴 변 480px JPEG, JDK 내장 ImageIO 만 사용(새 의존성 없음)..._thumb.jpg로 사본을 올리고 응답에thumbnailUrl추가post_media.thumbnail_url추가 (V22). 게시물 작성·수정이 업로드 응답 값을 그대로 저장mediaList[]에도thumbnailUrl추가검증
남은 것
feat/media-thumbnail브랜치. 서버 먼저 머지🤖 Generated with Claude Code