<?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: shank sharma</title>
    <description>The latest articles on DEV Community by shank sharma (@shank_sharma_c110951e1541).</description>
    <link>https://dev.to/shank_sharma_c110951e1541</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%2F3885423%2F385868cd-c1e4-4f11-a878-aca07619bf3e.png</url>
      <title>DEV Community: shank sharma</title>
      <link>https://dev.to/shank_sharma_c110951e1541</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shank_sharma_c110951e1541"/>
    <language>en</language>
    <item>
      <title>How To Compress Images Online Without Uploading</title>
      <dc:creator>shank sharma</dc:creator>
      <pubDate>Sun, 01 Nov 2026 02:19:26 +0000</pubDate>
      <link>https://dev.to/shank_sharma_c110951e1541/how-to-compress-images-online-without-uploading-4a37</link>
      <guid>https://dev.to/shank_sharma_c110951e1541/how-to-compress-images-online-without-uploading-4a37</guid>
      <description>&lt;p&gt;You register for an official developer portal, filling a form or attempt to submit an online application—only to be blocked by a frustrating error: &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"File size exceeds 100KB limit."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Modern smartphone cameras and digital DSLRs output high-resolution photos that generally sit at 3MB to 10MB. Compressing those images to 100 KB threshold usually involves opening a heavy image editor, guessing quality sliders, compressing, checking the size, and repeating until it finally fits. &lt;/p&gt;

&lt;p&gt;Let's look at how you can do this instantly in mobile or computer with just a browser, securely, and entirely client-side using &lt;a href="https://compressjpg.net/" rel="noopener noreferrer"&gt;CompressJPG.net&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Resize Image to 100 KB ?
&lt;/h2&gt;

&lt;p&gt;Online portals, government forms, university registration systems, and legacy APIs often enforce strict payload caps. If your image is 101KB, it gets rejected or ask you to make image between 80-100 KB before submitting form.&lt;/p&gt;

&lt;p&gt;However, aggressively lowering the quality slider in traditional tools often leaves you with a pixelated, artifact-heavy mess. You need a tool that targets a precise byte-size limit while intelligently retaining maximum visual fidelity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Enter Client-Side Compression (WebAssembly)
&lt;/h2&gt;

&lt;p&gt;Most traditional online image compressors force you to upload your sensitive photos, identity documents, or screenshots to a remote third-party server. For privacy-conscious developers, this is a red flag.&lt;/p&gt;

&lt;p&gt;Tools built on modern browser technologies like &lt;strong&gt;WebAssembly&lt;/strong&gt; and optimized encoders (such as MozJPEG) handle everything locally:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Zero Server Uploads:&lt;/strong&gt; Your images never leave your machine. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lightning Fast:&lt;/strong&gt; No upload/download wait times over network connections.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EXIF Stripping:&lt;/strong&gt; Automatically strips metadata (like camera info and GPS coordinates), saving extra bytes while protecting your privacy.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Step-by-Step: How to Compress a JPEG to 100KB
&lt;/h2&gt;

&lt;p&gt;Using a dedicated website like the &lt;a href="https://compressjpg.net/compress-jpeg-to-100kb/" rel="noopener noreferrer"&gt;CompressJPG 100KB tool&lt;/a&gt; streamlines the process into three simple steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Drop Your Image:&lt;/strong&gt; Drag and drop your JPG, PNG, WebP, or HEIC file directly into the browser window (or paste it using &lt;code&gt;Ctrl + V&lt;/code&gt;). iPhone users can drop &lt;code&gt;.HEIC&lt;/code&gt; files seamlessly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set the Target Size:&lt;/strong&gt; The tool allows you to select preset target sizes (20KB, 50KB, &lt;strong&gt;100KB&lt;/strong&gt;, 200KB, etc.). Select &lt;strong&gt;100KB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compare &amp;amp; Download:&lt;/strong&gt; Review the live preview. You can hold down a &lt;strong&gt;"Compare"&lt;/strong&gt; button to see the original vs. compressed quality side-by-side, then click download once you're satisfied.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Pro-Tip: Handling Strict Minimum Limits
&lt;/h3&gt;

&lt;p&gt;Some rigid form validators not only enforce a &lt;em&gt;maximum&lt;/em&gt; file size limit but also reject files that come out &lt;em&gt;too&lt;/em&gt; small. The tool includes a &lt;strong&gt;"Match size exactly"&lt;/strong&gt; padding toggle to prevent under-minimum rejections.&lt;/p&gt;




&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;Next time you hit a frustrating upload barrier, you don't need to spin up Photoshop or trust a sketchy file-upload server with your documents. Browser-based client-side compression gets your assets under 100KB safely in seconds.&lt;/p&gt;

&lt;p&gt;Have a favorite workflow for optimizing assets on the web? Let me know in the comments below! 👇&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>productivity</category>
      <category>vite</category>
    </item>
    <item>
      <title>Best iLovePDF Alternative that I met</title>
      <dc:creator>shank sharma</dc:creator>
      <pubDate>Tue, 29 Sep 2026 02:36:13 +0000</pubDate>
      <link>https://dev.to/shank_sharma_c110951e1541/best-ilovepdf-alternative-that-i-met-37m7</link>
      <guid>https://dev.to/shank_sharma_c110951e1541/best-ilovepdf-alternative-that-i-met-37m7</guid>
      <description>&lt;p&gt;As developers, we love our CLI tools. When we need to merge, compress, or convert a PDF, our first instinct is usually to open the terminal, fire up Ghostscript, or write a quick Python script.&lt;/p&gt;

