image-js / image-js-typescript

Temporary repository to work on the migration of image-js to TypeScript
https://image-js.github.io/image-js-typescript/
MIT License
5 stars 5 forks source link

feat: decode and expose metadata #354

Closed Xstoudi closed 1 year ago

Xstoudi commented 1 year ago

Metadata type is directly taken from image-js, notable exception is the gps field that was removed as I didn't find any use of it in the old version and wasn't tested. I didn't find an example where it was filled with data.

Tell me if you have recommendation or want changes.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 84.21% and project coverage change: -0.02 :warning:

Comparison is base (0354911) 98.61% compared to head (4e29186) 98.59%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #354 +/- ## ========================================== - Coverage 98.61% 98.59% -0.02% ========================================== Files 200 201 +1 Lines 5335 5344 +9 Branches 1141 1144 +3 ========================================== + Hits 5261 5269 +8 - Misses 72 73 +1 Partials 2 2 ``` | [Impacted Files](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js) | Coverage Δ | | |---|---|---| | [src/Mask.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL01hc2sudHM=) | `100.00% <ø> (ø)` | | | [src/compare/computeDssim.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXBhcmUvY29tcHV0ZURzc2ltLnRz) | `100.00% <ø> (ø)` | | | [src/compare/computePsnr.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXBhcmUvY29tcHV0ZVBzbnIudHM=) | `100.00% <ø> (ø)` | | | [src/compare/computeRmse.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXBhcmUvY29tcHV0ZVJtc2UudHM=) | `100.00% <ø> (ø)` | | | [src/compare/computeSsim.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXBhcmUvY29tcHV0ZVNzaW0udHM=) | `100.00% <ø> (ø)` | | | [src/compare/subtract.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXBhcmUvc3VidHJhY3QudHM=) | `100.00% <ø> (ø)` | | | [src/compute/histogram.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXB1dGUvaGlzdG9ncmFtLnRz) | `100.00% <ø> (ø)` | | | [src/compute/mean.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXB1dGUvbWVhbi50cw==) | `100.00% <ø> (ø)` | | | [src/compute/median.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXB1dGUvbWVkaWFuLnRz) | `100.00% <ø> (ø)` | | | [src/compute/variance.ts](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js#diff-c3JjL2NvbXB1dGUvdmFyaWFuY2UudHM=) | `100.00% <ø> (ø)` | | | ... and [164 more](https://app.codecov.io/gh/image-js/image-js-typescript/pull/354?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=image-js) | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Xstoudi commented 1 year ago

I failed a rebase and it generated bad commits but it should pass now.