sublime.tools

Invert image colors

Quickly invert the colors of an image.

Instructions

Upload an image (in .png, .jpg,... format) and click Convert. In a moment, the result will appear, and you can download it by clicking the Download button.

How does it work?

Internally, the tool takes each pixel, retrieves the values of the three RGB channels (red, green, and blue) that compose it, and inverts them. Here's an example of how it's done:

Suppose we have a pixel with the following RGB color value:

Red: 100

Green: 150

Blue: 200

If we invert these values by subtracting each of them from 255 (the maximum value for an RGB color channel), we get:

New red value: 255 - 100 = 155

New green value: 255 - 150 = 105

New blue value: 255 - 200 = 55

So, the pixel that originally had an RGB color of (100, 150, 200) after inversion would have an RGB color of (155, 105, 55). This process is repeated for each pixel in the image, resulting in an image with inverted colors.

Support this website

If this page has been useful, share it with your contacts by email, social networks,... etc.