---
title: "Discussion on \"How Our Chrome Extension Compresses a Photo to a Target KB With Zero Permissions\" | Hashnode"
description: "Discussion on \"How Our Chrome Extension Compresses a Photo to a Target KB With Zero Permissions\". How our zero-permission Chrome extension compresses a JPG, PNG or WebP photo to a target size in KB with canvas.toBlob and a binary search on quality."
url: "https://hashnode.com/posts/compress-image-to-target-kb-javascript-canvas/6ae9ea5ca500977e54b983ef"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Our Chrome Extension Compresses a Photo to a Target KB With Zero Permissions](https://chandan-editpdf.hashnode.dev/compress-image-to-target-kb-javascript-canvas?utm_source=hashnode&utm_medium=feed)

How our zero-permission Chrome extension compresses a JPG, PNG or WebP photo to a target size in KB with canvas.toBlob and a binary search on quality.

Nov 3 · 7 min read · chandan-editpdf.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#chrome-extension](https://hashnode.com/tag/chrome-extension)
-   [#canvas](https://hashnode.com/tag/canvas)
-   [#image-compression](https://hashnode.com/tag/image-compression)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Chandan Singh](https://hashnode.com/@chandan-editpdf)

@chandan-editpdf · Dubai, UAE

  
[View profile](https://hashnode.com/@chandan-editpdf)

Founder of editpdf.tools: free PDF and image tools that run in your browser, so your files stay on your device. IT Manager in Dubai.

I'm Chandan Singh, founder of editpdf.tools and an IT Manager in Dubai with 16+ years in IT, telecom and fintech. editpdf.tools has 14 free PDF and image tools that process files in your browser, so your files are not uploaded. Only the paid Edit PDF tool uploads a file, and it does not store it. I build it with a small team in India. On 4 November 2026 I tested 18 popular free online PDF and image tools to see which ones upload your file: 12 did.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
