<div><div>If I understand your problem correctly ...</div><div><br></div>The classification of a raster in the display is not related to the file itself, but to the layer as you see it in the display. Even if you load the original .asc file as a new layer, it won't have the correct colors. It's not a problem of image format conversion.<div>
<br></div><div>So the only way I can think of to solve your problem is to save the style, then apply it to the new .tiff image later. Maybe save the style to be the same as the file name (sans extension) of the image you're converting, so that you know which image to apply it to (if they're not all the same). I'm not sure how to do this automatically though, so if you have 500 images you're going to hate me ...<br>
<br><div class="gmail_quote">On 17 May 2012 10:52, giannis Nj <span dir="ltr"><<a href="mailto:netsagief@hotmail.com" target="_blank">netsagief@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div dir="ltr">I want to convert a directory with .asc files to .tiffs, but I need the output files to have the same colour analysis, as when they are already loaded in qgis display. I try Raster->Conversion->Translate (Convert format) but it gives each file with different colours. Is there any other way to make it? Maybe a batch convert somehow after the files are loaded on screen?<br>
</div></div><br>_______________________________________________<br>Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></blockquote></div></div></div>