Skip to content

Commit

Permalink
[Fix] 이미지가 등록되지 않던 문제를 해결했습니다.
Browse files Browse the repository at this point in the history
  • Loading branch information
NARUBROWN committed Jan 17, 2024
1 parent b049aff commit 48151b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public String getLocation(HttpServletRequest request, Image image) {
}

public Image returnMultipartToEntity(MultipartFile multipartFile) throws IOException {
return new Image(multipartFile.getOriginalFilename(), multipartFile.getBytes(), multipartFile.getSize());
return new Image(multipartFile.getOriginalFilename(), ImageUtils.compressImage(multipartFile.getBytes()), multipartFile.getSize());
}


Expand Down

0 comments on commit 48151b6

Please sign in to comment.