Jan,<div> Jpeg is a lossy compression and thus the collar will not be maintained perfectly as black (or 0). You will not get as much compression, but you can try a lossless method like LZW or Packbits. If you are getting close to the 4GB limit you might need to add "-co bigtiff=if_safer".</div>
<div><br></div><div>Good luck,</div><div>Trent</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 27, 2012 at 5:38 AM, Jan Hartmann <span dir="ltr"><<a href="mailto:j.l.h.hartmann@uva.nl" target="_blank">j.l.h.hartmann@uva.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<font face="Times New Roman, Times, serif">Can anyone tell me wath
is happening here? I have a large three-band raster (3.8G) looking
like this:</font><br>
<br>
<font face="Times New Roman, Times, serif"><a href="http://mapserver.sara.nl/map2a.png" target="_blank">http://mapserver.sara.nl/map2a.png</a></font><br>
<br>
<font face="Times New Roman, Times, serif">I compress it (from
information from this list a few days ago) with:<br>
<br>
gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR big.tif
small.tif<br>
gdaladdo --config COMPRESS_OVERVIEW JPEG --config
PHOTOMETRIC_OVERVIEW YCBCR -ro -r gauss small.tif 2 4 8 16 32 64<br>
<br>
and get a file of 37M, which is nice. However, the map has all
kinds of rubbish at the borders. It looks like this:<br>
<br>
<a href="http://mapserver.sara.nl/map2b.png" target="_blank">http://mapserver.sara.nl/map2b.png</a><br>
<br>
The equivalent pictures of a small part of the map look like this:<br>
<br>
<a href="http://mapserver.sara.nl/map1a.png" target="_blank">http://mapserver.sara.nl/map1a.png</a><br>
<a href="http://mapserver.sara.nl/map1b.png" target="_blank">http://mapserver.sara.nl/map1b.png</a> <br>
<br>
Can anyone help me?<span class="HOEnZb"><font color="#888888"><br>
<br>
Jan<br>
</font></span></font>
</div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>