<?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: entry bypass</title>
    <description>The latest articles on DEV Community by entry bypass (@entry_bypass_fbfe8178543c).</description>
    <link>https://dev.to/entry_bypass_fbfe8178543c</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%2F3655837%2F46e59d84-c339-48c5-bc66-258f91585613.png</url>
      <title>DEV Community: entry bypass</title>
      <link>https://dev.to/entry_bypass_fbfe8178543c</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/entry_bypass_fbfe8178543c"/>
    <language>en</language>
    <item>
      <title>How I Built a Pure Client-Side Image Compressor (No Server, No API)</title>
      <dc:creator>entry bypass</dc:creator>
      <pubDate>Sat, 13 Dec 2025 15:20:04 +0000</pubDate>
      <link>https://dev.to/entry_bypass_fbfe8178543c/how-i-built-a-pure-client-side-image-compressor-no-server-no-api-26c8</link>
      <guid>https://dev.to/entry_bypass_fbfe8178543c/how-i-built-a-pure-client-side-image-compressor-no-server-no-api-26c8</guid>
      <description>&lt;p&gt;Most image compression tools upload your photos to a server. That’s fine for casual images, but not okay when users are working with personal documents like Aadhaar cards, PAN cards, or government exam forms.&lt;/p&gt;

&lt;p&gt;I ran into this issue myself while helping someone upload a photo with a strict 20KB file size limit. Most tools either broke the quality or failed to hit the exact size. So I decided to build my own tool that works 100% inside the browser — no backend, no APIs, no uploads.&lt;/p&gt;

&lt;p&gt;That’s how ResizeKB.tech was born.&lt;/p&gt;

&lt;p&gt;PROBLEM I WANTED TO SOLVE&lt;/p&gt;

&lt;p&gt;Government and job application portals in India often require:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exact file size limits (20KB, 50KB, 100KB)&lt;/li&gt;
&lt;li&gt;Specific dimensions&lt;/li&gt;
&lt;li&gt;Clean background images&lt;/li&gt;
&lt;li&gt;No quality loss&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Upload images to a server&lt;/li&gt;
&lt;li&gt;Compress blindly&lt;/li&gt;
&lt;li&gt;Don’t allow exact KB targeting&lt;/li&gt;
&lt;li&gt;Create privacy issues&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;My goal was:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Exact size control&lt;/li&gt;
&lt;li&gt;No server&lt;/li&gt;
&lt;li&gt;No upload&lt;/li&gt;
&lt;li&gt;Works instantly&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;TECH STACK&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;HTML5&lt;/li&gt;
&lt;li&gt;Vanilla JavaScript&lt;/li&gt;
&lt;li&gt;HTML Canvas API&lt;/li&gt;
&lt;li&gt;Browser File API&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;HOW IT WORKS&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;User selects an image&lt;/li&gt;
&lt;li&gt;Image loads using FileReader&lt;/li&gt;
&lt;li&gt;It is drawn onto a hidden canvas&lt;/li&gt;
&lt;li&gt;Quality + resolution are adjusted&lt;/li&gt;
&lt;li&gt;Export happens using canvas.toBlob()&lt;/li&gt;
&lt;li&gt;Loop runs until exact KB size is reached&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Everything happens locally. No file is uploaded anywhere.&lt;/p&gt;

&lt;p&gt;BIGGEST CHALLENGES&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maintaining quality under 20KB&lt;/li&gt;
&lt;li&gt;Handling large phone images&lt;/li&gt;
&lt;li&gt;Browser memory crashes&lt;/li&gt;
&lt;li&gt;Different compression results in different browsers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;PRIVACY&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No login&lt;/li&gt;
&lt;li&gt;No uploads&lt;/li&gt;
&lt;li&gt;No server&lt;/li&gt;
&lt;li&gt;No tracking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;LIVE TOOL&lt;/p&gt;

&lt;p&gt;&lt;a href="https://resizekb.tech" rel="noopener noreferrer"&gt;https://resizekb.tech&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can check the browser Network tab — there is zero upload.&lt;/p&gt;

&lt;p&gt;FINAL NOTE&lt;/p&gt;

&lt;p&gt;This started as a personal fix for government form uploads and slowly became a daily-use tool for thousands of users.&lt;/p&gt;

&lt;p&gt;If you're building browser-based tools or care about privacy-first apps, happy to connect.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ghk7mrzyiuntsh72paz.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ghk7mrzyiuntsh72paz.jpg" alt=" " width="720" height="1612"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>privacy</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
