[gdal-dev] Compression artifacts

Jan Hartmann j.l.h.hartmann at uva.nl
Thu Dec 27 04:38:50 PST 2012


Can anyone tell me wath is happening here? I have a large three-band 
raster (3.8G) looking like this:

http://mapserver.sara.nl/map2a.png

I compress it (from information from this list a few days ago) with:

gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR big.tif small.tif
gdaladdo --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW 
YCBCR -ro -r gauss small.tif 2 4 8 16 32 64

and get a file of 37M, which is nice. However, the map has all kinds of 
rubbish at the borders. It looks like this:

http://mapserver.sara.nl/map2b.png

The equivalent pictures of a small part of the map look like this:

http://mapserver.sara.nl/map1a.png
http://mapserver.sara.nl/map1b.png

Can anyone help me?

Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121227/f84b4e33/attachment.html>


More information about the gdal-dev mailing list