Skip to content

Privacy-first image compressor. Resize, convert & compress images offline with DPI control and cm↔px conversion. No uploads, no tracking. πŸ”’

License

Notifications You must be signed in to change notification settings

nezchan0/SecureCompress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ SecureCompress

Privacy-first offline image compressor for official documents

Live Demo License: MIT No Tracking

🌐 Live Demo: (https://nezchan0.github.io/SecureCompress/)


πŸ“Έ The Problem

Most online image compressors:

  • ❌ Expose sensitive ID photos/signatures to privacy risks
  • ❌ Offer inconsistent or lossy compression
  • ❌ Lack DPI or physical (cm-based) dimension controls
  • ❌ Require internet connectivity

There's a clear need for a privacy-first, offline, and guided image optimization tool.


✨ The Solution

A secure, browser-based application that processes images entirely on your device. Perfect for government exam forms, job portals, visa applications, and any document requiring specific image specifications.

Key Features

  • πŸ”’ 100% Private - No uploads, images never leave your browser
  • πŸ“ DPI Control - Set precise resolution (72-600 DPI)
  • πŸ“ CM ↔ PX Converter - Convert dimensions with DPI awareness
  • πŸ”„ Format Conversion - JPEG, PNG, WEBP support
  • βœ‚οΈ Smart Resizing - Custom width/height in pixels
  • πŸ’Ύ Instant Download - Process and save in seconds
  • 🌐 Fully Offline - Works without internet after first load
  • πŸ“± Responsive Design - Desktop and mobile friendly

πŸš€ Quick Start

  1. Visit the live demo
  2. Select your image file
  3. Configure output format, DPI, and dimensions
  4. Use the CM→PX helper for physical size requirements
  5. Compress and download your optimized image

No installation required. No sign-up. No tracking.


🎯 Perfect For

  • πŸ“‹ Government exam applications (UPSC, SSC, banking exams)
  • πŸ’Ό Job portals (Naukri, LinkedIn)
  • ✈️ Visa/passport photo requirements
  • πŸ“„ Official document submissions
  • πŸ†” ID card photos
  • πŸ“ Resume/CV attachments

πŸ› οΈ Tech Stack

  • HTML5 Canvas API - Image processing and manipulation
  • Vanilla JavaScript - Zero dependencies, pure performance
  • EXIF Parser - Auto-detect DPI from JPEG metadata
  • CSS Grid - Modern responsive layout

πŸ” Privacy Promise

SecureCompress is built with privacy as the foundation:

  • βœ… No data collection - No one can see or store your images
  • βœ… No cookies or tracking - Zero analytics or monitoring
  • βœ… No external API calls - Everything runs locally
  • βœ… No image uploads - Files never leave your device
  • βœ… 100% client-side - All processing in your browser
  • βœ… Open source - Code is fully auditable

Your images stay on your device. Period.


πŸ’‘ CM to PX Helper

Understanding the relationship between physical size (cm) and pixels:

Formula: pixels = (centimeters Γ— DPI) / 2.54

Example at 300 DPI:
- 3.5 cm Γ— 4.5 cm photo
- Width: (3.5 Γ— 300) / 2.54 = 413 px
- Height: (4.5 Γ— 300) / 2.54 = 531 px

The built-in converter does this math for you automatically!


🌟 Use Cases

Passport Photos

  • Set exact dimensions (e.g., 3.5cm Γ— 4.5cm)
  • Convert to pixels using 300 DPI
  • Export as JPEG with specific file size

Government Forms

  • Meet strict size requirements (e.g., < 50KB)
  • Maintain required DPI (often 200-300)
  • Correct format (usually JPEG/JPG)

Job Applications

  • Professional photo compression
  • Standard dimensions
  • Optimal file size for email

πŸš€ Local Development

Want to run it locally or contribute?

# Clone the repository
git clone https://github.com/nezchan0/SecureCompress.git
cd securecompress

# Open in browser
# Simply open index.html in your browser

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Ideas for contribution:

  • Additional image formats
  • Image cropping tool
  • Aspect ratio presets
  • More metadata extraction

πŸ“œ License

This project is licensed under the MIT License β€” feel free to use, modify, and distribute it freely, with attribution.


πŸ§‘β€πŸ’» Author

Alok Kumar Maurya – Developer | Email: alok05.maurya@gmail.com

About

Privacy-first image compressor. Resize, convert & compress images offline with DPI control and cm↔px conversion. No uploads, no tracking. πŸ”’

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages