<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="https://nizzlay.com/feed_style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <tabi:metadata xmlns:tabi="https://github.com/welpo/tabi">
        <tabi:base_url>https://nizzlay.com</tabi:base_url>
        <tabi:separator>
            •
        </tabi:separator>
        <tabi:about_feeds>
            This is a web feed, also known as an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It's free.
        </tabi:about_feeds>
        <tabi:visit_the_site>
            Visit website
        </tabi:visit_the_site>
        <tabi:recent_posts>
            Recent posts
        </tabi:recent_posts>
        <tabi:last_updated_on>
            Updated on $DATE
        </tabi:last_updated_on>
        <tabi:default_theme>dark</tabi:default_theme>
        <tabi:post_listing_date>both</tabi:post_listing_date>
        <tabi:current_section>AI</tabi:current_section>
    </tabi:metadata><link rel="extra-stylesheet" href="https://nizzlay.com/skins/nizzlay.css?h=2a5e30e79e03c60ce73e" /><title>Nizzlay - AI</title>
        <subtitle>I&#39;m fascinated by *efficiency*, in a pretty broad sense of the word. You can name it tech, productivity, automation, flip-thinking, friction, whatever… I&#39;ll ramble about all of them. And I&#39;m opinionated too, even about stuff that&#39;s not efficiency related.</subtitle>
    <link href="https://nizzlay.com/tags/ai/atom.xml" rel="self" type="application/atom+xml"/>
    <link href="https://nizzlay.com/tags/ai/" rel="alternate" type="text/html"/>
    <generator uri="https://www.getzola.org/">Zola</generator><updated>2026-11-14T00:00:00+00:00</updated><id>https://nizzlay.com/tags/ai/atom.xml</id><entry xml:lang="en">
        <title>Finally, an SVG</title>
        <published>2026-11-14T00:00:00+00:00</published>
        <updated>2026-11-14T00:00:00+00:00</updated>
        <author>
            <name>Nizzlay</name>
        </author>
        <link rel="alternate" href="https://nizzlay.com/blog/finally-an-svg/" type="text/html"/>
        <id>https://nizzlay.com/blog/finally-an-svg/</id>
        
            <content type="html">&lt;p&gt;This is probably one of the nerdiest things to care about: a file format. So I guess I’m that kind of nerd, since care I did&lt;sup class=&quot;footnote-reference&quot; id=&quot;fr-1-1&quot;&gt;&lt;a href=&quot;https://nizzlay.com/blog/finally-an-svg/#fn-1&quot;&gt;[1]&lt;/a&gt;&lt;/sup&gt;. It had been bothering me for ages. Not badly enough that it kept me up at night, but still.. I kept coming back to it from time to time.&lt;/p&gt;
