image-js / tiff

TIFF image decoder written entirely in JavaScript
MIT License
190 stars 17 forks source link

feat: support LZW compression #20

Closed targos closed 4 years ago

targos commented 4 years ago

The methods of the LZW decoder are based on the pseudo code from the spec:

image

codecov-commenter commented 4 years ago

Codecov Report

Merging #20 into master will increase coverage by 6.71%. The diff coverage is 93.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   69.94%   76.66%   +6.71%     
==========================================
  Files           8       10       +2     
  Lines         396      510     +114     
  Branches       71       83      +12     
==========================================
+ Hits          277      391     +114     
  Misses        119      119              
Impacted Files Coverage Δ
src/tiffDecoder.ts 81.63% <75.86%> (+0.48%) :arrow_up:
src/lzw.ts 98.70% <98.70%> (ø)
src/horizontalDifferencing.ts 100.00% <100.00%> (ø)
src/tiffIfd.ts 52.38% <0.00%> (+4.76%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 333c0a1...7815a3d. Read the comment docs.