Opened 13 years ago
Last modified 13 years ago
#4017 new enhancement
Expose more png compression options
Reported by: | tbonfort | Owned by: | tbonfort |
---|---|---|---|
Priority: | normal | Milestone: | 6.2 release |
Component: | MapServer C Library | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
The wms shootout has shown that png compression options have a big influence on perceived performance, without necessarily causing larger image sizes.
One notable png optimization is to set png filtering to PNG_FILTER_NONE in these cases:
- quantized png
- when output is vector (i.e. no rasters) data
more testing should be done to assess the impact on raster images, but in any case png is not a good choice for this kind of data.
This ticket will track the addition of an additional FORMATOPTION allowing the user to set which png filters are applied. The default will be to not set any filter.
Note:
See TracTickets
for help on using tickets.
patch for mapimageio.c:
mapimageio.c
png_set_compression_level(png_ptr, compression);png_set_compression_level(png_ptr, compression);