How to Convert/Recreate PNG Logos to SVG With Inkscape

Bitmaps tend to have noise and imperfections, especially if they’ve been generated by AI. Vector graphics, on the other hand, trace the outline of elements with elegant curves. Converting from the real world of bitmaps to the ideal world of vectors requires ignoring the actual pixels and seeing an idealized structure instead. That is not something automated conversion tools can do today, at least not those I’ve tested. Instead of converting a PNG to SVG you should, therefore, recreate it in a vector graphics image editor. This article shows how to do that in the free Inkscape.

Situation

Please note that I’m in no way a computer graphics professional and only marginally familiar with Inkscape. However, the process I’m describing below worked well enough for me to warrant documentation for my future self and potentially others who are in a similar situation I was in:

I had used AI to generate a logo for an open source project I’m working on. This gave me a medium-sized PNG with rather a lot of artifacts that either looked like noise from lossy compression (although PNGs are compressed losslessly) or were imperfections in the logo’s outline. As I needed a higher-resolution version of the logo, any kind of upscaling was out of the question. The image quality simply wasn’t good enough. So conversion to SVG was on the agenda.

I tried several automated conversion services online as well as Inkscape’s “Trace Bitmap” feature. None of them produced even remotely acceptable results that might have been useful as a basis for manual correction. So I turned to recreation in Inkscape instead.

Recreating Bitmap Logos in Inkscape

Process

I’ve used the following simple process to recreate a PNG logo as a vector graphic in Inkscape:

  1. Start Inkscape with an empty document.
  2. Open the source PNG version of the logo to be converted.
  3. Open Layers and Objects (Ctrl + Shift + l), select the entire image and set its opacity to 50% in the lower-left corner.
  4. Identify individual regions of the logo that can be drawn as one path. Focus on the broad outline. It’s easy to cut away parts later.
  5. Draw the outline of a logo region as described below.
  6. Remove sections from the outline as described below.
  7. Fill the new path object with a color of your choice.
  8. Repeat the above process for other regions of the logo.
  9. Delete the image1 layer.
  10. Export your finalized logo to PNG (Ctrl + Shift + e) in any required sizes.
  11. Save the drawing as Inkscape SVG.

Drawing Logo Regions

This is how I drew individual regions of the logo:

  • Select the Pen tool (b), which draws straight lines and Bézier curves.
  • Start drawing the logo outline as straight lines by setting points at strategic locations.
    • Press Ctrl for straight lines.
    • Use as few points as possible.
    • Make sure to close the path.
  • Switch to the Node tool (n) to edit the path you created.
  • Work on one path segment after another.
  • Click and drag a segment to convert it from a straight line to a curve.
  • Selecting a point makes handles appear. Use them on either end of a curve to bend the curve so that it matches the logo’s outline.
  • Where necessary, add additional points by double-clicking the curve.

Removing Sections from a Logo Region

To remove (cut away) sections from a logo region:

  • Select the Pen tool (b) to draw a new shape corresponding to the logo section you want to remove from a larger region path object.
  • Modify the section path with the Node tool (n) as required.
  • Once you’re happy with the section, go to Layers and Objects (Ctrl + Shift + l), making sure that the new section path is directly above the larger region path (from which you want to cut away).
  • Select both paths and click Path > Difference (Ctrl + Shift + -).

Comments

Related Posts

Free Services to Send Files End-To-End Encrypted

Free Services to Send Files End-To-End Encrypted
There are a number of services for sending files to someone else that are both free and secure. This post provides an overview. What is End-to-End Encrypted File Sending? File sending services work similarly to file synchronization & sharing services, except there is no synchronization part. You navigate to the service’s website, select the files you want to send, and they’re encrypted on your machine while being uploaded. You get a link to be shared with the files’ recipient. The service stores the files for a certain time, typically seven days. That is how long the link remains valid. It is important to note that end-to-end encrypted sending services cannot decipher your data, for them it’s just meaningless bits.
Applications

Latest Posts

Fast & Silent 5 Watt PC: Minimizing Idle Power Usage

Fast & Silent 5 Watt PC: Minimizing Idle Power Usage
This micro-series explains how to turn the Lenovo ThinkCentre M90t Gen 6 into a smart workstation that consumes only 5 Watts when idle but reaches top Cinebench scores while staying almost imperceptibly silent. In the first post, I showed how to silence the machine by replacing and adding to Lenovo’s CPU cooler. In this second post, I’m listing the exact configuration that achieves the lofty goal of combining minimal idle power consumption with top Cinebench scores.
Hardware

Fast & Silent 5 Watt PC: Lenovo ThinkCentre M90t Modding

Fast & Silent 5 Watt PC: Lenovo ThinkCentre M90t Modding
This micro-series explains how to turn the Lenovo ThinkCentre M90t Gen 6 into a smart workstation that consumes only 5 Watts when idle but reaches top Cinebench scores while staying almost imperceptibly silent. In this first post, I’m showing how to silence the machine by replacing and adding to Lenovo’s CPU cooler. In a second post, I’m listing the exact configuration that achieves the lofty goal of combining minimal idle power consumption with top Cinebench scores.
Hardware