Bug 623 - RGB Image Mode and the Scalebar
: RGB Image Mode and the Scalebar
Status: NEW
: Chameleon
Widget
: 1.99
: PC Windows 2000
: P2 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-08-19 15:12 by
Modified: 2004-11-03 15:06 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-08-19 15:12:33
When you change the Image Mode, as part of the output format object of the map 
file, from PC256 to RGB the scale bar image background color becomes blueish 
instead of the white it should be. I can make changes to the other colors but 
cannot change that particular color. It also ignores the transparent setting 
if I turn it ON with RGBA.

Ken
------- Comment #1 From 2004-08-24 13:16:26 -------
Changed target to 1.99 RC 1.
------- Comment #2 From 2004-09-02 15:27:15 -------
While mucking about with Netscape I found that the scalebar displays properly 
in netscape, so its some kind of IE bug.
------- Comment #3 From 2004-10-21 09:50:12 -------
By using e.g. the following PNG hack (for IE 5.5+) the problem can be solved:

http://www.mongus.net/pngInfo/
------- Comment #4 From 2004-10-28 19:01:49 -------
Bart have you tried implimenting pngHack? I couldnt get pngHack to work, but 
its parent pngBehaviour did work when I implimented it, including fixing the 
problem, however there were two new problems: 1) its fairly slow and it shows 
the original problem image first and then applies itself and removes the 
unclear box.
2) It loads fine, but breaks all my navigation tools so that if I try and zoom-
in, zoom-out etc, it returns a "The page cannot be displayed" error.

Just curious if you have tried it or not.

Ken
------- Comment #5 From 2004-10-29 02:46:15 -------
Ken, I have tried pngHack and it works for me. I did not experience any problems
implementing it.

You can see the result at:

http://www.vz.geodan.nl:1111/geoservices/
------- Comment #6 From 2004-10-29 13:50:53 -------
I think pngHack wont work on IIS, or atleast thats my guess after implimenting 
it serveral times without a change in the problems I noted above.

I did find another work around. In the scalebar widget, I changed: 

    var $mszImageType = "PNG";

To

    var $mszImageType = "GIF";

Not sure its actually doing transparency as I havent tested, but it works well 
with my white background so leaving it as is for now.

Ken