Thank you very much, Delfos.
It's good to know I did do nothing wrong.
Probably, I need to use GIF instead because the background map is
actually Google Maps.
By the way, did you try PNG24 as well? The same results?
Thanks,
Delfos, Jacob wrote:
Hi Ei,
I don't have a solution, but it might be helpful to know that this
problem has existed for quite a while in Mozilla (>2 years). It's
nothing to do with your particular setup or printers, I have had the
same issue here.
Perhaps you could merge the images into a single image? This is what I
do for my print layouts.
Regards,
Jacob
-----Original Message-----
From: UMN MapServer Users List
[mailto:[EMAIL PROTECTED] On Behalf Of Ei Fujioka
Sent: 3 May 2007 00:50
To: [email protected]
Subject: [UMN_MAPSERVER-USERS] Firefox can't print
transparent PNG image from Mapserver
Hi guys,
This may be a Firefox issue but want to know how you guys
deal with this
problem, if any, on your mapper application.
I got a weird problem that Firefox can't print a PNG image with
transparent background which is retrieved from Mapserver.
It's transparent on the browser, and so is it with [Print Preview].
But when I print this, the PNG image covers the legend and background
images (the transparent background turns to white).
To make things simple, I copied the PNG image in question along with
legend and some background map images into a quite simple HTML.
http://seamap.env.duke.edu:8888/dev/mapservice/googlemaps/test.html
Here, the combination of points and lines is the PNG with transparent
background. Should look OK on your browser.
Below is a screen shot of Firefox's [Print Preview].
http://seamap.env.duke.edu:8888/dev/cache/misc/firefox_cant_pr
int_png.jpg
Still has transparent background, but when printed, it doesn't.
IE doesn't have this problem. It prints as seen on the browser.
Do you have any idea what's wrong?
Is it just a Firefox bug? Any workaround? Should use GIF?
# I thought Firefox provided great support for PNG...
<Excerpt from Mapfile>
IMAGETYPE png
OUTPUTFORMAT
NAME png
DRIVER "GD/PNG"
MIMETYPE "image/png"
IMAGEMODE PC256
EXTENSION "png"
END
RESOLUTION 72
TRANSPARENT ON
<Mapserver version>
MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
<Environment>
ver 1.5.0.11 on Windows 2000
ver 1.5.0.11 on Windows Xp
A color printer and a B/W printer
Thanks,
Ei
--
======================
Ei Fujioka
Research Associate
Duke University
(919) 613-8021
[EMAIL PROTECTED]
======================
This email and any attachments are intended solely for the named recipient and
are confidential. The copying or distribution of them or any information they
contain by anyone other than the named recipient is prohibited. If you have
received this document in error, please notify the sender and delete all copies
from your computer system and destroy all hard copies. It is the recipient's
responsibility to check this email and any attachments to this email for
viruses before use.
--
======================
Ei Fujioka
Research Associate
Duke University
(919) 613-8021
[EMAIL PROTECTED]
======================