PUB98: Transparent, Imported PNG and TIFF Images Appear Opaque (198070)
The information in this article applies to:
This article was previously published under Q198070 SYMPTOMS
When you insert a picture from a PNG (Portable Network Graphics) or TIFF
(Tagged Image File Format) file into a publication, the picture appears
with an opaque background. This occurs even if the graphics file was saved
with a transparent background. If you insert a picture into a Word document
from the same file, it appears with a transparent background.
Conversely, if you insert a picture from a GIF (CompuServe Graphics
Interchange Format) file that was saved with a transparent background, the
picture appears in Publisher with a transparent background.
CAUSE
A transparent TIFF, PNG, or GIF file is not really transparent. It is still
a rectangular grid of dots of different colors. All the dots in the grid
have a color value assigned to them.
In the case of the GIF file format, you are limited to 256 colors per
picture. However, you can include an additional piece of information
telling another program (like a Web browser or photo-editing program) to
"ignore" dots of one particular color. This extra piece of information is
sometimes called a transparency mask or an alpha mask.
In the case of the TIFF and PNG file formats, you can have up to 16.8
million different colors in each picture. In addition, you can include
additional information telling a Web browser or photo-editing program to
treat each of the dots as opaque, semi-transparent, or fully transparent
(256 possible levels of transparency). This type of extra information is
sometimes called a channel mask or an alpha channel.
When Publisher inserts a picture from a file, it obeys the information
contained in a transparency mask. However, it ignores the information in a
channel mask.
WORKAROUND
You can use Microsoft Draw 98 (which ships with Publisher) to insert a
picture from PNG and TIFF image files and retain the picture's
transparency.
- In Publisher, on the Insert menu, point to Picture and then click New
Drawing. This opens a hatched drawing area in your publication and
changes the menus and toolbars to those of Microsoft Draw.
- On the Insert menu, point to Picture and then click From File.
- Browse to the folder that contains the PNG or TIFF image you want to
import.
- Select the file and then click Open. This imports the picture and
places it in the hatched drawing area in your publication.
- If the hatched drawing area is not big enough to hold the entire
picture, you can enlarge the drawing area by dragging its corner
handles. If the hatched drawing area is too big, you can also reduce
the size of the drawing area by dragging its corner handles.
- When the picture fits properly in the hatched drawing area, click
outside the drawing area. This closes Microsoft Draw and changes the
menus and toolbars back to those of Publisher.
The picture should now appear in Publisher and retain its transparent
background.
NOTE: Pictures inserted from transparent TIFF and PNG files do not print
correctly to many types of printers, especially those that use the
PostScript page description language. This is not a problem unique to
Publisher; it happens with many other programs as well.
Modification Type: | Major | Last Reviewed: | 11/9/1999 |
---|
Keywords: | kbprb KB198070 |
---|
|