<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>WebP on Nalar</title>
    <link>https://nalar.dev/tags/webp/</link>
    <description>Recent content in WebP on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sat, 26 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/webp/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Batch Convert JPEG and PNG to WebP with Bash and cwebp</title>
      <link>https://nalar.dev/batch-convert-jpeg-png-to-webp-with-bash/</link>
      <pubDate>Sat, 26 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/batch-convert-jpeg-png-to-webp-with-bash/</guid>
      <description>&lt;p&gt;Two files named &lt;code&gt;photo.jpg&lt;/code&gt; and &lt;code&gt;photo.png&lt;/code&gt; in the same directory would both become &lt;code&gt;photo.webp&lt;/code&gt;. A batch converter that notices the collision only after it starts encoding may leave one image unconverted or replace an earlier result. It is better to check the entire input list first.&lt;/p&gt;&#xA;&lt;p&gt;The Bash script here uses &lt;code&gt;cwebp&lt;/code&gt; for encoding and keeps a separate output tree. Its default &lt;code&gt;auto&lt;/code&gt; mode encodes JPEG with lossy WebP and PNG with lossless WebP. The source images stay in place; existing destination files are skipped.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
