Bug 690192 - no transparent pixels in pngalpha
Summary: no transparent pixels in pngalpha
Status: RESOLVED WONTFIX
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.71
Hardware: PC Windows 2000
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-08 06:40 UTC by Rolf Becker
Modified: 2010-05-08 23:27 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
PDF source (9.26 KB, application/pdf)
2008-12-08 06:42 UTC, Rolf Becker
Details
created from weihnachtsstern.pdf (1.64 KB, image/png)
2008-12-08 06:43 UTC, Rolf Becker
Details
source created from weihnachtsstern.pdf (19.66 KB, application/postscript)
2008-12-08 06:45 UTC, Rolf Becker
Details
created from weihnachtsstern.eps (3.10 KB, image/png)
2008-12-08 06:46 UTC, Rolf Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Becker 2008-12-08 06:40:48 UTC
My image pdfstern.png, created from weihnachtsstern.pdf by calling gswin32c
-sDEVICE=pngalpha, has an alpha channel with all values equal 255, i. e. no
transparency.
After converting weihnachtsstern.pdf to weihnachtsstern.eps (by pdftops), I
created epsstern.png, where the outside of the star has alpha values of zero.
The version 8.62 has the same behavior.
Comment 1 Rolf Becker 2008-12-08 06:42:28 UTC
Created attachment 4641 [details]
PDF source
Comment 2 Rolf Becker 2008-12-08 06:43:46 UTC
Created attachment 4642 [details]
created from weihnachtsstern.pdf
Comment 3 Rolf Becker 2008-12-08 06:45:39 UTC
Created attachment 4643 [details]
source created from weihnachtsstern.pdf
Comment 4 Rolf Becker 2008-12-08 06:46:50 UTC
Created attachment 4644 [details]
created from weihnachtsstern.eps
Comment 5 Ken Sharp 2010-05-07 08:49:38 UTC
This does not seem to be a PDF writer problem. I don't see any use of the pdfwrite device here at all.
Comment 6 Rolf Becker 2010-05-07 09:56:11 UTC
sorry, component is PDF Interpreter, not PDF Writer.
The problem persists in 8.71.
Comment 7 Ken Sharp 2010-05-07 10:09:04 UTC
Not a problem, but because it was assigned to me I'm afraid it has not had the attention it should have. I will reassign it to the proper owner.
Comment 8 Alex Cherepanov 2010-05-08 23:27:28 UTC
The PDF file uses PDF transparency, which is implemented by rendering
a part of the image into a buffer and blending it with the background.
The low level raster device such as pngalpha receives the buffer that
contains no information about marked and unmarked pixels.

The EPS file has no transparency and pngalpha device can detect
marked and unmarked pixels.

You can switch transparency support off with -dNOTRANSPARENCY option
and get file similar to the file generated from EPS.

Unfortunately, tracking unmarked pixels in transparency subsystem
is a big project that benefits few devices and we don't have
resources to address it now.