Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 이미지 변환 의존성 변경 #489

Merged
merged 4 commits into from
Nov 28, 2024
Merged

refactor: 이미지 변환 의존성 변경 #489

merged 4 commits into from
Nov 28, 2024

Conversation

I-migi
Copy link
Collaborator

@I-migi I-migi commented Nov 28, 2024

PR에 대한 설명 🔍

implementation "com.sksamuel.scrimage:scrimage-core:4.0.32"
    implementation "com.sksamuel.scrimage:scrimage-webp:4.0.32"

위의 scrimage 의존성은WebpWriter가 내부적으로 사용하는 cwebp 바이너리가 GLIBC 버전을 충족하지 못해서 배포 환경에서 이미지 업로드를 실패합니다.

위의 이슈를 해결하기 위해

implementation 'com.twelvemonkeys.imageio:imageio-webp:3.9.4'

위의 twelvemonkeys 를 사용해서 이미지 업로드를 수정했습니다. 그러나 twelvemonkeys 의존성을 사용하면 이미지를 webp 로 변환을 할 때 이미지가 손상되는 이슈가 발생합니다.

QA 를 진행하기 위해 임시로 twelvemonkeys 를 사용하고 추후 어떻게 해야 할 지함께 고민해봐야 할 것 같습니다.

@I-migi I-migi added the refactor✍️ 그냥 수정 label Nov 28, 2024
@I-migi I-migi requested a review from a team November 28, 2024 09:22
@I-migi I-migi self-assigned this Nov 28, 2024
return outputStream.toByteArray();
} catch (IOException exception) {
log.error("Image conversion failed for file: {}", file.getOriginalFilename(), exception);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

로그는 Exception Handler에서만 남겨야 중복이 발생하지 않습니다.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception Handler 에 로그를 남기면 ClooudWatch에서 로그가 확인되지 않아 남겼습니다. 이슈를 해결했으니 지우겠습니다 😄

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception Handler 에 남긴 로그가 Cloud Watch에서 확인되지 않는군요!! 확인해보겠습니다 👍

Copy link
Collaborator

@soeunnPark soeunnPark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!

@I-migi I-migi merged commit d2bf2b1 into develop Nov 28, 2024
3 checks passed
@I-migi I-migi deleted the test branch November 28, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor✍️ 그냥 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants