[Geomoose-users] Unsupported output format (image/png;bits=8)

Mark Volz MarkVolz at co.lyon.mn.us
Tue Jul 23 06:33:43 PDT 2013


Robert,

geomoose_globals.map, which is included on most of the demo map files assigns png8 as the default output format.  This format works well for vector layers, but not raster layers.  You might want to change your map file like such:


#do not include geomoose globals which uses png8
#Include ../ geomoose_globals.map

#add the portions from geomoose_globals that you need

                FONTSET              "../../fonts/fontset.list"
                SYMBOLSET        "../../symbols/symbol.sym"

                # prevent the pink screen of death on large monitors
                MAXSIZE 10000

                #TRANSPARENT TRUE

                # Does this stuff even need to be set in MS 6.x?  JSK
                OUTPUTFORMAT
                                NAME 'agg/png'
                                DRIVER AGG/PNG
                                IMAGEMODE RGBA
                                FORMATOPTION "TRANSPARENT=TRUE"
                                TRANSPARENT ON
                                MIMETYPE "image/png"
                END

                IMAGETYPE agg/png    # use the output format named  'agg/png'

                IMAGECOLOR 255 255 255

Mark Volz, GISP
GIS Specialist

From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Robert R. Raiz
Sent: Tuesday, July 23, 2013 8:04 AM
To: geomoose-users at lists.osgeo.org
Subject: Re: [Geomoose-users] Unsupported output format (image/png;bits=8)

Sorry, somehow gmail keyboard shortcuts made a fool out of me and sent the email to soon;

The problem is that now, all my png images (PIXMAP) render really badly. They look quite bad.

Whatever I try to modify in the map file at the OUTPUTFORMAT parameter, I keep getting:
<ServiceException code="InvalidFormat">
msWMSLoadGetMapParams(): Image handling error. Unsupported output format (image/png;bits=8).

I tried to change every parameter but I still get that error. If I use MIMETYPE "image/png;bits=8" it works with vector files, but my icons (PIXMAP - png images) do not render well.

Any Ideas?

On Tue, Jul 23, 2013 at 4:00 PM, Robert R. Raiz <raizrobert at gmail.com<mailto:raizrobert at gmail.com>> wrote:
Hello all,

I am struggling with this error.

In the past (with Mapserver5) I was using:

  IMAGETYPE png24
OUTPUTFORMAT
NAME 'AGGA'
DRIVER 'AGG/PNG'
IMAGEMODE RGBA
MIMETYPE "image/png"
EXTENSION "png"
END

Now I have:
OUTPUTFORMAT
NAME "png8"
DRIVER AGG/PNG8
MIMETYPE "image/png;bits=8"
EXTENSION "png"
TRANSPARENT ON
IMAGEMODE RGBA
FORMATOPTION "QUANTIZE_FORCE=on"
FORMATOPTION "QUANTIZE_COLORS=256"
FORMATOPTION "INTERLACE=OFF"
END
--
Raiz Roland Robert




--
Raiz Roland Robert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20130723/ba742ef1/attachment-0001.html>


More information about the Geomoose-users mailing list