[Chameleon] can't Print in 24bit with a transparent scalebar
Maciej Sieczka
tutey at o2.pl
Fri Sep 7 21:13:46 EDT 2007
Hi
Can someone tell what bug the line 677 of
widgets/PrintProduction/preview.php:
//TODO: fix me when pasteImage is fixed (bug 463)
refers to? I could not find a relevant bug report "466" in Chameleon or
Mapsever trackers.
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:
SCALEBAR
BACKGROUNDCOLOR 255 255 255
COLOR 0 0 0
OUTLINECOLOR 0 0 0
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 150 5
UNITS kilometers
INTERVALS 5
STATUS ON
TRANSPARENT TRUE
END
Now, when the output type is defined as:
IMAGETYPE png
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
TRANSPARENT ON
EXTENSION "png"
END
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:
IMAGETYPE PNG24
TRANSPARENT TRUE
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?
Maciek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bar_opaq_24b.png
Type: image/png
Size: 111658 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/chameleon/attachments/20070908/e6b53ed4/bar_opaq_24b-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bar_trans_8b.png
Type: image/png
Size: 47607 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/chameleon/attachments/20070908/e6b53ed4/bar_trans_8b-0001.png
More information about the Chameleon
mailing list