Issue 18723 - transparency converted to pink when exporting to pdf
Summary: transparency converted to pink when exporting to pdf
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: OOo 2.0
Assignee: philipp.lohmann
QA Contact: issues@gsl
URL:
Keywords: oooqa
Depends on: 10388
Blocks:
  Show dependency tree
 
Reported: 2003-08-27 11:13 UTC by raphaelgoubet
Modified: 2004-02-03 12:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The attached zip contains an example sxw file and the PDF export illustrating the bug (34.58 KB, application/zip)
2003-08-27 11:17 UTC, raphaelgoubet
no flags Details
Screenshot of the reported bug (20.30 KB, image/png)
2003-08-28 07:39 UTC, raphaelgoubet
no flags Details
test.pdf viewed with different applications that handle the pink more or less as transparent (61.24 KB, image/png)
2003-08-31 19:52 UTC, lohmaier
no flags Details
the same in acroread with transparency grid enabled: the surroundings of the image are correctly displayed as transparent (41.87 KB, image/png)
2003-08-31 19:54 UTC, lohmaier
no flags Details
comparison of jpeg/jpeg/png (48.88 KB, image/png)
2004-02-03 12:37 UTC, pr0net
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description raphaelgoubet 2003-08-27 11:13:54 UTC
In the attached example, images are left out of the PDF export.
Comment 1 raphaelgoubet 2003-08-27 11:17:24 UTC
Created attachment 8805 [details]
The attached zip contains an example sxw file and the PDF export illustrating the bug
Comment 2 tamblyne 2003-08-28 04:22:07 UTC
Unable to confirm reported behavior.  Opening OOo document and PDF
document provided, the images are present in both.  

WinXPPro/1.1rc3

Comment 3 askoning 2003-08-28 06:59:49 UTC
Unable to confirm _reported_ behaviour (1.1RC3/Redhat 9).
However I do notice that the transparency in the images is converted
to purple. (A bug seen more in programs unable to handle transparency).
Comment 4 raphaelgoubet 2003-08-28 07:39:07 UTC
Created attachment 8839 [details]
Screenshot of the reported bug
Comment 5 raphaelgoubet 2003-08-28 07:39:27 UTC
Please check attached screenshot.
Comment 6 lohmaier 2003-08-31 19:51:27 UTC
changed summary (original: Images left ou in PDF export)
This is related to issue 10388 since jpeg cannot handle transparency.

The color is used by many programs to communicate to the user: "This
area is transparent, but I don't know what to display as background.
To make it easy to distinguish from the real image, I use a seldomly
used color"
So these programs actually "know of" transparency but lack of the
background. Some can be configured to use another color or some kind
of grid (like the gimp).

This shows in the pdf contained in the attached zip when viewed with
different applications. (will attach screenshots)
XPDF: doesn't change the image -> displays transparent area as pink
ggv: does a good job recognizing transparent parts -> no pink visible
acroread: not as good as ggv -> pink borders around image But
recognizes the parts as transparent: check "[x] Display Transparency
Grid" in the preferences.

I tend to resolving this as worksforme, since this is the best thing
OOo can do at the moment. But for the moment, I'm confirming the issue.
Comment 7 lohmaier 2003-08-31 19:52:41 UTC
Created attachment 8906 [details]
test.pdf viewed with different applications that handle the pink more or less as transparent
Comment 8 lohmaier 2003-08-31 19:54:04 UTC
Created attachment 8907 [details]
the same in acroread with transparency grid enabled: the surroundings of the image are correctly displayed as transparent
Comment 9 craigaa 2003-09-01 05:26:07 UTC
I have found a similar issue with transparent PNG's.

When exporting a document with a transparent PNG, the entire
background is rendered in black in xpdf and ggv.

The reasons for this are probably the same as the rest of this issue.

Craig A. Adams
Comment 10 christof.pintaske 2003-09-01 11:51:54 UTC
cp->pl: i wouldn't assume that acroread is completeley unable to
handle transparency ? please have a look if there's an issue for us.
Comment 11 philipp.lohmann 2003-09-01 14:57:41 UTC
Actually the transparent image is put into the PDF file with a 1-bit
mask that if it were applied would mask out the purple portions.
Acroread does this, but doesn't scale the mask exactly the same way it
does the image (that's why the purple edges get smaller if you apply a
higher zoom factor); this artifact is vanishes as soon as you switch
off "smooth images" in the settings of acroread.

xpdf does not seem to handle masks at all as far as i can see; that
should be fixed in xpdf, no doubt.

Since the PDF does exactly what it's supposed to, i think there's no
OOo issue left.
Comment 12 philipp.lohmann 2003-09-02 16:34:50 UTC
I hear no disagreement, so i'll close the issue
Comment 13 pr0net 2004-02-03 12:37:22 UTC
Created attachment 12855 [details]
comparison of jpeg/jpeg/png