&lt;p&gt;But let's be honest: sometimes you just need to resize an ID card to &lt;em&gt;exactly&lt;/em&gt; under 100KB for a government portal, and writing a binary search loop to guess the right compression ratio isn't worth the 20 minutes it takes.&lt;/p&gt;

&lt;p&gt;Historically, when I didn't want to script it, I'd use iLovePDF. But between the file limits, ads, and privacy concerns of uploading sensitive documents to a third-party server, I started looking for alternatives. Eventually, I met an online tool with alike features (but free): &lt;a href="https://pdfbae.com" rel="noopener noreferrer"&gt;&lt;strong&gt;pdfBae&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here is a look at how to handle the most common PDF tasks the "developer way," and how you can save time by doing it the "GUI way."&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Converting JPG to PDF (Under a Specific Size limit)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Dev Way (Python &amp;amp; img2pdf)
&lt;/h3&gt;

&lt;p&gt;If you just need to wrap an image into a PDF container without losing quality, &lt;code&gt;img2pdf&lt;/code&gt; is the standard approach.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import img2pdf
import os

image_path = "document.jpg"
pdf_path = "output.pdf"

# Simple conversion
with open(pdf_path, "wb") as f:
    f.write(img2pdf.convert(image_path))

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The Catch:&lt;/strong&gt; This doesn't compress the image. If the portal you are uploading to has a strict 100KB limit, you have to run it through ImageMagick first, check the size, tweak the quality flag, and try again.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Time-Saving Alternative
&lt;/h3&gt;

&lt;p&gt;Instead of guessing JPEG quality settings in the terminal, I built a specific tool for this. You just drag and drop your image, and it dynamically adjusts the compression to hit your exact target size.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://pdfbae.com/jpg-to-pdf-100kb/" rel="noopener noreferrer"&gt;JPG to PDF 100KB&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Compressing an Existing PDF
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Dev Way (Ghostscript)
&lt;/h3&gt;

&lt;p&gt;Ghostscript is the undisputed king of PDF manipulation in the terminal. To compress a bloated PDF, you can run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gs -sDEVICE=pdfwrite \
   -dCompatibilityLevel=1.4 \
   -dPDFSETTINGS=/screen \
   -dNOPAUSE -dQUIET -dBATCH \
   -sOutputFile=compressed_output.pdf \
   input.pdf

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The Catch:&lt;/strong&gt; The &lt;code&gt;-dPDFSETTINGS=/screen&lt;/code&gt; flag reduces the resolution to 72dpi. But what if the output is 120KB and you explicitly need it under 100KB? Ghostscript doesn't have a "target file size" flag. You're left manually stripping metadata or downsampling images via complex ghostscript parameters.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Time-Saving Alternative
&lt;/h3&gt;

&lt;p&gt;I got tired of tweaking Ghostscript flags for form uploads. On PDFBae, the compression engine handles the math for you. Because it utilizes modern browser APIs and Web Workers, it processes the files quickly and safely.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://pdfbae.com/compress-pdf-to-100kb/" rel="noopener noreferrer"&gt;Compress PDF to 100KB&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Reordering, Splitting, and Organizing Pages
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Dev Way (Python &amp;amp; PyMuPDF)
&lt;/h3&gt;

&lt;p&gt;If you have a 10-page PDF and you only want pages 1, 3, and 2 (in that order), &lt;code&gt;PyMuPDF&lt;/code&gt; (&lt;code&gt;fitz&lt;/code&gt;) makes it pretty straightforward:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import fitz  # PyMuPDF

doc = fitz.open("messy_document.pdf")

# Create a new blank PDF
new_doc = fitz.open()

# Insert pages 1, 3, and 2 (0-indexed)
new_doc.insert_pdf(doc, from_page=0, to_page=0)
new_doc.insert_pdf(doc, from_page=2, to_page=2)
new_doc.insert_pdf(doc, from_page=1, to_page=1)

new_doc.save("organized_document.pdf")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The Catch:&lt;/strong&gt; Writing a script for this is fine if you're automating a batch job for 1,000 files. But if you're just trying to remove a blank page from a contract before emailing it, writing a 10-line script is overkill.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Time-Saving Alternative
&lt;/h3&gt;

&lt;p&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7ruye0uvlljaadx7in55.png" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7ruye0uvlljaadx7in55.png" alt="pdfbae organize" width="799" height="300"&gt;&lt;/a&gt;&lt;br&gt;
For visual tasks, you need a visual tool. The organization tool lets you visually drag, drop, rotate, and delete pages directly in your browser.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Try it:&lt;/strong&gt; &lt;a href="https://pdfbae.com/organize-pdf/" rel="noopener noreferrer"&gt;Organize PDF&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Writing scripts to manipulate PDFs is a great exercise, and CLI tools like Ghostscript are incredibly powerful for server-side automation. But for one-off tasks—especially when strict file size limits are involved—having a fast, reliable GUI is a lifesaver.&lt;/p&gt;

&lt;p&gt;I shared &lt;a href="https://pdfbae.com" rel="noopener noreferrer"&gt;PDFBae.com&lt;/a&gt; to be the developer-friendly alternative to the bloated PDF sites out there. It’s fast, free, and gets out of your way.&lt;/p&gt;

&lt;p&gt;Bookmark it for the next time you need to hit that dreaded "File must be under 100KB" upload requirement!&lt;br&gt;
Let me know your suggestions and updates if missing.&lt;/p&gt;

</description>
      <category>pdf</category>
      <category>tools</category>
      <category>webdev</category>
      <category>python</category>
    </item>
  </channel>
</rss>
