Pasting PNGs with transparency

Discuss the word processor
Post Reply
Jamesff
Posts: 15
Joined: Sun Feb 03, 2008 10:05 am

Pasting PNGs with transparency

Post by Jamesff »

Why, when I paste a PNG containing transparent pixels from the clipboard into Writer, do the transparent pixels come out black???? (I use OpenOffice version 2.2)
OpenOffice 3.3 on Wndows XP
User avatar
Bhikkhu Pesala
Posts: 1253
Joined: Mon Oct 08, 2007 1:27 am

Re: Pasting PNGs with transparency

Post by Bhikkhu Pesala »

If I'm not mistaken it is because the format on the Windows clipboard is a Device Independent Bitmap, not a transparent PNG. The colour will depend on the colour that was transparent in the original PNG.

To confirm this, in IrfanView, set the main window colour to yellow (or another colour), load a transparent PNG and the background will be yellow (or another colour). Copy and paste into any application and the background will be yellow (or another colour), not black.

To place transparent PNG images in OpenOffice, use Insert from file.
Idiot Compassion
LibreOffice 6.0.4 on Windows 10
Post Reply