<div dir="ltr"><div>Hi all</div><div><br></div><div>I am running "gdal2tiles" over input GeoTIFF from the command line.</div><div>Some times those geotiff may have an alpha band (usually and RGBA uint8 image), or nodata value (usually a float32 image), or sometimes none of them. In the last case I will add the option "-a 0,0,0" or "-a 0" (yes, black is the new transparent), but on the other two cases I shouldn't add that option.</div><div><br></div><div>Is there any efficient way via the command line to detect if a file has some kind of transparency mask, apart for parsing the output of gdalinfo?</div><div><br></div><div>Thanks<br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">.___ ._ ..._ .. . ._.  .___ .. __ . _. . __..  ... .... ._ .__<br>Entre dos pensamientos racionales <br>hay infinitos pensamientos irracionales.<br><br></div></div></div></div>