<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello gdal community !</div><div><br></div><div>I'd like to submit your group a question in regards to the use of gdal_translate function.</div><div>I
 am converting tif images (64bits, 6 bands multispectral) to jpg images 
uint8 via the Qgis interface to operate in lot but I face issues with 
the conversion of the histogram values.</div><div>It appears this gdal-translate truncate the histogram to the 255 first values.</div><div>I therefore tried the scaling (-scale) argument using this line</div><div>-scale 0 65536 0 255</div><div><br></div><div>But it appears the resulting histogram is spiky (bottom plot)....compare to the original histogram (top plot)</div><div>See image here <br></div><div><a href="https://ibb.co/mGZHCR0">https://ibb.co/mGZHCR0</a></div><div></div><div></div><div><br></div><div>Any idea from your side on how to better represent histogram from this gdal-translate conversion ?</div><div><br></div><div>Any help would be much appreciated !!</div><div>Thanks heaps.</div><div><br></div><div>Best regards, </div><div><br></div><div>Pierre Chaponniere</div><div><br></div></div>
</div></div>
</div></div>