A browser-based tool that allows you to download and compress images from any website. Simply enter a website URL, and this tool will fetch all images and compress them automatically. Perfect for content creators, developers, and anyone who needs to optimize images from the web.
Try it now: Website Image Compressor
- 📥 Download images from any website
- 🗜️ Automatic image compression
- 📊 Shows original vs compressed size comparison
- 📦 Bulk download as ZIP
- 🎯 Smart filtering of tracking pixels and ads
- 💻 No backend required - runs entirely in browser
- 🎨 Clean, modern UI with Tailwind CSS
- HTML5
- JavaScript (ES6+)
- Tailwind CSS - For styling
- browser-image-compression - For image compression
- JSZip - For creating ZIP archives
- AllOrigins - CORS proxy for fetching website content
Visit https://abhishek-bhatkar.github.io/website-image-compressor
-
Clone the repository:
git clone https://github.com/abhishek-bhatkar/website-image-compressor.git cd website-image-compressor -
Start a local server:
# Using Python 3 python3 -m http.server 3000 # Or using Node.js npx serve
-
Open your browser and navigate to:
http://localhost:3000
- Enter a website URL in the input field
- Click "Fetch Images" to start downloading and processing images
- Wait for the images to be processed
- You can:
- Download individual images by clicking their respective download buttons
- Download all compressed images as a ZIP file using the "Download All" button
- Automatically filters out tracking pixels and ad-related images
- Excludes images smaller than 100 bytes
- Skips images larger than 15MB
- Removes duplicate images
- Filters out tiny images (less than 10x10 pixels)
- Compresses images while maintaining quality
- Maximum output size: 1MB
- Maximum width/height: 1920px
- Uses Web Workers when available for better performance
- Timeout for slow image downloads (10 seconds)
- Graceful handling of CORS issues
- Detailed error reporting
- Progress updates during processing
- All processing happens client-side
- No data is sent to external servers (except through the CORS proxy)
- No storage of user data
- Safe handling of cross-origin requests
- For best results, use websites that don't block image downloads
- Some websites may block cross-origin requests
- Large websites with many images may take longer to process
- The tool works best with standard image formats (JPEG, PNG, GIF, WebP)
- Some websites may block image downloads due to CORS policies
- Very large images (>15MB) are skipped
- Some websites may detect and block automated access
- Browser memory limitations may affect processing of many large images
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Abhishek Bhatkar
- GitHub: @abhishek-bhatkar