Skip to content

[feat]: 마이페이지 정보 요청시 리사이징된 이미지 URL을 전송 - #87

Open
tributetothemoon wants to merge 2 commits into
developfrom
feature/mypage
Open

[feat]: 마이페이지 정보 요청시 리사이징된 이미지 URL을 전송#87
tributetothemoon wants to merge 2 commits into
developfrom
feature/mypage

Conversation

@tributetothemoon

@tributetothemoon tributetothemoon commented Jan 14, 2021

Copy link
Copy Markdown
Contributor

작업사항 및 변경로직

  • AWS Lambda Serverless 서비스를 이용하여, 업로드된 이미지를 리사이징하여 추가로 저장하게 되었습니다.
  • 그리고 필요에 따라 원본을 보낼지 리사이징한 것을 보낼지 결정합니다.
  • 마이페이지 뷰는 작은 이미지로 충분하여, 가장 작게 리사이징된 이미지를 보냅니다.
  • 다음의 코드를 통해 url의 일부를 수정하여 보냅니다.
for (const { dataValues } of getMyPage) { // send resized image URL
        dataValues.timeStampImageUrl = dataValues.timeStampImageUrl.replace('/images/origin', '/images/w_200');
      }

사용방법

희망 리뷰 완료일

2021-01-14

관계된 이슈, PR

#20 #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant