Skip to content
New issue

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

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

Already on GitHub? # to your account

image resize library 교체 #5

Open
umi0410 opened this issue Sep 5, 2021 · 0 comments
Open

image resize library 교체 #5

umi0410 opened this issue Sep 5, 2021 · 0 comments

Comments

@umi0410
Copy link
Member

umi0410 commented Sep 5, 2021

nfnt/resize 라이브러리를 통해 resize를 하던 도중 golang의 image.Image 인터페이스는 Exif 메타데이터를 지원하지 않아 이미지가 회전되는 경우가 있음을 #4 에서 확인했고, 따라서 Exif 처리 후 이미지를 Rotate해야했다.

리서치 하던 도중 nfnt/resize보다 이미지 처리에 좀 더 많은 기능을 담은 disintegration/imaging 라는 패키지를 발견하게 됐다.
현재는 disintegration/imaging를 통해 Rotate 작업을 수행하고, nfnt/resize로 기존대로 resizing을 진행하고 있는데 시간이 된다면 resizing 작업도 disintegration/imaging로 진행하는 방향으로 리팩토링하면 좋겠다.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant