Removing Background

Post questions on how to use or achieve an effect in Inkscape.
paterson29
Posts: 2
Joined: Tue Mar 03, 2015 4:44 am

Removing Background

Postby paterson29 » Tue Mar 03, 2015 5:00 am

I'm trying to remove the background to a simple logo, using Path > Trace Bitmap with no success. I can't even see the preview window or use the Update function. What am I doing wrong? I'm using Inkscape 0.48.5 r10040 on Windows 8.1.

Also is there a simple method of removing the background to a 2 or 3 character logo? Or would I have to remove the background to each character individually and then join them back together?

Tom Paterson

Janne
Posts: 228
Joined: Wed Oct 29, 2014 4:15 am

Re: Removing Background

Postby Janne » Tue Mar 03, 2015 7:13 am

Did you select the bitmap before trying to trace it?

With 2 or 3 characters you mean text and text only?

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Removing Background

Postby ragstian » Tue Mar 03, 2015 7:22 am

Hi.

An image is worth a thousand words. Can you provide a link to your image? (or something similar)
Removing the background from a bitmap is relatively simple if your letters have sharp edges and/or good color difference.
See [urlhttp://tavmjong.free.fr/INKSCAPE/MANUAL/html/ATracingExample.html]this section[/url] in the manual for a quick tutorial.

For just a few letters it's normally just as quick to trace the outline of the letters using the bezier tool.
See this post for an example; http://www.inkscapeforum.com/viewtopic.php?f=5&t=17472&hilit=hand+trace
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Removing Background

Postby Espermaschine » Tue Mar 03, 2015 12:57 pm

removing the background of an image is an art and a science :D

there are several techniques to achieve your goal, and which one to use depends on the image

one way to use Inkscape is drawing a path around the object you want to render and then use a clipping mask or even import the path into Gimp and use it for a layermask

another way is to do it in Gimp, and ofnuts, from gimpforums, has written a good tutorial on the subject (especially when it comes to how to preserve the antialiasing):
http://gimpforums.com/thread-proper-sub ... d-painting

when it comes to logos, i like to identify the font that was used in the original image, find it, and reproduce the whole image as good as possible
you can use 'whatthefont' to identify the typeface by uploading the image and then find the fontname with a googlesearch
https://www.myfonts.com/WhatTheFont/

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

Re: Removing Background

Postby brynn » Wed Mar 04, 2015 7:26 am

The Preview Update is broken for the Brightness Cutoff option in 0.48.x. Upgrade to 0.91 to get the preview back, or use a different trace option.

As the others have said, it depends on the logo, as well as your goals, as well as what kind of skills you have, or want to spend time learning, as to how you remove the background.

It's possible to do it with Trace Bitmap, but you have to use a Mulitple Scan option (Brightness Cutoff is a single scan) and check Remove Background. However, your logo will have become a vector image made up of 2 or more paths, and is no longer a raster image.

You'll need to give us a lot more details, before we can make suggestions. For 2 or 3 characters, I think I'd just use the Text tool and type a new logo!

paterson29
Posts: 2
Joined: Tue Mar 03, 2015 4:44 am

Re: Removing Background

Postby paterson29 » Thu Mar 05, 2015 9:05 am

Thanks for your responses.

This is possibly ridiculously simple for you experts, but all I am trying to do is to extract the red bits from the attached image and use them in various web pages and possibly business cards. Is it possible to store and use the image with a transparent background?

Tom Paterson
Attachments
image5137.png
image5137.png (140.49 KiB) Viewed 16280 times

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Removing Background

Postby ragstian » Thu Mar 05, 2015 9:31 am

Hi.

Import the image,
set image opacity to 30-40%,
use the bezier/line ( Shift F6 ) tool to draw an outline with straight lines only.

Image

Once done use the node/path edit tool ( F2 ) to adjust the curves - this was done in 5 min, you can adjust the nodes for an even better fit.
SVG file:
SVG Image

Right Click Image to download the SVG file.

To store the image with transparent background just EXPORT as PNG.
Make sure that you don't open and save the PNG file in Windos Paint - transparency will be lost.
Transparent PNG:
Image
Last edited by ragstian on Thu Mar 05, 2015 10:12 am, edited 6 times in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Removing Background

Postby Lazur » Thu Mar 05, 2015 9:37 am

This was done with the trace bitmap option after a bit of tweaking in gimp.

Zipping and uploading here took the same amount of time.

min1-2-3.zip
(142.68 KiB) Downloaded 237 times

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Removing Background

Postby Espermaschine » Thu Mar 05, 2015 11:18 am

or get the font here:
http://www.azfonts.net/load_font/script_mt_bold.html

its 'Script MT bold'

(beware of the licence terms, when you want to use it for business)
Attachments
rect8072.png
rect8072.png (11.82 KiB) Viewed 16246 times


Return to “Help with using Inkscape”