PCA Scanner

Decompose any image into its three principal colour components and view each one on its own. PCA finds the axes along which the image’s colours vary most — it is a way of looking at an image, not a test of whether it has been edited.

Drag & drop a file here, or

JPG PNG WebP GIF BMP AVIF Max 50MB • Processed in browser

Runs in your browser

3-Component Decomposition

Decomposes the RGB color space into three orthogonal principal components, revealing the dominant axes of color variation in the image.

Look at PC3 on Its Own

The third principal component holds the colour variation left over once the two dominant axes are removed. It is usually faint, so the contrast control is there to make it visible — read it as another view of the image, not as a verdict.

100% Private

All PCA computation runs locally in your browser via Web Worker. Nothing is uploaded to any server. Your images never leave your device.

Advertisement

How it works

What is PCA for images

Principal Component Analysis (PCA) transforms the three correlated RGB color channels into three uncorrelated components ordered by how much image variation they capture. The first component (PC1) typically represents overall brightness and resembles a grayscale conversion. The second (PC2) captures the main chromatic contrast — often warm-vs-cool tones. The third (PC3) holds the residual variation, which in most photographs is faint and looks like noise. Raising the contrast on PC3 is a way of inspecting that residue — it is a view of the image, not a test of its history. For tonal distribution analysis, pair PCA with the Histogram Analyzer. For resolution, DPI and edge detail, see the Quality Analyzer.

What PCA does not tell you

This page once scored images on PC3’s share of the colour variance and called a high share a sign of compositing, colour manipulation or hidden data. That was measured against controls and it does not hold: a steganographic embed and its own original agree to two decimals, a half-and-half composite reads like an ordinary photograph, and the inputs that scored highest were a colour chart and random noise — neither of them touched. The share tracks how broad the image’s colour range is, which is a property of the scene. The score was removed rather than re-thresholded. Use a tool built for the question you are asking: for AI detection, the AI Detector. For noise pattern analysis, try the Noise Analysis Scanner.

Eigenvectors and variance

The eigenvectors describe the direction of each principal component in RGB color space — they tell you which mix of red, green, and blue makes up each component. The eigenvalues measure how much variance each direction captures. In a typical outdoor photo, PC1 might explain 90% of variance with an eigenvector close to equal RGB weights (luminance), while PC3 explains under 3%. A wide-gamut image spreads its variance further down the list than a photograph whose colours cluster on one axis; that is a description of the palette, not of the editing. For per-channel statistical breakdown, see the Histogram Analyzer. For bit-level channel inspection, try the Bit Plane Analyzer.

Steganography: use a tool that measures it

A least-significant-bit payload changes pixel values by one step, which is far below the scale PCA works at: an image with every channel’s LSB overwritten and the untouched original produce the same component figures to two decimals. PCA is the wrong instrument for this question and this page does not claim otherwise. For steganography detection, use the Stego Scanner. To view the LSB planes directly, see the Bit Plane Analyzer. For compression-based detection, try the ELA Scanner.

The PCA Scanner processes your image entirely in the browser using a Web Worker for the matrix computations. The Jacobi eigenvalue algorithm decomposes the 3×3 covariance matrix to find the principal axes of color variation. Use the contrast slider to amplify subtle patterns in PC2 and PC3, and download any component as a PNG for further analysis. For a comprehensive forensic workflow, visit the photo forensics hub. To check full image metadata, start with the EXIF Checker. Learn more in our articles on image forensics guide and detecting edited photos.

Frequently Asked Questions

What is PCA and how does it work on images?

Principal Component Analysis (PCA) is a mathematical technique that finds the directions of greatest variation in data. Applied to images, it decomposes the three RGB color channels into three new uncorrelated components. PC1 captures the most variation (usually brightness), PC2 the second most (usually color contrast), and PC3 the least. The tool computes a 3×3 covariance matrix from all pixel colors and finds its eigenvectors and eigenvalues.

Can this tool tell me whether an image was manipulated?

No, and it no longer tries to. This page used to show a verdict based on how much of the colour variation fell on PC3. That figure was measured against controls and it does not separate edited images from untouched ones: a full-payload steganographic embed and its own original agree to two decimals, a composite covering half the frame reads the same as a normal photograph, and the only inputs that reached the old red band were a colour chart and random noise, neither of which had been touched. The verdict was removed rather than re-thresholded. What remains is a viewer: look at PC3 with the contrast raised if you want to inspect the residual colour variation, and confirm anything you find with a tool that measures what you are actually asking about.

What does variance explained percentage mean?

Variance explained tells you how much of the total color variation each component captures. It describes the colour range of the scene: most photographs put 85–95% on PC1, because their colours lie close to a single axis, while an image with a wide gamut — a colour chart, a graphic, independent per-channel noise — spreads its variation across all three. A low PC1 or a high PC3 means broad colour, not editing.

How is PCA different from looking at individual RGB channels?

RGB channels show fixed color separations — red, green, and blue as recorded. PCA finds the optimal separation based on the actual color distribution in each specific image. This means PCA can reveal patterns that exist across multiple channels simultaneously, which would be invisible when viewing R, G, or B individually. PCA is particularly effective at separating signal from noise.

What does the contrast slider do?

The contrast slider multiplies the difference of each pixel from the midpoint, making subtle variations more visible. This is especially useful for PC2 and PC3 where the actual variation may be very small. At 1.0× you see the normalized component as-is. At 3.0× or higher, faint patterns become clearly visible. The enhancement is applied only to the display — the underlying data and statistics remain unchanged.

Is my image uploaded to a server?

No. All PCA computation runs entirely in your browser using a Web Worker thread. The image data never leaves your device. No pixels, metadata, or analysis results are transmitted, stored, or logged on any server.

What resolution is the image analyzed at?

Images larger than 1500 px on the long edge are scaled down to that size before the components are computed, so a very large photo is examined at working resolution rather than at full size. The principal components themselves survive this well, since they describe the distribution of colour across the image rather than fine detail, but the per-pixel projections are taken from the scaled copy and small regions lose definition with it. The Analysis Details panel reports both the uploaded dimensions and the resolution the analysis actually ran at. Images smaller than 10 x 10 px are rejected.