Hello,<br>I have a funky raster I&#39;m trying to tile as jpegs. For whatever reason this RGB raster has white pixels on the source raster which should be black. Is it possible to set only these white pixels to be black on the output jpeg? I was playing around with the CLASS directive. This sets all those white pixels to black, but it does not preserve the rest of the rgb that I want to use; those &quot;good&quot; values are not processed and show as blank (white) space. How do I do this? I thought of preprocessing this with gdalwarp but the raster becomes too large (source is an ecw) on output so need to do it on-the-fly with mapserver (I&#39;m using mapserver trunk and gdal 1.8 on linux).<br>
<br>Thanks!<br>Matt<br><br>OUTPUTFORMAT<br>    NAME jpeg<br>    DRIVER &quot;AGG/JPEG&quot;<br>    MIMETYPE &quot;image/jpeg&quot;<br>    IMAGEMODE RGB<br>    EXTENSION &quot;jpg&quot;<br>END<br><br>LAYER<br>  NAME &quot;test&quot;<br>
  TYPE RASTER<br>  STATUS ON<br>  DATA &quot;/test.tif&quot;<br><br>  PROJECTION<br>    &quot;init=epsg:2230&quot;<br>  END<br><br>  PROCESSING &quot;NODATA=255&quot;<br><br>  CLASS<br>
    NAME &quot;set white to black&quot;<br>
    EXPRESSION ([red] = 255 AND [green] = 255 AND [blue] = 255)<br>
    STYLE<br>
    COLOR 0 0 0<br>
  END<br><br>END<br>