<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi list,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I’m trying to assembly some RGBA tiff in one with gdalbuildvrt and then to translate them to a RGB TIFF tiled file YCBCR jpeg compressed.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>No problem… But now, I would like to get a white color in the background instead of the black.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>The following commands work but I get nodata (and so, black) on any white pixels whereas I just wanted to convert alpha to white… The problem in on the vrt.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>gdalbuildvrt assembly.vrt -srcnodata b4 –hidenodata -vrtnodata 255 *.tif<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>gdal_translate -of GTIFF -b 1 -b 2 -b 3 -co COMPRESS=JPEG -co JPEG_QUALITY=95 -co TFW=YES -co BIGTIFF=YES -co ALPHA=NO -co TILED=YES -co PHOTOMETRIC=YCBCR -co PROFILE=BASELINE assembly.vrt assembly_JPG.tif<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>gdaladdo -r gauss -ro --config COMPRESS_OVERVIEW JPEG --config JPEG_QUALITY_OVERVIEW 95 --config BIGTIFF_OVERVIEW YES --config PHOTOMETRIC_OVERVIEW YCBCR --config INTERLEAVE_OVERVIEW PIXEL --config NODATA_VALUES 255 assembly_JPG.tif 2 4 8 16 32 64 128 256<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Do you have an idea? The problem is the is not –init option, just -vrtnodata “255 255 255” to fix both background color but also the nodata bandper band…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Pierre CARREAUD</span></b><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Spécialiste en imagerie numérique</span></i><i><o:p></o:p></i></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 style='border-collapse:collapse'><tr style='height:67.7pt'><td width=144 valign=top style='width:108.3pt;padding:0cm 5.4pt 0cm 5.4pt;height:67.7pt'><p class=MsoNormal><b><span style='font-size:14.0pt;font-family:"Century Gothic","sans-serif"'><img width=207 height=151 id="Image_x0020_1" src="cid:image001.jpg@01CF229E.D0A27A80" alt="carte_voeux_2014"></span></b><o:p></o:p></p></td><td width=365 valign=top style='width:274.05pt;padding:0cm 5.4pt 0cm 5.4pt;height:67.7pt'><p class=MsoNormal style='margin-top:1.5pt'><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#ABCBD4;text-transform:uppercase;letter-spacing:1.5pt'>L’INGÉNIERIE DE LA DURABILITÉ</span></b><o:p></o:p></p><p class=MsoNormal align=center style='margin-top:1.5pt;text-align:center'><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'> <o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>SITES – Entité Île-de-France<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Division du Développement Technique</span><o:p></o:p></p><p class=MsoNormal style='margin-top:6.0pt'><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>2 bis avenue du Centre</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>92500 Rueil-Malmaison, France</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Arial","sans-serif"'>Tel : 01 41 39 02 00 / Fax : 01 41 39 02 01<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><a href="http://www.sites.fr/"><span lang=EN-US style='color:blue'>www.sites.fr</span></a></span></b><span lang=EN-US><o:p></o:p></span></p></td></tr></table><p class=MsoNormal><span lang=EN-US style='font-size:16.0pt;color:black'> </span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span style='color:black'><img border=0 width=63 height=16 id="Image_x0020_2" src="cid:image002.jpg@01CF229E.D0A27A80" alt=CARRES>  </span><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#ABCBD4;text-transform:uppercase;letter-spacing:1.5pt'>EXPERTISE  </span></b><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#ABCBD4;text-transform:uppercase;letter-spacing:1.5pt'><img border=0 width=8 height=8 id="Image_x0020_3" src="cid:image003.jpg@01CF229E.D0A27A80" alt="cid:image002.jpg@01CB7A74.CDE1E680">  INSTRUMENTATION / MESURES  <img border=0 width=8 height=8 id="Image_x0020_4" src="cid:image003.jpg@01CF229E.D0A27A80" alt="cid:image002.jpg@01CB7A74.CDE1E680">  INGENIERIE</span></b><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>