<?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: dnyh2</title>
    <description>The latest articles on DEV Community by dnyh2 (@2yh02).</description>
    <link>https://dev.to/2yh02</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%2F3758729%2F95e4378b-149d-4e1f-8192-da614776f831.jpg</url>
      <title>DEV Community: dnyh2</title>
      <link>https://dev.to/2yh02</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/2yh02"/>
    <language>en</language>
    <item>
      <title>I rebuilt my old image processing library with Rust + WebAssembly</title>
      <dc:creator>dnyh2</dc:creator>
      <pubDate>Sat, 07 Feb 2026 17:31:48 +0000</pubDate>
      <link>https://dev.to/2yh02/i-rebuilt-my-old-image-processing-library-with-rust-webassembly-22fl</link>
      <guid>https://dev.to/2yh02/i-rebuilt-my-old-image-processing-library-with-rust-webassembly-22fl</guid>
      <description>&lt;h2&gt;
  
  
  Rebuilding an old browser image library with Rust + WebAssembly
&lt;/h2&gt;

&lt;p&gt;I originally started this project as a small practice project for two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;publishing a library&lt;/li&gt;
&lt;li&gt;learning Rust + WebAssembly in a real workflow&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I paused it for a while, and recently came back to improve it properly: &lt;strong&gt;img-toolkit&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;It’s a browser image processing library with a Rust/WASM core and a JS/TS wrapper.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;resize&lt;/li&gt;
&lt;li&gt;format convert (&lt;code&gt;jpg/png/webp&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;brightness adjustment&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/2YH02/img-toolkit" rel="noopener noreferrer"&gt;https://github.com/2YH02/img-toolkit&lt;/a&gt;&lt;br&gt;
Demo: &lt;a href="https://2yh02.github.io/img-toolkit" rel="noopener noreferrer"&gt;https://2yh02.github.io/img-toolkit&lt;/a&gt; &lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/img-toolkit" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/img-toolkit&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I restarted it
&lt;/h2&gt;

&lt;p&gt;I wanted to turn it from a simple practice repo into something cleaner and actually usable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recent improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;API cleanup with clearer function boundaries:

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;processImage&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;resize&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;convertFormat&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;adjustBrightness&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Better WebP behavior across runtime environments&lt;/li&gt;

&lt;li&gt;Cleaner user-facing error behavior&lt;/li&gt;

&lt;li&gt;Documentation and release process improvements&lt;/li&gt;

&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick comparison (same source image)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Original: &lt;strong&gt;747 KB&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;JS canvas output: &lt;strong&gt;49.3 KB&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Rust/WASM output: &lt;strong&gt;41.3 KB&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;(Comparison images are in the README.)&lt;/p&gt;

&lt;p&gt;It’s still a work in progress, but it’s now much more usable than before.&lt;br&gt;&lt;br&gt;
If you try it, I’d really appreciate feedback on API design and real-world use cases.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>rust</category>
      <category>javascript</category>
      <category>webassembly</category>
    </item>
  </channel>
</rss>
