Color Inversion Tool: Negative Film Effect & Luminance Inversion
Invert colors on digital images, graphics, and scanned document negatives using instantaneous client-side pixel arithmetic.
Mathematical Proof: Color Negative Inversion
In an 8-bit sRGB color space, each color channel (Red, Green, Blue) ranges from 0 to 255. Inverting an image calculates the photographic negative by subtracting each channel value from the maximum value (255):
R_inverted = 255 - R_original
G_inverted = 255 - G_original
B_inverted = 255 - B_original
The alpha (transparency) channel is left untouched, ensuring transparent PNG and WebP graphics retain their original transparent boundaries.
Practical Applications: Dark Mode & Film Scanning
Color inversion serves vital technical and artistic functions:
- Digitizing Film Negatives: Inverting scanned 35mm film negatives reveals the true positive photograph.
- Dark Mode Asset Generation: Invert black-on-white line art, schematics, and vector wireframes into high-contrast white-on-dark graphics for dark-themed websites.
- Medical & Forensic Inspection: Inverting radiograph X-rays and thermal images enhances structural visibility of fractures and subtle tissue anomalies.
Pro Tip: Practical Application
When inverting color negative film, apply an orange mask color-balance correction to neutralize the natural orange dye base of classic color film stocks.