<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: dutchbase</title>
    <description>The latest articles on DEV Community by dutchbase (@dutchbase).</description>
    <link>https://dev.to/dutchbase</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3816885%2F47391313-97d2-413e-8a4e-042d64f16349.jpeg</url>
      <title>DEV Community: dutchbase</title>
      <link>https://dev.to/dutchbase</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dutchbase"/>
    <language>en</language>
    <item>
      <title>I built an open-source CLI image converter with a Web UI (and support for AI agents)</title>
      <dc:creator>dutchbase</dc:creator>
      <pubDate>Tue, 10 Mar 2026 12:41:47 +0000</pubDate>
      <link>https://dev.to/dutchbase/i-built-an-open-source-cli-image-converter-with-a-web-ui-and-support-for-ai-agents-85a</link>
      <guid>https://dev.to/dutchbase/i-built-an-open-source-cli-image-converter-with-a-web-ui-and-support-for-ai-agents-85a</guid>
      <description>&lt;p&gt;When building websites and automation workflows, I constantly ran into the same problem:&lt;/p&gt;

&lt;p&gt;I just needed to convert an image quickly...&lt;/p&gt;

&lt;p&gt;PNG → WebP&lt;br&gt;
JPG → AVIF&lt;br&gt;
Batch conversions&lt;br&gt;
Quick optimizations&lt;/p&gt;

&lt;p&gt;There are plenty of GUI tools, but they usually require opening an app or website, dragging files around, exporting again, running into limitations, etc.&lt;/p&gt;

&lt;p&gt;And when working in scripts or automation pipelines, those tools are basically useless.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So I built img-convert.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An open-source CLI image converter that also includes a &lt;strong&gt;local Web UI&lt;/strong&gt; and is designed to work well inside &lt;strong&gt;automation workflows and AI agents&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="https://github.com/dutchbase/img-converter" rel="noopener noreferrer"&gt;https://github.com/dutchbase/img-converter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;npm:&lt;br&gt;
&lt;a href="https://www.npmjs.com/package/@dutchbase/img-convert" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/@dutchbase/img-convert&lt;/a&gt;&lt;/p&gt;


&lt;h1&gt;
  
  
  What it does
&lt;/h1&gt;

&lt;p&gt;&lt;code&gt;img-convert&lt;/code&gt; converts images between common formats like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JPG&lt;/li&gt;
&lt;li&gt;PNG&lt;/li&gt;
&lt;li&gt;WebP&lt;/li&gt;
&lt;li&gt;AVIF&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s designed to be:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;fast&lt;/li&gt;
&lt;li&gt;scriptable&lt;/li&gt;
&lt;li&gt;predictable for automation&lt;/li&gt;
&lt;li&gt;easy to use from the command line&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @dutchbase/img-convert input.png output.webp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or install globally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; @dutchbase/img-convert
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;img-convert input.jpg output.avif
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  Example usage
&lt;/h1&gt;

&lt;p&gt;Convert an image:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;img-convert input.png output.webp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Convert to AVIF:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;img-convert input.jpg output.avif
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Batch convert images:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;img-convert ./images ./output &lt;span class="nt"&gt;--format&lt;/span&gt; webp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h1&gt;
  
  
  Web UI mode
&lt;/h1&gt;

&lt;p&gt;Sometimes you just want to convert a few images manually.&lt;/p&gt;

&lt;p&gt;Instead of installing a separate GUI tool, you can run the Web UI locally.&lt;/p&gt;

&lt;p&gt;This opens a simple interface where you can drop images and convert them quickly.&lt;/p&gt;




&lt;h1&gt;
  
  
  Designed for automation and AI workflows
&lt;/h1&gt;

&lt;p&gt;One of the goals of this project was making the tool usable inside &lt;strong&gt;automation systems and AI agents&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Many AI workflows need to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;convert images&lt;/li&gt;
&lt;li&gt;optimize images&lt;/li&gt;
&lt;li&gt;change formats&lt;/li&gt;
&lt;li&gt;prepare assets for websites&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Because &lt;code&gt;img-convert&lt;/code&gt; has predictable CLI behavior, it works well in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;scripts&lt;/li&gt;
&lt;li&gt;CI pipelines&lt;/li&gt;
&lt;li&gt;AI agents&lt;/li&gt;
&lt;li&gt;local automation tools&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Open source
&lt;/h1&gt;

&lt;p&gt;The project is fully open source.&lt;/p&gt;

&lt;p&gt;GitHub:&lt;br&gt;
&lt;a href="https://github.com/dutchbase/img-converter" rel="noopener noreferrer"&gt;https://github.com/dutchbase/img-converter&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you find it useful, feel free to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;star the repo&lt;/li&gt;
&lt;li&gt;open issues&lt;/li&gt;
&lt;li&gt;suggest improvements&lt;/li&gt;
&lt;li&gt;contribute&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Feedback welcome
&lt;/h1&gt;

&lt;p&gt;This project is still evolving, and I’d love feedback from people who build:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;developer tools&lt;/li&gt;
&lt;li&gt;CLI tools&lt;/li&gt;
&lt;li&gt;automation systems&lt;/li&gt;
&lt;li&gt;AI workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What features would you want in a tool like this?&lt;/p&gt;

</description>
      <category>cli</category>
      <category>node</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
