본문 바로가기
IT/Frontend

이미지 라이브러리 sharp

by DOSGamer 2019. 8. 4.
반응형
sharp 쓰세요 완전좋아요

이미지 라이브러리를 찾는다면 sharp 를 반드시 사용하시기 바랍니다

sharp

ImageMagick 대비해서 4~5배 빠릅니다

 

npm trends

트랜드를 비교해봐도 압도적으로 많이 찾고 있습니다

https://www.npmtrends.com/gm-vs-imagemagick-vs-sharp

 

gm vs imagemagick vs sharp | npm trends

Compare npm package download statistics over time: gm vs imagemagick vs sharp

www.npmtrends.com

 

sharp

깃허브에서 사용법 확인할 수 있습니다. 굉장히 쉬워요

https://github.com/lovell/sharp

 

lovell/sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP and TIFF images. Uses the libvips library. - lovell/sharp

github.com

 

sharp 를 AWS 람다에서 사용방법

http://sharp.pixelplumbing.com/en/stable/install/#aws-lambda

 

Installation - sharp

Installation npm install sharp yarn add sharp Prerequisites Building from source Pre-compiled binaries for sharp are provided for use with Node versions 8, 10 and 12 on 64-bit Windows, OS X and Linux platforms. Sharp will be built from source at install ti

sharp.pixelplumbing.com

 

상품이미지를 람다에 sharp 을 올려서 리사이징 하는데 확실히 편하고 좋습니다

 

무조건 사용하세요

 

반응형