<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 12/27/2012 02:27 PM, Even Rouault
wrote:<br>
</div>
<blockquote
cite="mid:201212271427.19647.even.rouault@mines-paris.org"
type="cite">
<pre wrap="">
</pre>
<pre wrap="">
The artifacts are due to the lossy characteristics of JPEG compression that
are particularly visible on borders between nodata pixel and valid pixels. An
option would be to use nearblack to create a .msk mask file :
nearblack -setmask -o big_with_mask.tif big.tif -of gtiff
(I'm not sure if your original image has black or white nodata areas. If it is
white, then add -white to the previous command line)
And then do the gdal_translate with big_with_mask.tif as input (you should
perhaps consider adding "-co TILED=YES" too), and then gdaladdo. I've just
pushed a fix since building overviews with "--config COMPRESS_OVERVIEW JPEG --
config PHOTOMETRIC_OVERVIEW
YCBCR" when there's a .msk didn't work.
MapServer should be able to use the mask file as a transparency mask.
</pre>
<font face="Times New Roman, Times, serif"><br>
</font></blockquote>
<font face="Times New Roman, Times, serif">OK Even, thanks. This
means that I should use gdal-svn?</font><br>
</body>
</html>