[MS4W-Users] Image 24 Bit
José Pedro Santos
zpsantos1 at hotmail.com
Fri Nov 23 10:57:22 EST 2012
Dear Jeff,
When I was retriving the GetCapabilities I realise this:
<Format>image/png</Format><Format>image/jpeg</Format><Format>image/gif</Format><Format>image/png; mode=8bit</Format>
So, the mode is 8bit format so don't allow images from 24bits.
How can I change this?
Best Regards,
José Santos
> Date: Fri, 23 Nov 2012 09:59:43 -0400
> From: jmckenna at gatewaygeomatics.com
> To: ms4w-users at lists.maptools.org
> Subject: Re: [MS4W-Users] Image 24 Bit
>
> On 12-11-23 9:27 AM, José Pedro Santos wrote:
> > Dear all,
> >
> > I'm attempting to classify images of 24 bits but I always have the error
> > saying this: ........Unable to access file. Attempt to classify 24bit
> > image, this is unsupported.
> >
> > My Mapfile is this one:
> >
> > ...........
> >
> > IMAGETYPE "png24"
> >
> > ..........
> >
> > OUTPUTFORMAT # Parameter Output
> > NAME png24
> > DRIVER "GD/PNG"
> > MIMETYPE "image/png"
> > EXTENSION PNG
> > IMAGEMODE RGBA
> > TRANSPARENT ON
> > END # end of parameter Output
> >
> >
> > and in the expression of GetMap I use FORMAT=image/png
> >
> > In the Layer description I have the special processing directives to
> > processed the 3 bands. But If put just 2 appear one empty image not the
> > error. I already read some documentation but I can't succeed.
> >
> > any idea?
> >
> > Many thanks and best regards,
> >
> > José Santos
>
> Hello José,
>
> It is difficult for me to comment without testing your local file.
> However if I were you I might:
>
> - in your OUTPUTFORMAT object I would:
> - change "GD/PNG" to "AGG/PNG"
> - change "RGBA" to "RGB"
> - remove "TRANSPARENT ON"
>
>
> -jeff
>
>
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ms4w-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20121123/21c48a3e/attachment.htm
More information about the MS4W-Users
mailing list