Bug report #19162
[Processing] GDAL translate sould not cast datatype by default
|Affected QGIS version:
|Pull Request or Patch supplied:
|Crashes QGIS or corrupts data:
|Copied to github as #:
GDAL translate tool allows to setup output datatype, this is an usefull option but also an advanced one, and most the case user just wants to keep the original datatype as it. The first value in the drop down list is float32 so by default the tool always cast the datatype to float32 but, for example, translating an 8 bits RGB raster to 32 bits does not make really sense. If the user wants to maintain the original datatype he must determine it upstream and choose the correct value in the drop down list.