Mobile app version of vmapp.org
Login or Join
Barnes313

: How do I trace this bitmap with JPEG artifacts? I'm attempting to trace the following bitmap: Image by ACStewart from the web comic "Behind the GIFs" As humans, we can clearly see this was

@Barnes313

Posted in: #ImageTrace #Inkscape #Jpg #Vector

I'm attempting to trace the following bitmap:



Image by ACStewart from the web comic "Behind the GIFs"

As humans, we can clearly see this was originally a vector, and should trace well. The problem is, the JPEG artifacting is causing Inkscape's "Trace Bitmap" code to think the clear black line against the white background as having a gray strip and even a bit of blue running around it.



Are there any settings to tweak or any way to trick Inkscape into seeing the lossy JPEG as the vector image it really is?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes313

2 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah814

The bad news: With automatic tracing algorithms alone, you won't be able to get a clean result. There will always be noise.

The good news: If you're willing to invest just a bit of effort in manual cleanup, you can get a very decent vectorized reconstruction. This is what I was able to get in roughly 5 minutes:



(Click on the image for a high-res version or jump straight to the SVG at the bottom.)

Here's what I did:


Run "Trace Bitmap" on the original twice, once using "Brightness Cutoff" at 0.45 and once using "Multiple scans: Colors" with 6 scans.




In the "Mode" tab, make sure the fields "Smooth", "Stack scans" and "Remove background" are all unchecked. These were my "Options" for both traces:




Put the result of the "Brightness Cutoff" on the side. It is actually really good and gives you all the blacks (as pointed out by Juancho). So all that's missing is the colored areas.
Separate the 6 color layers, delete the ones that contain just noise, clean the remaining layers until you're left with the missing big colored patches:




Hint: To delete the noise, enter "Node selection mode" (F2), select a bunch of noisy nodes by dragging a box around them and delete them with Ctrl+Del.


Align the patches. If some patches seem to have been "thinned out" slightly during tracing, you can "fatten them up" again with "Path" > "Outset" (or Ctrl+)). Finally, group the result.


And there you have your reconstructed SVG:
www.klaasnotfound.com/assets/content/HowToBeChill_vectorized.svg
Right-click and "Save image as..." on the above image or click here to download the standalone SVG file.

10% popularity Vote Up Vote Down


 

@Ravi4787994

If you trace the bitmap with the Brightness Cutoff algorithm and threshold 0.3, you will get a nice rendering of the black strokes only.

This will get most of the job done.

Another trace with a higher cutoff will get you the whole head included. You can colour this second trace grey and layer it below the first black trace.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme