GPHemsley / tiff-js

A JavaScript-based parser for the TIFF image format.
Mozilla Public License 2.0
71 stars 30 forks source link

Is Compression level 4 supported? #15

Open yarafatin opened 9 years ago

yarafatin commented 9 years ago

I have been trying to use this amazing tool for one of my projects and I am stuck at a point where I have to parse CCITT T.6 format tiff file - compression level 4. In the code, I see a comment for compression level 4 - "Use PDF.js code". Would you be able to give some pointers on how to make this work? Your help is greatly appreciated.

Thanks!

GPHemsley commented 9 years ago

I haven't been actively developing this in a while. Apparently pdf.js already has to process a number of the same compression types that are used in TIFFs, so their code can probably be reused, but I never took the time to do it (or even to figure out where that code lives).

yarafatin commented 9 years ago

Any chances that you could look into it? In my project, this will eliminate 40 servers that convert tiff to png on demand. The document base is two hundred terabytes, so one time conversion is also costly. Please let me know if I could do something to move ahead in this direction.

GPHemsley commented 9 years ago

As mentioned, I am no longer actively developing this, as I am not using it for anything. I don't have the time to look into it, so I'm afraid you're on your own.