[Chameleon] can't Print in 24bit with a transparent scalebar
wbronsema at dmsolutions.ca
Mon Sep 10 10:28:32 EDT 2007
The bug #463 referred to here is:
It is a mapserver bug that appears to be fixed. Chameleon may have to be
updated to accommodate this.
Senior Applications Specialist
DM Solutions Group Inc.
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Maciej Sieczka
Sent: Friday, September 07, 2007 9:14 PM
To: Chameleon Users
Subject: [Chameleon] can't Print in 24bit with a transparent scalebar
Can someone tell what bug the line 677 of
//TODO: fix me when pasteImage is fixed (bug 463)
refers to? I could not find a relevant bug report "466" in Chameleon or
I was hoping this bug report could maybe shed some light on my problem.
The problem is that I can't display a transparent scalebar in the Printer
Friendly Map preview nor in the final output.
The scalebar is defined as:
BACKGROUNDCOLOR 255 255 255
COLOR 0 0 0
OUTLINECOLOR 0 0 0
COLOR 0 0 0
SIZE 150 5
Now, when the output type is defined as:
on the map display everything looks fine - rasters are displayed in 24bit,
scalebar is transparent. However, in the Print tool preview and output, the
scalebar is not transparent; see the attached bar_opaq_24b.png print preview
screenshot. Actually it's always opaq white, matter if/what IMAGECOLOR I set
and if TRANSPARENT is TRUE/FALSE. Although manipulating these values affects
the map display as expected.
When I change the output type into:
again, on the map display everything looks fine - rasters are displayed in
24bit, scalebar is transparent. In the Print tool output now the scalebar is
also transparent - great, but rasters are reduced to 8bit (see the attached
bar_trans_8b.png print preview screenshot).
How can I have both - 24bit Print output and a transparent scalebar on it?
More information about the Chameleon