geotiffjs / geotiff.js

geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
https://geotiffjs.github.io/
MIT License
866 stars 182 forks source link

How do I use compression? #399

Closed gabebautista11 closed 11 months ago

gabebautista11 commented 11 months ago

Your docs say that this library has compression but I cannot figure out a to compress my Tiff file. Does this library only support decoding tiff files or can we also compress our tif files?

constantinius commented 11 months ago

Yes, currently only decompression is supported. Currently there are no plans to enable compression when writing TIFFs.

gabebautista11 commented 11 months ago

Yes, currently only decompression is supported. Currently there are no plans to enable compression when writing TIFFs.

Thank you @constantinius, do you know of any good javascript Tif compression libraries?

constantinius commented 11 months ago

I'm sorry, no. Usually I'm using CLI commands (especially GDAL) to create TIFFs with compression.