processing – How to convert poor quality bitmap image to vector? – Super User
I’m designing a website for a group which has lost the original digital image for their logo. The only file they have of it is a jpg which was embedded into a word document. The image has everything possible wrong with it: I’ve currently used the wand tool to get rid of the white background, and stuck it on the website, but it’s poor quality makes it stick out like a sore thumb. I need a few different sizes of it to use, so how would I go about creating a vector image based on it? I’ve had the same problem a couple of years ago with a dozen of logos, and were able to solve it with Inkscape this way: There are 2 options that I have used, but they require software that is not on the cheap side. Adobe does provide 30 day trials on both. The imagemagick Usage docs have a good explanation of how to perform edge detection and raster to vector conversion. From the edge_vector section, which begins by saying, essentially, for best results, don’t use imagemagick: Programs that can do this include: ‘ScanFont’, ‘CorelTrace’ and ‘Streamline’ by Abobe. Most of these however cost a lot of money. But a free solution is ‘AutoTrace’ or ‘PoTrace’. Other suggestions are welcome. Both trace programs are simple to use, but requires some pre and post image setup. They have a limited number of input formats, and outputs a vector image which will create a ‘smoothed’ form of the input image. I prefer the ‘AutoTrace’ as it does not scale the resulting SVG, producing a standard line thickness, however you can not use it in a ‘pipeline’. For best results it is a good idea to ensure we only feed it a basic bitmap image, which we can ensure by thresholding the input image, while we convert it to a image format autotrace understands. I can then convert that image into a SVG vector image. Without seeing the image it’s difficult to say, but it might be quicker to just redraw it from scratch using the jpg as a guide rather than the source. You’ll also get a reference image you can use again. Obviously this might not be an option if you don’t have the tools or your drawing skills aren’t (trying to say this politely) up to the job. Source.