Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-19 Thread Erik Gustafson
On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I am sometimes getting images with totally odd colours with MS 6.0 beta 6 (and the previous beta versions) with format image/png; mode=8bit.  I have been doing some testing and I believe I can now reproduce

Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-19 Thread thomas bonfort
please test with trunk and report back if you're still having the error: http://trac.osgeo.org/mapserver/ticket/3848 -- thomas On Tue, Apr 19, 2011 at 09:32, Erik Gustafson gustafson.e...@gmail.com wrote: On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I

Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-19 Thread Erik Gustafson
On Tue, Apr 19, 2011 at 9:39 AM, thomas bonfort thomas.bonf...@gmail.com wrote: please test with trunk and report back if you're still having the error: http://trac.osgeo.org/mapserver/ticket/3848 My test case from yesterday has correct colors with trunk of today! The resulting image went from

Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-19 Thread thomas bonfort
Erik, the png compression that is applied is now configurable, and defaults to 6. You can set it as it was by default in 5.6 for quantized output with FORMATOPTION COMPRESSION=9 please post your image size after the change. -- thomas On Tue, Apr 19, 2011 at 10:14, Erik Gustafson

Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-19 Thread Erik Gustafson
On Tue, Apr 19, 2011 at 10:27 AM, thomas bonfort thomas.bonf...@gmail.com wrote: Erik, the png compression that is applied is now configurable, and defaults to 6. You can set it as it was by default in 5.6 for quantized output with FORMATOPTION COMPRESSION=9 please post your image size

Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-19 Thread thomas bonfort
ok, I see where the issue is arising from: in 5.x you were using gd's quantization algorithm, which to put it frankly, sucked badly (i.e. note the duplicate entries in the color table which are a waste of quality). the current quantization algorithm is much higher quality, and thus produces

Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-19 Thread Erik Gustafson
On Tue, Apr 19, 2011 at 10:51 AM, thomas bonfort thomas.bonf...@gmail.com wrote: ok, I see where the issue is arising from: in 5.x you were using gd's quantization algorithm, which to put it frankly, sucked badly (i.e. note the duplicate entries in the color table which are a waste of

[mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-18 Thread Rahkonen Jukka
Hi, I am sometimes getting images with totally odd colours with MS 6.0 beta 6 (and the previous beta versions) with format image/png; mode=8bit. I have been doing some testing and I believe I can now reproduce the error. The error happens only if the raster image has overviews. If I delete or

Re: [mapserver-users] MS 6.0 beta6 and faulty image/png; mode=8bit output if source image has overviews

2011-04-18 Thread thomas bonfort
Jukka, please create a ticket and attach your test case, I'll have a look. thanks, thomas On Mon, Apr 18, 2011 at 10:18, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote: Hi, I am sometimes getting images with totally odd colours with MS 6.0 beta 6 (and the previous beta versions) with format