How to remove transparency

Post questions on how to use or achieve an effect in Inkscape.
Theo Moore
Posts: 9
Joined: Thu Jun 05, 2008 6:31 am

How to remove transparency

Postby Theo Moore » Wed Feb 29, 2012 12:50 pm

I have this image file, which has a very slight transparency.

You can see the top surface has some transparency. Eventually, I'll need to save this as an EPS file, which means I need to flatten the transparency. I'd be super grateful if someone could have a look at my SVG file, if they knew a quick way of having the same image, but with no need for transparency.
Attachments
test.svg
The SVG file
(47.75 KiB) Downloaded 356 times
Last edited by Theo Moore on Fri Mar 16, 2012 4:42 am, edited 2 times in total.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to remove transparency

Postby brynn » Wed Feb 29, 2012 4:55 pm

Someone else may have other ideas. But here's what I'm thinking. When I select the object which currently is partially transparent, I see that it has nodes already at the proper places to do this. I would use node editing to break that single object into 3 distinct objects -- the top half which will have a white fill; the small triangle at the bottom left corner will also have a white fill; and the remaining object of the 3 will have a solid fill. You can use the Dropper tool (in Pick mode) to give it the proper color. First select that object, then place the Dropper tool over it and click once. It might appear not to have the proper color, at first. But you will probably see that In the Fill and Stroke dialog, that it still has an Opacity value less than 100. Once you slide it to 100%, it should have the proper color.

Let me know if you need instructions for the node editing :D

Theo Moore
Posts: 9
Joined: Thu Jun 05, 2008 6:31 am

Re: How to remove transparency

Postby Theo Moore » Wed Feb 29, 2012 10:51 pm

brynn wrote:Let me know if you need instructions for the node editing :D


Brynn, you caught me! :(

As you noticed, I already tried to place nodes at the right places in the SVG file to implement the idea you suggested. However, I couldn't figure out how to do the node editing so as to break up the closed path into three different closed paths with two different colors.

Can you provide those instructions for the node editing?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to remove transparency

Postby brynn » Thu Mar 01, 2012 3:06 pm

Not a problem at all!
It's hard to know what someone else knows about Inkscape by looking at an image.

You've already placed the nodes, so the next step will be #1:
1 - Select all those nodes (using Shift) (total of 4 nodes), but don't select the ones in the corners
2 - In Node tool control bar, click "Break path at selected nodes" button (4th from left)
3 - Path menu > Break apart
4 - Deselect everything
5 - Select one of the 3 new pieces
6 - Select 2 end nodes (these will be where you broke the path in step 2)
7 - In Node tool control bar, click "Join selected end nodes with a new segment"
8 - Do step 5 through 7 for all 3 pieces.
9 - Give them each the proper color, using the info in my original reply.
10 - You will probably notice that these new pieces are lying on top of some of the other elements in the image. Now you need the Selection tool. Select them one at a time, then use either Object menu > Raise, Lower, etc. or buttons on the Selection tool control bar to move them below, as appropriate.

Let us know how it goes :D

Theo Moore
Posts: 9
Joined: Thu Jun 05, 2008 6:31 am

Re: How to remove transparency

Postby Theo Moore » Fri Mar 16, 2012 1:28 am

Dear brynn,

This is coming two weeks late, but I finally had time to address the transparency issue. Thanks for your step-by-step guide---I'll no doubt return to the guide when I have to do it again!

Also: An automated transparency-removal tool (or flattening tool) would be incredibly helpful in Inkscape.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to remove transparency

Postby brynn » Fri Mar 16, 2012 3:56 pm

:oops: You know, I didn't think about this at the time. But just converting to EPS would remove the transparency! It would automatically chose the right color. No need to bother with nodes at all :D

kolega
Posts: 2
Joined: Mon Jan 23, 2017 3:50 am

Re: How to remove transparency

Postby kolega » Mon Jan 23, 2017 3:52 am

Hello, I would suggess editing it in some Editor. It is simple xml file. You just need to change

Code: Select all

fill-opacity="something"
to

Code: Select all

fill-opacity="1.00"
using the tool Search and replace

I know this is old, but it is hint for those who come from Google as I did

kolega
Posts: 2
Joined: Mon Jan 23, 2017 3:50 am

Re: How to remove transparency

Postby kolega » Mon Jan 23, 2017 3:57 am

I would suggest right clicking on item and using "select all items with same fill and border"

Always you can open .svg file in a text editor (or coding IDE), where you can use search and replace.


Return to “Help with using Inkscape”