A browser-based tool for compressing images using Principal Component Analysis (PCA). Upload an image, adjust the number of principal components, and see the compression in real time with detailed visual insights.
- Drag-and-drop or click-to-upload image input
- Real-time PCA compression with adjustable component count
- Side-by-side original vs compressed image comparison
- Interactive insights dashboard:
- Scree plot of eigenvalues
- Cumulative variance explained chart
- Top eigenvector visualization
- Per-component variance share pie chart
- Detailed stats: variance retained, compression ratio, top eigenvalue dominance
- Step-by-step explanation of how PCA image compression works
Open index.html in a browser — no build step or server required. The app loads ml-pca from a CDN.
- Upload an image (PNG, JPG, BMP, WebP)
- Use the slider to adjust the number of principal components
- Observe the compressed result and PCA insights in real time