---
title: "Discussion on \"Cropping passport photos in the browser with canvas, no upload needed\" | Hashnode"
description: "Discussion on \"Cropping passport photos in the browser with canvas, no upload needed\". The pixel math behind a passport photo cropper, and why your face doesn't have to leave your device."
url: "https://hashnode.com/posts/cropping-passport-photos-in-the-browser-with-canvas-no-upload-needed/6b03d03494eb8923393f1993"
---

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

Discussion

# [Cropping passport photos in the browser with canvas, no upload needed](https://saurabhsharmatools.hashnode.dev/cropping-passport-photos-in-the-browser-with-canvas-no-upload-needed?utm_source=hashnode&utm_medium=feed)

The pixel math behind a passport photo cropper, and why your face doesn't have to leave your device.

19h ago · 3 min read · saurabhsharmatools.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#canvas](https://hashnode.com/tag/canvas)
-   [#privacy](https://hashnode.com/tag/privacy)
-   [#html](https://hashnode.com/tag/html)

## Written by

[Saurabh Sharma](https://hashnode.com/@saurabh2499)

@saurabh2499 · Houston, United States

  
[View profile](https://hashnode.com/@saurabh2499)

Building things on the internet, breaking things, learning, and repeating.

I'm Saurabh, an independent developer. I build free web tools that answer one practical question well: cropping passport photos to spec, compressing GIFs to an exact file size, paycheck and overtime math, and cost estimates for dental implants and plastic surgery. PassportCrop and CompressGIFs run entirely in your browser, so your files are never uploaded.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
