<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>bash &amp;mdash; Build stuff; Break stuff; Have fun!</title>
    <link>https://barfooz.xyz/tag:bash</link>
    <description>barfooz.xyz</description>
    <pubDate>Mon, 01 Jun 2026 15:34:23 +0000</pubDate>
    <image>
      <url>https://i.snap.as/btoNrLSF.png</url>
      <title>bash &amp;mdash; Build stuff; Break stuff; Have fun!</title>
      <link>https://barfooz.xyz/tag:bash</link>
    </image>
    <item>
      <title>Batch-Convert images to WEBP format</title>
      <link>https://barfooz.xyz/batch-convert-images-to-webp-format?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[Recently, I needed to convert plenty of images from jpeg to webp. For tasks like this, I like to use the shell. In my case, bash).&#xA;&#xA;The one-liner I&#39;ve used to batch covert the images is the following:&#xA;&#xA;To get all my images, I&#39;ve used fd, an alternative to the default find command. Both can do the job, but I prefer fd because of the simpler syntax.&#xA;&#xA;And to convert the images, there is cwebp. I don&#39;t know if there are alternatives, this is the first I&#39;ve found in my search, and it did the job well. 😊&#xA;&#xA;In the end, I&#39;ve saved ~90% of the file size, which is quite impressive. 🚀&#xA;&#xA;---&#xA;&#xA;22/100 of #100DaysToOffload&#xA;&#xA;#log #bash #webp&#xA;&#xA;a href=&#34;https://remark.as/p/barfooz.xyz/batch-convert-images-to-webp-format&#34;Discuss.../a]]&gt;</description>
      <content:encoded><![CDATA[<p>Recently, I needed to convert plenty of images from <code>jpeg</code> to <code>webp</code>. For tasks like this, I like to use the shell. In my case, <a href="https://en.wikipedia.org/wiki/Bash_(Unix_shell)">bash</a>.</p>

<p>The one-liner I&#39;ve used to batch covert the images is the following:
<code>fd -e jpg --exec cwebp {} -o webp/{.}.webp</code></p>

<p>To get all my images, I&#39;ve used <a href="https://github.com/sharkdp/fd">fd</a>, an alternative to the default <code>find</code> command. Both can do the job, but I prefer fd because of the simpler syntax.</p>

<p>And to convert the images, there is <a href="https://developers.google.com/speed/webp/docs/cwebp">cwebp</a>. I don&#39;t know if there are alternatives, this is the first I&#39;ve found in my search, and it did the job well. 😊</p>

<p>In the end, I&#39;ve saved <strong>~90%</strong> of the file size, which is quite impressive. 🚀</p>

<hr/>

<p>22/100 of <a href="https://barfooz.xyz/tag:100DaysToOffload" class="hashtag"><span>#</span><span class="p-category">100DaysToOffload</span></a></p>

<p><a href="https://barfooz.xyz/tag:log" class="hashtag"><span>#</span><span class="p-category">log</span></a> <a href="https://barfooz.xyz/tag:bash" class="hashtag"><span>#</span><span class="p-category">bash</span></a> <a href="https://barfooz.xyz/tag:webp" class="hashtag"><span>#</span><span class="p-category">webp</span></a></p>

<p><a href="https://remark.as/p/barfooz.xyz/batch-convert-images-to-webp-format">Discuss...</a></p>
]]></content:encoded>
      <guid>https://barfooz.xyz/batch-convert-images-to-webp-format</guid>
      <pubDate>Sat, 06 Apr 2024 10:24:47 +0000</pubDate>
    </item>
  </channel>
</rss>