Skip to content

image resize library 교체 #5

@umi0410

Description

@umi0410

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions