Jasper van de Gronde wrote:
Marco Steinacher wrote:
Dear Inkscape Developers, ... To facilitate this task I have automated this workaround (removing transparency by adding shapes covering the overlapping areas with the corresponding mixed color). So far I am quite happy with that solution, although it obviously does not work for gradients etc., and I would like to include it in the official Inkscape version.
Very cool :) But why does it "obviously" not work for gradients? As long as the transparency doesn't vary over the gradient it shouldn't be too difficult, and if it does you could try adding stops to keep the appearance more or less the same.
Yes, you're right. It's not obvious and it should be possible to do. I was a bit unspecific about the shortcomings of the current version. Currently the method only works for shapes filled with flat color. There are also some problems regarding strokes (and possibly other things I don't know of yet...) I have to address.
I intend to improve the current (incomplete) version, which already is very helpful for my specific use but probably not for the general user. I just wanted to know whether it makes sense to invest more time and discuss some basic questions.
- Where would you place this function in the UI? (For my personal use I
have added the item "Remove Transparency" to the Path menu, which probably is not appropriate.)
Perhaps just do it automatically at export? (Possibly adding some hard to find checkbox to disable it, or make it depend on the background colour, if anyone feels the need.) I mean, why would anyone NOT want to do this? As far as I'm concerned it's just a way to make the EPS export as correct as possible. Or am I missing something?
Yes, I thought of this possibility too. However, I haven't look at the export code and have no clue of the concepts yet.
Explicitly exposing it to the user seems like a bit of a cludge, it would just make the document more complex and harder to manage, while keeping the appearance the same.
I agree. The only reason I currently see is to be able to fix some things manually before exporting to PostScript. However, this can still be done by opening and editing the exported EPS file, when the method is applied automatically at exprt.
Marco