Hi, related to add 8bit png support in geoserver, there is an improvement
I'm wanting to propose since a time ago, now that you dear user are requiring
it sounds like a good chance to force me to move my ass
The thing is that geoserver creates a 32bit ARGB in-memory image regardless of
the intended output format, which in much cases is an unnecesary waste of
resources.
<snip>
BufferedImage curImage = new BufferedImage(width,
height,BufferedImage.TYPE_4BYTE_ABGR);
</snip>
I know we could allow to specify is either a 32 bit or an 8 bit png has to be
outputed through parameters in the requested mime type, so I would like to
try using a BufferedImage of TYPE_BYTE_INDEXED and proper IndexColorModel.
So, anyone has tried it already? since we already changed from TYPE_INT_ARGB
to TYPE_4BYTE_ABGR, I would like to know if someone did experimented with it.
On the other side, do we should set up some kind of configurable limit for the
dimensions of the requested images? say someone asks for a 100K x 100K jpeg
and kills your server when it tries to create such a BufferedImage...
regards,
Gabriel
On Thursday 13 July 2006 15:21, Jody Garnett wrote:
Maurice Tamman wrote:
> Jody:
>
> I couldn’t find anything on this so I’m taking a shot with you. This
> is my first time working directly with a mapping server.
>
> We recently started using Geoserver 1.3.2 to serve up shape files to a
> Google Maps mashup.
Sweet.
> For the time being these maps are utterly static so we’re caching the
> tiles.
Okay, I am mostly familiar with the GIS hacking side of things, have not
played with google maps and caching yet.
> The tiles load relatively fast in FF using image/png but it looks like
> they are 24-bit pngs because the transparency gets all buggered up in
> IE. Rendering as GIFs works in both browsers but is significantly slower.
>
> Obviously, I want the fastest option. Is there a way to have the tiles
> render as 8 bit pngs so the transparency will work in IE?
GeoServer can generate output in several different formats, I am not
sure if 8 bit PNG is supported right now but we can talk to Brent to
find out.
> Also, is there a way to test if the caching is working as billed?
Good question, I would change the SLD style sheet to render the content
in a different color and see what happened.
Jody
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Gabriel Roldán (groldan@anonymised.com)
Axios Engineering (http://www.axios.es)
Tel. +34 944 41 63 84
Fax. +34 944 41 64 90