<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Which version of Mapserver (or MS4W)
      are you using?<br>
      <br>
      I think this error has to do with processing the input imagery in
      your LAYER, not the generation of the output image.<br>
      How are you trying to classify your input data?&nbsp; What does your
      LAYER object definition look like in your map file?<br>
      <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
      On 11/23/2012 8:33 AM, Jos&eacute; Pedro Santos wrote:<br>
    </div>
    <blockquote cite="mid:BLU162-W8D9BEBD48921DED6DBDBFE05A0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
      <div dir="ltr">
        <br>
        <br>
        <div>&gt; Date: Fri, 23 Nov 2012 09:59:43 -0400<br>
          &gt; From: <a class="moz-txt-link-abbreviated" href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a><br>
          &gt; To: <a class="moz-txt-link-abbreviated" href="mailto:ms4w-users@lists.maptools.org">ms4w-users@lists.maptools.org</a><br>
          &gt; Subject: Re: [MS4W-Users] Image 24 Bit<br>
          &gt; <br>
          &gt; On 12-11-23 9:27 AM, Jos&eacute; Pedro Santos wrote:<br>
          &gt; &gt; Dear all,<br>
          &gt; &gt; <br>
          &gt; &gt; I'm attempting to classify images of 24 bits but I
          always have the error<br>
          &gt; &gt; saying this: ........Unable to access file. Attempt
          to classify 24bit<br>
          &gt; &gt; image, this is unsupported.<br>
          &gt; &gt; <br>
          &gt; &gt; My Mapfile is this one:<br>
          &gt; &gt; <br>
          &gt; &gt; ...........<br>
          &gt; &gt; <br>
          &gt; &gt; IMAGETYPE "png24"<br>
          &gt; &gt; <br>
          &gt; &gt; ..........<br>
          &gt; &gt; <br>
          &gt; &gt; OUTPUTFORMAT # Parameter Output<br>
          &gt; &gt; NAME png24<br>
          &gt; &gt; DRIVER "GD/PNG"<br>
          &gt; &gt; MIMETYPE "image/png"<br>
          &gt; &gt; EXTENSION PNG<br>
          &gt; &gt; IMAGEMODE RGBA<br>
          &gt; &gt; TRANSPARENT ON<br>
          &gt; &gt; END # end of parameter Output<br>
          &gt; &gt; <br>
          &gt; &gt; <br>
          &gt; &gt; and in the expression of GetMap I use
          FORMAT=image/png<br>
          &gt; &gt; <br>
          &gt; &gt; In the Layer description I have the special
          processing directives to<br>
          &gt; &gt; processed the 3 bands. But If put just 2 appear one
          empty image not the<br>
          &gt; &gt; error. I already read some documentation but I can't
          succeed.<br>
          &gt; &gt; <br>
          &gt; &gt; any idea?<br>
          &gt; &gt; <br>
          &gt; &gt; Many thanks and best regards,<br>
          &gt; &gt; <br>
          &gt; &gt; Jos&eacute; Santos<br>
          &gt; <br>
          &gt; Hello Jos&eacute;,<br>
          &gt; <br>
          &gt; It is difficult for me to comment without testing your
          local file.<br>
          &gt; However if I were you I might:<br>
          &gt; <br>
          &gt; - in your OUTPUTFORMAT object I would:<br>
          &gt; - change "GD/PNG" to "AGG/PNG"<br>
          &gt; - change "RGBA" to "RGB"<br>
          &gt; - remove "TRANSPARENT ON"<br>
          &gt; <br>
          &gt; <br>
          &gt; -jeff<br>
          &gt; <br>
          &gt; <br>
          &gt; <br>
          &gt; <br>
          &gt; -- <br>
          &gt; Jeff McKenna<br>
          &gt; MapServer Consulting and Training Services<br>
          &gt; <a class="moz-txt-link-freetext" href="http://www.gatewaygeomatics.com/">http://www.gatewaygeomatics.com/</a><br>
          &gt; <br>
          &gt; <br>
          Hi Jeff, <br>
          <br>
          Thanks again for your reply. I try to change but didn't work.
          Do you think that have something to do with the
          Format=image/png?? Just PNG don't reply 8 bits images?<br>
          <br>
          Also I have another raster image but that one works well. This
          have 3 bands and values between 0 and 255. I'm using MapServer
          version 6.2. <br>
          <br>
          Another idea? <br>
          <br>
          Best Regards,<br>
          Jos&eacute; Santos <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          <br>
          &gt; _______________________________________________<br>
          &gt; MS4W-Users mailing list<br>
          &gt; <a class="moz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a><br>
          &gt; <a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ms4w-users">http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
MS4W-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MS4W-Users@lists.maptools.org">MS4W-Users@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/ms4w-users">http://lists.maptools.org/mailman/listinfo/ms4w-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>