Bug 97256 - support for transparent backgrounds in images
Summary: support for transparent backgrounds in images
Status: RESOLVED FIXED
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
: 106978 109228 111082 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-17 17:43 UTC by Dominic Battre
Modified: 2006-12-20 20:48 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A testcase (337.20 KB, application/pdf)
2005-01-17 17:45 UTC, Dominic Battre
Details
PDF test case (93.00 KB, application/pdf)
2005-02-01 20:37 UTC, Tiago Freire
Details
Original PDF, show good, prints wrong (564.53 KB, application/pdf)
2006-12-20 20:47 UTC, Pau Tallada Crespí
Details
4-pages filtered PDF, shows wrong black background (295.96 KB, application/pdf)
2006-12-20 20:48 UTC, Pau Tallada Crespí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominic Battre 2005-01-17 17:43:06 UTC
Version:            (using KDE KDE 3.3.91)
OS:                Linux

latex-beamer (latex-beamer.sf.net) allows using colored slide backgrounds with transparent png images by specifying the image and an alpha mask like this:

\pgfdeclaremask{mymask}{graphics/myalphamask}
\pgfdeclareimage[interpolate=true,mask=mymask,width=10cm]{myimage}{graphics/myimage}

Acrobat Reader 5.0 displays these images with a transparent background (though pretty slowly). kpdf does not support it by now.
Comment 1 Dominic Battre 2005-01-17 17:45:41 UTC
Created attachment 9140 [details]
A testcase
Comment 2 Tiago Freire 2005-02-01 20:09:11 UTC
Having transparent background on images is a 'trivially expected' feature. I make pdfs with alpha-masked png files and they display correctly on Acrobat. 
Comment 3 Albert Astals Cid 2005-02-01 20:20:21 UTC
Nobody forces you to use kpdf, if you don't have anything useful to report please shut up.
Comment 4 Tiago Freire 2005-02-01 20:37:48 UTC
Created attachment 9386 [details]
PDF test case

PDF test case with two png alpha masked images, one 8 bit and another 32 bit
Comment 5 Tiago Freire 2005-02-01 20:44:53 UTC
There is no need to be rude, pal, I use KDE for my desktops and workstations and I am trying to help it to improve. I could simply go on and file a bug, but I am taking my time doing what I should, looking on the bug list and finding if it is already listed and voting on it. There is no need to disregard me like this, I am just giving a reason on why this bug is important to be solved from the business point of view. The more KDE 'just works', out of the box, the better. Users should not need to go patching up solutions from various sources, and KDE is in my opinion the best product to approach this. 
Why do you think i am taking my time to make a comment on this bug?
Maybe I just caught you on a bad hair day. 
Comment 6 Albert Astals Cid 2005-02-01 20:52:09 UTC
No need to be rude on your side either, 'trivially expected' and 'this cannot be that hard' are not friendly to people that make it best to make kpdf a good program. Thanks for not opening new bugs and voting on bugs that you feel important. 

Please, accept my apologies.
Comment 7 Tiago Freire 2005-02-01 20:53:48 UTC
All right, I re-read my first post and now it just magically seemed somewhat rude to me. I think I unintentionally deleted some line there, and I did not pay too much attention to how I was writing. I just wanted to underline the importance of the feature OK? We work with pdf documentation daily in our company and we are already using linux on our servers, but pushing into the desktop requires more support. Sorry if I seemed rude, you might receive tons of bug reports and comments, and some of them might not have a good tone like users 'demanding' features of the volunteer deveopers. I really didn't want to seem like that. 
Comment 8 Enrico Ros 2005-02-27 14:44:14 UTC
This isn't implemented in splash renderer (see Splash.cc in drawImage function where it says: "//~ this should blend if 0 < alpha < 1").
Unimplemented feature but can sure fix lot of rendering problems.
Comment 9 Albert Astals Cid 2005-06-07 21:27:19 UTC
*** Bug 106978 has been marked as a duplicate of this bug. ***
Comment 10 Pedro Venda 2005-06-07 22:47:45 UTC
the testcases of this bug report worked well on my kpdf (at least output is the same as acroread{5,7}), so I assumed this wasn't a duplicate. why do these work and mine don't?
Comment 11 Albert Astals Cid 2005-06-07 22:52:11 UTC
Is document in comment #1 of this bug working for you???? 
Comment 12 Pedro Venda 2005-06-08 00:38:51 UTC
Sorry, I was wrong. I must be really tired.

none of the testcases work well on kpdf 0.4, but I seem to remind tescase 2 working well on kpdf 0.4.1. Of course I may be wrong again.

What is the status of this bugreport? Is it being considered by the kpdf dev team? Is it hard to implement? Is there feedback?
Comment 13 Pedro Venda 2005-06-08 10:22:26 UTC
none of the testcases work on kpdf 0.4.1. worse, testcase 1 crashes it.

sorry for being misleading.
Comment 14 Sergio Cambra 2005-06-08 10:53:11 UTC
None test case crash for me, with kpdf 0.4.1 too
Comment 15 Albert Astals Cid 2005-07-18 19:24:47 UTC
*** Bug 109228 has been marked as a duplicate of this bug. ***
Comment 16 Albert Astals Cid 2005-08-18 20:44:24 UTC
Will work on KDE 3.5.0
Comment 17 Kurt Pfeifle 2005-08-18 22:08:16 UTC
Albert,

would you please be so kind and notify here as soon as code is committed that does cover that?

Just being impatient and excited, I used today's kdegraphics SVN build (finished 10 min ago -- but it is the "annotations branch" of kpdf", in case this is wrong), and the files submitted by me in the duplicate Bug #109228 didn't work...

Cheers, and thanks for the excellent work on kpdf!
Kurt
Comment 18 Albert Astals Cid 2005-08-18 22:27:06 UTC
Hi Kurt, you have to use 3.5 branch or trunk. The code is in since i made that comment. Do not say thanks to me but to xpdf author that released a new xpdf version that fixed that, i only merged the source to our tree. I've tried your files and they work here.
Comment 19 Kurt Pfeifle 2005-08-18 22:45:22 UTC
Ah... I just noticed myself that I need to use 3.5 branch now, and that "annotations" hasn't had much updates recently.

Brilliant thing! Currently rebuilding kdegraphics with kpdf-3.5, can't wait to see it finished.

OK, I modify my saying thanks to you by now explicitely including eros and Derek into it.   ;-P

Thanks again!
Cheers, Kurt
Comment 20 Albert Astals Cid 2005-08-19 16:31:38 UTC
*** Bug 111082 has been marked as a duplicate of this bug. ***
Comment 21 Pau Tallada Crespí 2006-12-20 20:45:55 UTC
Hi!

I think I've stepped into this bug too.
I had one PDF and printed to 4-pages mosaic to another PDF file.
The originals shows correctly the transparent background but prints wrong (black background). Its an OOO Impress exported to PDF.
The 4-pages mosaic surprisingly shows the background in black.!?!?

I attach them wishing to be helpful.

Keep on your fabulous work!
Comment 22 Pau Tallada Crespí 2006-12-20 20:47:06 UTC
Created attachment 18996 [details]
Original PDF, show good, prints wrong
Comment 23 Pau Tallada Crespí 2006-12-20 20:48:14 UTC
Created attachment 18997 [details]
4-pages filtered PDF, shows wrong black background