unjs / ipx

🖼️ High performance, secure and easy-to-use image optimizer.
MIT License
1.53k stars 61 forks source link

feat: get metadata with sharp #117

Closed aaharu closed 1 year ago

aaharu commented 1 year ago

image-meta does not support AVIF and HEIF images. sharp enables both metadata retrieval and formatting.

codecov[bot] commented 1 year ago

Codecov Report

Merging #117 (3b9da9b) into main (ca4d067) will decrease coverage by 1.28%. The diff coverage is 84.78%.

@@            Coverage Diff             @@
##             main     #117      +/-   ##
==========================================
- Coverage   59.25%   57.97%   -1.28%     
==========================================
  Files          10       10              
  Lines         778      771       -7     
  Branches       43       45       +2     
==========================================
- Hits          461      447      -14     
- Misses        317      324       +7     
Impacted Files Coverage Δ
src/middleware.ts 23.80% <66.66%> (-0.52%) :arrow_down:
src/handlers/utils.ts 38.46% <83.33%> (+0.62%) :arrow_up:
src/ipx.ts 79.01% <86.66%> (-4.52%) :arrow_down:
src/sources/filesystem.ts 73.07% <100.00%> (ø)
src/sources/http.ts 77.14% <100.00%> (ø)
src/utils.ts 71.42% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

pi0 commented 1 year ago

Thanks for nice PRs and so sorry this one got stalled. I have cherry-picked your other ts related improvements. Let's redo it in another PR (since there are many merge conflicts) ~> https://github.com/unjs/ipx/issues/134