<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 12:46 PM, Armin Burger <span dir="ltr"><<a href="mailto:armin.burger@gmx.net" target="_blank">armin.burger@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The only time that I discovered where LZW does not work well was when using gdalwarp and directly writing the output as (untiled) LZW TIFF. This could create LZW files up to 2-3 times bigger than the uncompressed input TIFF. When using gdalwarp and one wants to save disk space one should either create tiled LZW TIFF's, or warp to uncompressed TIFF and then use gdal_translate with LZW to create the final LZW image, PREDICTOR=2 is recommended for both methods.</blockquote><div><br></div><div>We've learned to do the latter (warp first, then compress via translate) if you're writing into the output TIFF from more than one input file. The compressed tiff will be smaller, and you won't get weird bugs appearing occasionally.</div><div><br></div><div>Rob :)</div></div>
</div></div>