Skip to content

ejcenteno/Image-Format-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖼️ Image Format Converter

Convert images between PNG, JPEG, WEBP, and AVIF formats entirely in your browser. No uploads, fully offline, with batch processing and ZIP download support.

Features

  • Offline Conversion — All processing happens in your browser using the Canvas API
  • 🎨 Multiple Formats — Convert between PNG, JPEG, WEBP, and AVIF
  • 📊 Quality Control — Adjustable quality slider for lossy formats (JPEG, WEBP)
  • 📦 Batch Processing — Convert up to 10 images at once
  • 🗜️ ZIP Download — Download all converted images as a single ZIP file
  • 📏 Size Comparison — See before/after file sizes with percentage change
  • 🎯 Drag & Drop — Easy file selection via drag-and-drop or file picker
  • 🌓 Dark Mode — Toggle between light and dark themes
  • 🔒 Privacy First — No data ever leaves your browser

Supported Formats

Input Formats

  • PNG
  • JPEG
  • WEBP
  • GIF (first frame only)
  • BMP
  • AVIF (Chrome 94+)

Output Formats

  • PNG (lossless)
  • JPEG (lossy, quality adjustable)
  • WEBP (lossy, quality adjustable)
  • AVIF (lossy, Chrome 94+)

Usage

  1. Select Output Format — Choose your desired output format from the dropdown
  2. Adjust Quality — For JPEG/WEBP, set the quality slider (1-100%)
  3. Add Images — Drag and drop images or click the drop zone to browse
  4. Wait for Conversion — Images are converted automatically
  5. Download:
    • Click "Download" on individual files
    • Click "Download All as ZIP" to get all files in one archive

Technical Details

  • Canvas API — Uses HTMLCanvasElement.toBlob() for format conversion
  • No External Libraries — Pure vanilla JavaScript
  • ZIP Generation — Minimal ZIP implementation without compression
  • Quality Preservation — Maintains original image dimensions and color depth
  • Memory Efficient — Processes files one at a time

Permissions

This extension requires only the storage permission to save your theme preference. No host permissions are needed.

Browser Compatibility

  • Chrome 92+ (for full WEBP support)
  • Chrome 94+ (for AVIF support)
  • Firefox (with WEBP support)
  • Edge 92+

Installation

Chrome Web Store

Coming soon

Manual Installation (Developer Mode)

  1. Download or clone this repository
  2. Open Chrome and navigate to chrome://extensions
  3. Enable "Developer mode" (top right toggle)
  4. Click "Load unpacked"
  5. Select the extension folder

Support the Developer

If this extension helped you, consider supporting the developer:

Privacy Policy

This extension:

  • ✅ Works completely offline
  • ✅ Does not collect any user data
  • ✅ Does not make any external network requests
  • ✅ Does not upload any files
  • ✅ Only stores theme preference locally

License

MIT License - feel free to use, modify, and distribute.

Version History

v1.0.0 (Initial Release)

  • Image format conversion (PNG, JPEG, WEBP, AVIF)
  • Quality control for lossy formats
  • Batch processing (up to 10 files)
  • ZIP download for multiple files
  • File size comparison
  • Dark/light mode support
  • Drag and drop support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors