This way, you won't suffer the loss of precision in corners and other small details that is otherwise nearly inevitable when retracing a low-resolution bitmap back into a vector image. Alternatively, for images with a small number of distinct colors (but potentially complex boundaries between them), you may get good results by first separating the different colors in a raster image editor (like GIMP) into separate images, tracing each of them in monochrome and then combining the pieces.įinally, if your image is indeed just text in a standard font with a small number of custom flourishes, you may get best results by retyping the text in the same font, converting it into a path and adding the flourishes manually. This works best for images with simple color patterns, like a linear gradient running through the entire image. The quality of the results can be variable, especially for images with lots of gradients, anti-aliasing or compression artifacts, but for a simple image with just a bunch of different colored letters, it should work pretty well.Īnother option would be to trace the image in black and white, and then recolor it in Inkscape. Just select "Colors" in the Trace Bitmap dialog, and adjust the number of scans to match the number of colors in the image. Again, the basic problem with color separation is that "removing background" removes some near-white colors along with pure white.You totally can trace a color image in Inkscape. I also found that the above method produced a slightly cleaner version of the first, more colorful background (USGS quad map), eliminating some slight off-white streakiness. Increasing the number of colors from 32 to 64 gave smaller transparent areas, but some transparent areas nonetheless.īut I was able to produce a successful result for the latter case by using a different method, first using "Trace Bitmap" on the image (without any color substitution), then importing an alpha mask of the image and tracing it, filling with white, then moving it behind all other objects and removing the imported graphic. So do not think it possible to use this technique with an image of near-white grayish colors, since "removing background" removes more than just pure white, also removing slightly off-white colors. I also tried using magenta as being very unlike any color in map, but again got transparent areas. unable to find a successful off-white color) for a different map background with much more subdued colors, near-white in many places (USGS National Map, vice previous USGS Quad map) - going down to f0f0f0 (which was same as some areas of map itself) still gave transparent areas. Also, this result depended upon the "Smooth" checkbox - "f7f7f7" did not work when it was checked.įYI for others trying method two, I was unable to obtain a successful result (ie. the slightly whiter "fafafa" did not work, again giving transparent areas (for 32 colors - I assume this depends on number of colors requested). Finding the whitest successful value required some experimentation - i.e. Using "method two" from Billy Kerr succeeded after changing the "near-white" to "f7f7f7". Sorry for the tardy response, took awhile to work through this. PS: white area need to be white so logo can be placed a non-white background So cannot find a way to create a vector image from this logo containing "white" (or "near-white") and am hoping some more experienced user can provide a method of doing so. But to my surprise, the near-white area was again not traced, resulting in a transparent area. treat "white" as an actual color to be traced ala all the other colors - but could not find anything that worked.įinally I altered the PNG being imported to replace all its "white" #ffffff with near-white #fefefe, thinking that would not be considered "background". I tried many different variations hoping to stumble up something which which fix this behaviour, i.e. I used an editor to remove the graphic section, but found the resulting SVG then displays the original "white" areas as transparent, not white. (I had been expecting it to be removed with selection of "Remove background"). The white areas still appeared white - but when I saved as a SVG and examined with editor I saw that the graphic is still included. This is my first use of inkscape.įollowing other on-line procedures, after importing PNG I used 'Select All' and 'Trace Bitmap' with "Multiple scans: Colors: 32", "Stack scans", and "Remove background". Am trying to create a vector image since many places prefer such for inclusion with other logos, etc. I have a PNG logo on a transparent background which has areas of pure white (#ffffff) and also pure black in addition to a wide assortment of other colors (logo includes a topo map).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |