PROBLEM
When publishing a raster as an ArcGIS Server map service, the published map service does not retain the color edits. This occurs when the raster is edited using the Image Analysis window in ArcMap.
Editing raster properties in the Image Analysis window does not change the original raster layer properties. The tool only applies the edits on the fly and the original raster remains unaltered. Hence, publishing the raster to ArcGIS Server as a map service does not retain the color edits on the raster.
Note: Edited raster properties can be verified before publishing. From the Image Analysis window, click Display > Interactive Stretch, and adjust the values of the red, green, and blue bands of the raster layer. The edits are visible on the raster layer. Observe the layer properties of the same raster layer in the Layer Properties dialog box, click Symbology > Stretch > Statistics. Notice the values of the red, green, and blue bands in the Layer Properties dialog box are not similar to the values set in Interactive Stretch.
As a workaround, edit the raster color in the Layer Properties dialog box before publishing it as a map service.
The images below show the rasters edited in ArcMap and the published map service. Both rasters display the same color.
Get help from ArcGIS experts
Download the Esri Support App