<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Asciinema on Nelson Figueroa</title><link>https://nelson.cloud/categories/asciinema/</link><description>Recent content in Asciinema on Nelson Figueroa</description><image><title>Nelson Figueroa</title><url>https://nelson.cloud/apple-touch-icon.png</url><link>https://nelson.cloud/categories/asciinema/</link></image><language>en</language><lastBuildDate>Thu, 05 Feb 2026 15:18:19 -0800</lastBuildDate><atom:link href="https://nelson.cloud/categories/asciinema/index.xml" rel="self" type="application/rss+xml"/><item><title>Creating High Quality GIFs from Asciinema Recordings</title><link>https://nelson.cloud/creating-high-quality-gifs-from-asciinema-recordings/?ref=rss</link><pubDate>Sat, 04 Oct 2025 00:00:00 -0700</pubDate><guid>https://nelson.cloud/creating-high-quality-gifs-from-asciinema-recordings/?ref=rss</guid><description>Use &lt;code&gt;agg&lt;/code&gt; with a huge font size to get high quality GIFs.</description><content:encoded><![CDATA[<p>Say you have a recording created with 

<a href="https://asciinema.org/" target="_blank" rel="noopener">Asciinema</a> named <code>recording.cast</code> and now you want to convert that into a GIF. You can use the <code>agg</code> command (which is a 

<a href="https://docs.asciinema.org/manual/agg/installation/" target="_blank" rel="noopener">separate installation</a>) to convert it like so:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">agg</span> recording.cast recording.gif</span></span></code></pre></div><p>However, if you run <code>agg</code> with the default settings the resulting GIF won&rsquo;t be high quality and it&rsquo;ll look a little fuzzy.</p>
<p>To get a high quality GIF you need to specify a big font size with the <code>--font-size</code> option:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-shell" data-lang="shell"><span class="line"><span class="cl"><span class="nb">agg</span> <span class="no">--font-size</span> <span class="m">64</span> recording.cast recording.gif</span></span></code></pre></div><p>Here are two GIFs you can compare. The top one was created with the default <code>agg</code> settings. The bottom one was created with <code>--font-size 64</code>. Depending on your display, you may need to zoom in a bit to see the difference:</p>
<img src="https://nelson.cloud/asciinema-high-quality-gifs/pulumi-up.gif" alt="fuzzy GIF created with default agg settings" width="720" height="474" style="max-width: 100%; height: auto; aspect-ratio: 772 / 509;" loading="lazy" decoding="async">
<img src="https://nelson.cloud/asciinema-high-quality-gifs/pulumi-up-in-hd.gif" alt="higher quality GIF created with agg --font-size 64" width="720" height="475" style="max-width: 100%; height: auto; aspect-ratio: 3532 / 2329;" loading="lazy" decoding="async">
<p>It&rsquo;s a noticeable difference. The trade-off here is that the higher quality GIF will be a bigger filesize, so be mindful of that. Try experimenting with different font sizes.</p>
<p>I was expecting there to be some sort of <code>--size</code> or <code>--quality</code> option, but you just need to increase the font to get higher quality GIFs with <code>agg</code>.</p>
<h2 id="references">References</h2>
<ul>
<li>

<a href="https://docs.asciinema.org/manual/agg/" target="_blank" rel="noopener">https://docs.asciinema.org/manual/agg/</a></li>
<li>

<a href="https://docs.asciinema.org/manual/agg/installation/" target="_blank" rel="noopener">https://docs.asciinema.org/manual/agg/installation/</a></li>
<li>

<a href="https://docs.asciinema.org/manual/agg/usage/" target="_blank" rel="noopener">https://docs.asciinema.org/manual/agg/usage/</a></li>
</ul>
]]></content:encoded></item></channel></rss>