Skip to content

feat: add client-side EXIF Sanitizer tool#406

Open
Kritika200520 wants to merge 1 commit into
Durgeshwar-AI:mainfrom
Kritika200520:main
Open

feat: add client-side EXIF Sanitizer tool#406
Kritika200520 wants to merge 1 commit into
Durgeshwar-AI:mainfrom
Kritika200520:main

Conversation

@Kritika200520

Copy link
Copy Markdown
Contributor

Pull Request Description

feat: Add Client-Side EXIF Data Sanitizer Tool

Description

This PR introduces a new EXIF Sanitizer tool to the suite under the Utilities category. It allows users to strip private EXIF metadata (GPS coordinates, camera model/settings, timestamps, and dates) from image files directly in the browser, matching the project's privacy-first client-side processing goals.


Fixes #358

Changes Made

1. Page Component

  • New Page: Created EXIFSanitizer.jsx containing:
    • Drag-and-drop file upload using the custom useFileUpload hook.
    • Lossless Segment Strip: (JPEG only) Reads the file as an ArrayBuffer and parses the binary structure, dropping the APP1 segment directly. This strips EXIF/GPS tags without re-compressing or degrading the image quality.
    • Canvas Pixel Redraw: (All formats) Draws the image onto a clean canvas context and exports a fresh blob, natively stripping EXIF metadata, headers, and color profile segments from PNG, WebP, and JPEG files. Includes an export quality selection slider.
    • Privacy Banner: Informative client-side banner verifying that no image data leaves the user's browser.
    • File Size Comparison: Interactive comparison panels displaying the original and sanitized file sizes after processing.

2. Layout & Routing Registry

  • Icons & Registry: Imported the Shield icon from lucide-react and registered the tool under the Utilities section in toolsData.jsx.
  • Routing: Registered the /exif-sanitizer lazy-loaded route in App.jsx.

Verification and Checks

  • Linter: Verified npm run lint passes with zero errors/warnings.
  • Production Build: Verified npm run build completes and bundles files successfully.

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

@Kritika200520 is attempting to deploy a commit to the Durgeshwar's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Durgeshwar-AI

Copy link
Copy Markdown
Owner

@Kritika200520 There is metadata viewer for images work on that not a new route as they are nearly same. Do not change the pdfWatermark.jsx.

@Kritika200520

Copy link
Copy Markdown
Contributor Author

@Durgeshwar-AI i have done the changes please review it

@Durgeshwar-AI

Copy link
Copy Markdown
Owner

@Kritika200520 Remove all changes from the pdfwatermark.jsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add EXIF Data Sanitizer (Strip Private Metadata from Images)

2 participants