Skip to content
pankajbatham2010Public

About

PixelDiet is a fast, free online image compressor and resizer that shrinks JPG, PNG, and WebP file sizes in seconds. Resize photos for social media, convert formats, and batch download as a ZIP. 100% private: all images process locally in your browser and never leave your device.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PixelDiet ⚡🖼️

100% Client-Side Image Compressor & Resizer — Fast, private, and runs entirely in your browser with zero server uploads.

PixelDiet Status Build GitHub Pages License

PixelDiet is a modern, single-page web application designed to compress, resize, and convert images directly inside the user's browser. Because all pixel processing uses the native HTML5 <canvas> API, your images never leave your computer or touch any remote server.


✨ Features

  • 🔒 100% Private & Secure: Images are processed locally on your device. Zero server uploads, zero network tracking, and works completely offline.
  • ⚡ High-Speed Compression: Hardware-accelerated processing via browser Canvas API with live quality control (10% to 100%).
  • 📐 Smart Resizing & Aspect Ratio Lock:
    • Exact Width & Height pixel inputs.
    • Aspect Ratio Lock toggle (enabled by default) to prevent stretching or distortion.
    • Scale by percentage or presets.
  • 📱 Social Media Presets: One-click sizing for:
    • Instagram Square (1080 × 1080)
    • Instagram Story / Reel (1080 × 1920)
    • YouTube Thumbnail (1280 × 720)
    • Web Banner / Full HD (1920 × 1080)
    • Twitter / X Post (1200 × 675)
    • Twitter / X Header (1500 × 500)
    • LinkedIn Banner (1584 × 396)
    • Profile Avatar (400 × 400)
  • 🔄 Output Format Conversion:
    • Keep Original format
    • Convert to WebP (recommended for ultra-small file sizes)
    • Convert to JPEG (universal compatibility)
    • Convert to PNG (lossless with transparent alpha channel)
  • 🔍 Interactive Split-Screen Before / After Quality Inspector:
    • Draggable vertical comparison slider.
    • Side-by-side or split visual comparison.
    • Zoom levels (100%, 150%, 200%) and batch navigation.
  • 📦 Batch Upload & ZIP Export:
    • Drag and drop single or multiple images.
    • Clipboard paste support (Ctrl+V / Cmd+V) for instant screenshot optimization.
    • One-click Download All (ZIP) bundle powered by JSZip.
  • 📢 Ad-Ready Layout: Clean non-intrusive placeholders above the tool and below the results area for future Google AdSense or sponsor banners.
  • 🚀 SEO & FAQ Section: Comprehensive step-by-step guide and structured FAQ using semantic <h1>, <h2>, and <h3> tags.

🛠️ Tech Stack


🚀 Getting Started

Prerequisites

  • Node.js (v18 or higher recommended)
  • npm or pnpm

Installation

git clone https://github.com/pankajbatham2010/PixelDiet.git
cd PixelDiet
npm install

Development

npm run dev

Open http://localhost:5173 in your browser.

Build for Production

npm run build

The compiled static assets will be in the dist/ directory, ready to be hosted on any static hosting platform (GitHub Pages, Vercel, Netlify, Cloudflare Pages, S3).


🌐 Deploying to GitHub Pages

This repository includes a ready-to-use GitHub Actions workflow (.github/workflows/deploy.yml):

  1. Go to your repository Settings on GitHub.
  2. Under Code and automation, click Pages.
  3. In Build and deployment > Source, choose GitHub Actions.
  4. Every push to the main branch will automatically build and publish the latest version of PixelDiet!

📄 License

MIT License © 2026 Pankaj Batham.

About

PixelDiet is a fast, free online image compressor and resizer that shrinks JPG, PNG, and WebP file sizes in seconds. Resize photos for social media, convert formats, and batch download as a ZIP. 100% private: all images process locally in your browser and never leave your device.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages