Privacy-first offline image compressor for official documents
π Live Demo: (https://nezchan0.github.io/SecureCompress/)
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.
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.
- π 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
- Visit the live demo
- Select your image file
- Configure output format, DPI, and dimensions
- Use the CMβPX helper for physical size requirements
- Compress and download your optimized image
No installation required. No sign-up. No tracking.
- π Government exam applications (UPSC, SSC, banking exams)
- πΌ Job portals (Naukri, LinkedIn)
βοΈ Visa/passport photo requirements- π Official document submissions
- π ID card photos
- π Resume/CV attachments
- 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
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.
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!
- Set exact dimensions (e.g., 3.5cm Γ 4.5cm)
- Convert to pixels using 300 DPI
- Export as JPEG with specific file size
- Meet strict size requirements (e.g., < 50KB)
- Maintain required DPI (often 200-300)
- Correct format (usually JPEG/JPG)
- Professional photo compression
- Standard dimensions
- Optimal file size for email
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
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
This project is licensed under the MIT License β feel free to use, modify, and distribute it freely, with attribution.
Alok Kumar Maurya β Developer | Email: alok05.maurya@gmail.com