img2bez: Raster-to-Vector Autotracing for Type Design
Eli Heuer
Posts: 4
https://elih.net/blog/img2bez/
I have a new blog post draft explaining the img2bez Rust crate I made for my Runebender forks and the open-source font AI solo startup/project I am working on. This is still a draft I am editing, and I will be running eval loops with AI agents all weekend improving the algorithms. I am posting it here looking for feedback before I publish the final version Monday, any substantial feedback will be credited at the end of the blog post.
I have a new blog post draft explaining the img2bez Rust crate I made for my Runebender forks and the open-source font AI solo startup/project I am working on. This is still a draft I am editing, and I will be running eval loops with AI agents all weekend improving the algorithms. I am posting it here looking for feedback before I publish the final version Monday, any substantial feedback will be credited at the end of the blog post.
I think it is a real breakthrough in this space and gets better results than any existing procedural autotracer, but I am looking for and open to criticism and feedback about why this is not better than existing solutions.
The blog post has an interactive demo of img2bez, compiled from Rust to WASM. So you can try it right in the blog post and even drag your own glyph images into the demo to trace them.
Tagged:
1
Comments
-
Hi Eli. Do you have any recommendations for input image to get best results. I did a quick test with this image:
and the results are pretty bad:
0 -
I've tried it on a few glyphs and I'm not sure I'm seeing it significantly improve results over the native potrace. is it trained to work on specific types of fonts? Here is a comparison of the native traced glyphs and then the img2bez traced glyph below:


Here's also a comparison of the two fonts (first traced with potrace and some cleanup, second traced with img2bez)
1. https://static.mixfont.com/assets/20260626-184828-gothicgumdrop-regular-blz2sd9n.ttf
2. https://static.mixfont.com/assets/20260626-184825-gothicgumdrop-regular-img2bez-opl2uqy9.ttf
I'm personally very interested in this as my recent font submission to Google fonts was denied not due to AI generation policies or the design of the font but rather due to outline tracing quality. If there was a way to improve the tracing so that the submission could be improved, it would be very helpful.0 -
While neither outline is great, the one produced by Eli’s tool has done a better job placing on curve points at extrema, while the potrace example has long and inflected curves without any on curve points, e.g.
My impression is that Eli’s approach to structured outlines is heading in the right direction, but still suffering in the shape fidelity department as per my test.
0
Categories
- All Categories
- 47 Introductions
- 3.9K Typeface Design
- 493 Type Design Critiques
- 575 Type Design Software
- 1.1K Type Design Technique & Theory
- 668 Type Business
- 882 Font Technology
- 29 Punchcutting
- 536 Typography
- 124 Type Education
- 331 Type History
- 81 Type Resources
- 112 Lettering and Calligraphy
- 32 Lettering Critiques
- 80 Lettering Technique & Theory
- 565 Announcements
- 98 Events
- 116 Job Postings
- 170 Type Releases
- 180 Miscellaneous News
- 270 About TypeDrawers
- 54 TypeDrawers Announcements
- 114 Suggestions and Bug Reports
