<?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: Ahsan Rehmat</title>
    <description>The latest articles on DEV Community by Ahsan Rehmat (@ahsan_rehmat_1f8ad0095d78).</description>
    <link>https://dev.to/ahsan_rehmat_1f8ad0095d78</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4137193%2F5ff37c4b-c050-4313-aff8-7b14b71f4fec.png</url>
      <title>DEV Community: Ahsan Rehmat</title>
      <link>https://dev.to/ahsan_rehmat_1f8ad0095d78</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ahsan_rehmat_1f8ad0095d78"/>
    <language>en</language>
    <item>
      <title>I Built an Image Compressor That Targets Exact File Sizes Without Uploading Your Photos</title>
      <dc:creator>Ahsan Rehmat</dc:creator>
      <pubDate>Tue, 22 Sep 2026 08:22:13 +0000</pubDate>
      <link>https://dev.to/ahsan_rehmat_1f8ad0095d78/i-built-an-image-compressor-that-targets-exact-file-sizes-without-uploading-your-photos-2jnh</link>
      <guid>https://dev.to/ahsan_rehmat_1f8ad0095d78/i-built-an-image-compressor-that-targets-exact-file-sizes-without-uploading-your-photos-2jnh</guid>
      <description>&lt;p&gt;I kept running into the same annoying problem.&lt;/p&gt;

&lt;p&gt;A website or application form would ask for an image under 100KB, 50KB, or even 20KB, but most image compressors just give you a quality slider and leave you guessing.&lt;/p&gt;

&lt;p&gt;So I built CompressMyPhotos.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://compressmyphotos.com/?utm_source=devto&amp;amp;utm_medium=community&amp;amp;utm_campaign=showdev" rel="noopener noreferrer"&gt;https://compressmyphotos.com/?utm_source=devto&amp;amp;utm_medium=community&amp;amp;utm_campaign=showdev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The idea is simple: instead of repeatedly changing the quality and checking the file size, you can choose the target size you actually need.&lt;/p&gt;

&lt;p&gt;Right now it supports JPG, PNG, and WebP images, with exact target sizes from 20 KB up to 1 MB.&lt;/p&gt;

&lt;p&gt;It also supports batch compression, ZIP downloads, before-and-after file size information, image dimensions, and EXIF metadata inspection and removal.&lt;/p&gt;

&lt;p&gt;One thing that was important to me was privacy.&lt;/p&gt;

&lt;p&gt;The images are processed locally in the browser, so the actual photos are not uploaded to a remote server for processing.&lt;/p&gt;

&lt;p&gt;That can be useful when someone is working with personal photos, application images, client files, or pictures that may contain metadata such as camera information or GPS data.&lt;/p&gt;

&lt;p&gt;The exact-size compression part was also an interesting challenge.&lt;/p&gt;

&lt;p&gt;Making an image “smaller” is easy, but trying to get it under a specific target while keeping as much usable quality as possible requires adjusting encoding settings and, when necessary, the image dimensions.&lt;/p&gt;

&lt;p&gt;For very small targets, there will obviously be a quality trade-off, so I tried to make the result transparent by showing users what changed.&lt;/p&gt;

&lt;p&gt;The project is live now and completely free to use. No account is required.&lt;/p&gt;

&lt;p&gt;I am still improving it and would genuinely appreciate feedback.&lt;/p&gt;

&lt;p&gt;I am especially interested in knowing:&lt;/p&gt;

&lt;p&gt;Does the exact-size compression work well on your images?&lt;/p&gt;

&lt;p&gt;Is the mobile experience clear?&lt;/p&gt;

&lt;p&gt;Does the EXIF removal workflow make sense?&lt;/p&gt;

&lt;p&gt;What image tool would you actually want added next?&lt;/p&gt;

&lt;p&gt;I have resizing and format conversion in mind, but I would rather build based on what people actually need instead of adding features just for the sake of it.&lt;/p&gt;

&lt;p&gt;Would love to hear what you think.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>astro</category>
    </item>
  </channel>
</rss>
