Exporting raster as .tif with “use renderer” and “force RGB” produces inaccurate colors?

Exporting raster as .tif with “use renderer” and “force RGB” produces inaccurate colors?

In ArcMap 10.2 I have a DEM and my aim is to change its color ramp using ArcMap, then export this colored raster as a geotiff (8 bit).

I checked "use renderer" and "force RGB" options but the results are not good (EDIT: when viewed in ArcMap). With some color ramps, the results are really off, and with others, they are slightly off.

For example:

Is this a bug, or is this an artifact stemming from the the original image being simplified into an 8 bit image? (Does ArcMap stores its color ramps with more than 8 bits?)

it seems that results only look strange in ArcGIS - if viewed in other applications, colors look right.

So why is ArcMap displaying the exported rasters inaccuractly?

Do I need to change some settings somewhere to have them display correctly?

I think you're missing something in what johns has said in his comment. When you are looking at the symbology for the raster there are two renderers to choose from - stretched and RGB composite. However, on the RGB composite settings there is also a stretch option. You need to set this to None.

There are a couple of ways to export a raster. If using the actual Export tool, note item 4. from that help file which states (emphasis mine):

Optionally, check the Use Renderer check box if you want to export the raster dataset with the current renderer options. Additionally, check the Force RGB check box if you want to export the output raster as a three-band RGB raster dataset with the current renderer.

If this exported raster dataset is brought back into ArcGIS, the stretched type should be set to None, since it is already stretched.

This means that if you don't change that to none, you're effectively doubling up your stretch effect (or applying two different stretches).

As far as bit depth, on the Export tool you can see a pixel depth - the values in your initial raster determine this, and it is set automatically to maintain those values. If your color ramp can be handled by 8 bits, there shouldn't be any issues. If it can't, the pixel depth should increase automatically. The Copy Raster tool allows you to change the pixel bit depth value, say if for some reason you wanted a 16-bit tif. Remember, you're taking a single band raster (DEM elevation value) and converting it to a three band raster (RGB), which means you don't have to store the entire value in a single pixel of whatever depth. The true value is the composite of three pixels, meaning those three can be lower bit depth than their single originator.

And while I don't think it's part of your issue here, I will point out that depending on the color ramp used in the original symbology, you may get slight color shifts when going to RGB. Some ramps and methods of color selection use other models, such as HSV, which there may not be a direct RGB value translation for. But they should be pretty slight shifts, nothing too drastic.

You can save the original layer file then add the exported tiff to map and import the saved layer file symbology in the raster Layer Properties -> Symbology tab. If the original raster is still in the map document you can also select it from the drop-down menu.

Watch the video: Photoshop CC: Saving File as a Tiff Format