Photo Forensics
Look for signs that a photo was edited: its metadata and embedded thumbnail, its JPEG encoder and quality, error levels, its grain, JPEG ghosts and areas cloned within it, without uploading it
Each analysis gives clues, not proof: read them together, and with what the photo shows.
Quantization tables
The photo is saved again as a JPEG at the quality chosen, and the difference brightened. Surfaces alike (same texture, same light) saved alike show the same noise: one much brighter or darker than its neighbors may have been pasted or retouched. Edges and fine detail are always brighter than smooth areas, so compare like with like. A photo saved several times at one quality comes out dark all over, its edits with it.
The grain of the photo, area by area: dark where there is little, bright where there is much. A camera leaves its noise everywhere, so surfaces alike (same light, same texture) show the same grain. Skin smoothed by a beauty filter, an area repainted or an object erased comes out darker than its surroundings, a hole in the grain. Fine detail (hair, grass, fabric) is always bright, and a photo denoised or compressed hard is dark all over. Areas blown out to white or black have no grain to measure: the photo shows through.
The photo is saved again at each quality below. A part pasted from a JPEG compressed harder than the rest differs least at that quality: in its tile, it turns dark while the rest stays light. Look for an area that darkens on its own; the whole photo darkens near the quality it was saved at. Only parts compressed harder than the photo are found.
Areas found twice in the photo, at the same size and angle, as when the clone stamp hides something or duplicates it: each copy is shaded with its twin, a line joining them. Regular patterns (tiles, windows, bricks, a crowd) repeat for real.
Cameras and phones store a small copy of the photo in its metadata. Some editing software changes the photo without updating it: then the thumbnail shows it as it was before. Slide the overlay to compare them. A crop or a change of light or colors makes them differ too.
These are clues, not proof: a photo can be edited without leaving any of them, and a genuine one can show some. Most traces are lost when a photo is shared on a social network or a messaging app, resized or screenshotted: it's compressed again and its metadata removed. Whether a photo was made by AI is another question: AI Image Check reads what it says about it.