[Chameleon] can't Print in 24bit with a transparent scalebar

William Bronsema wbronsema at dmsolutions.ca
Mon Sep 10 10:28:32 EDT 2007


Hi Maciej,

The bug #463 referred to here is:

http://trac.osgeo.org/mapserver/ticket/463 

It is a mapserver bug that appears to be fixed.  Chameleon may have to be
updated to accommodate this.

Cheers,
Bill

William Bronsema
Senior Applications Specialist
DM Solutions Group Inc.

___________________________________
http://www.dmsolutions.ca

-----Original Message-----
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

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



More information about the Chameleon mailing list