&lt;p&gt;My profile picture only ever existed as pixels. Now, finally, it’s an SVG.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/img/profile.svg&quot; alt=&quot;The profile picture as an SVG&quot; /&gt;&lt;/p&gt;
&lt;!-- toc --&gt;
&lt;h2 id=&quot;years-of-pixels&quot;&gt;Years of pixels&lt;/h2&gt;
&lt;p&gt;The drawing is based on a photo from ages ago (I still pretty much look the same, so it’s fine), taken by an actual professional photographer when I helped develop a time management course for GoodHabitz. Later, when I worked at Web-Company, they hired an artist from a place like Upwork or Fiverr to turn our photos into sketches. Mostly as a gimmick, to create avatars for Slack and our project management tool, where photos were pretty small and didn’t look great.&lt;/p&gt;
&lt;p&gt;Since then, it’s been my default avatar. Basically everywhere.&lt;/p&gt;
&lt;p&gt;But for all those years, it only existed as a PNG. In multiple resolutions, and multiple file formats. Even on this site, there were multiple formats, such as a WebP for the profile picture on the homepage, and a separate &lt;code&gt;favicon.ico&lt;/code&gt;. WebP didn’t work for a favicon, but I suppose that could have been a PNG (again in a bunch of different sizes, because these things aren’t responsive).&lt;/p&gt;
&lt;h2 id=&quot;why-svg&quot;&gt;Why SVG&lt;/h2&gt;
&lt;p&gt;I don’t want to have to think about resolutions and use cases. An SVG just scales, and stays sharp at every size.&lt;/p&gt;
&lt;p&gt;And I like using the same file for multiple purposes. To my untrained human eyes, the profile picture and the favicon are the same thing, so it should be the same file. Why waste kilobytes transferring multiple files that end up showing the same thing in different places? It just so much more &lt;em&gt;efficient&lt;/em&gt;, a single file, cache it, and it just shows in multiple places.&lt;/p&gt;
&lt;p&gt;It was an itch that needed scratching.&lt;/p&gt;
&lt;h2 id=&quot;freelancers-and-converters&quot;&gt;Freelancers and converters&lt;/h2&gt;
&lt;p&gt;So I put my money where my mouth is, and I hired a bunch of freelancers on Fiverr, with varying instructions. Some were asked to take the original photo, and turn it into the same kind of vector image. Others were asked to take the PNG and convert it.&lt;/p&gt;
&lt;p&gt;None of them delivered the result I was hoping for. Either they were too creative, and made a whole different kind of image. Or they made a vector with way too much detail, resulting in an SVG that’s too big for my use case. And of course, some were simply a scam: they changed the file extension and sent it back, assuming I wouldn’t notice it wasn’t actually an SVG.&lt;/p&gt;
&lt;p&gt;The online converters were even worse. They basically just took the PNG and packaged it inside an SVG. Which makes the name a lie: it isn’t scalable, and it isn’t a vector. The file even got bigger, as it’s just the same image in an extra container, with none of the benefits.&lt;/p&gt;
&lt;h2 id=&quot;tracing-with-claude-code&quot;&gt;Tracing with Claude Code&lt;/h2&gt;
&lt;p&gt;Since I’ve been playing and experimenting with AI, I figured it was worth a shot. I have no idea how to do this myself, and nothing else I had tried was a great success.&lt;/p&gt;
&lt;p&gt;Claude Code traced the PNG into an SVG. It installed some stuff through Homebrew, and I have no idea exactly what it did. Maybe I could have run the tools myself if it had told me what to do, but I know pretty much nothing about creating graphics. Then it cropped the extra space above my head, centred the drawing, and made the background transparent.&lt;/p&gt;
&lt;p&gt;I was shocked by the first result. It was actually good! Not perfect yet, but definitely in the right direction of what I wanted. The file size needed work, but already better than all the previous attempts.&lt;/p&gt;
&lt;h2 id=&quot;cleaning-up&quot;&gt;Cleaning up&lt;/h2&gt;
&lt;p&gt;I knew SVG is just a bunch of lines of code. XML stuff. There should be some way to figure out which lines are redundant, and just get rid of those.&lt;/p&gt;
&lt;p&gt;I asked the AI to remove some of the detail, but at that point it didn’t really understand what to do, and the result was..&lt;em&gt;Bad&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;So I ended up doing it myself, by hand, in &lt;a class=&quot;external&quot; rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https://boxy-svg.com/&quot;&gt;Boxy SVG&lt;/a&gt;. It only took a couple of minutes. I went through the code one line at a time, to see what each line was for. Delete the line, and check whether I could see a difference (and whether that difference mattered). If it was noticeable and unwanted: undo. Otherwise: on to the next line.&lt;/p&gt;
&lt;p&gt;The result is 37 KB after optimizing with ImageOptim, or 12 KB with &lt;a href=&quot;https://nizzlay.com/blog/pre-compressed-brotli-and-gzip/&quot;&gt;brotli&lt;/a&gt;. Probably still more than what it could have been if some expert did it by hand, creating only the lines that are necessary, but it’s good enough to scratch my itch.&lt;/p&gt;
&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th style=&quot;text-align: center&quot;&gt;Before&lt;/th&gt;&lt;th style=&quot;text-align: center&quot;&gt;After&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/img/profile-before.webp&quot; alt=&quot;The profile picture as a WebP, made from the original PNG&quot; /&gt;&lt;/td&gt;&lt;td style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;/img/profile.svg&quot; alt=&quot;The profile picture as an SVG&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;They’re definitely different. Even I can see it. But not in a way that matters.&lt;/p&gt;
&lt;h2 id=&quot;one-file-everywhere&quot;&gt;One file, everywhere&lt;/h2&gt;
&lt;p&gt;The same SVG is now the profile picture on the home page, the avatar in the &lt;a class=&quot;external&quot; rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https://microformats.org/wiki/h-card&quot;&gt;h-card&lt;/a&gt;, and the favicon, at any size, including the phone icons. There’s no need for complicated logic with PNG fallback and such, as every browser has had &lt;a class=&quot;external&quot; rel=&quot;noopener external&quot; target=&quot;_blank&quot; href=&quot;https://caniuse.com/link-icon-svg&quot;&gt;support for SVG favicons&lt;/a&gt; for a while.&lt;/p&gt;
&lt;h2 id=&quot;new-tools-new-abilities&quot;&gt;New tools, new abilities&lt;/h2&gt;
&lt;p&gt;This opens things up for further experimentation. It doesn’t hurt to ask the AI to do something. I couldn’t do it before, so there’s nothing to lose. Worst case, you’re in the same place you are now. Best case, it actually manages, or gets you close enough that you can close the gap yourself.&lt;/p&gt;
&lt;p&gt;So I’ll be experimenting more with AI. Maybe I can get it to build some more tools and automations for me. I can read code, understand the logic, define the requirements, but I don’t have the time (or the skill) to build whole apps by myself.&lt;/p&gt;
&lt;section class=&quot;footnotes&quot;&gt;
&lt;ol class=&quot;footnotes-list&quot;&gt;
&lt;li id=&quot;fn-1&quot;&gt;
&lt;p&gt;I suppose that might also explain why I tend to prefer apps that mention they’ve been written in Rust. All else being equal (or at least comparable), I’d pick the Rust thing. &lt;a href=&quot;https://nizzlay.com/blog/finally-an-svg/#fr-1-1&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;
</content>
        <summary type="html">My avatar only ever existed as a bunch of pixels. Freelancers and online converters couldn&#39;t turn it into the SVG I wanted, but now I managed.</summary>
        </entry>
</feed>
