Sepia / “Antique” Image Effect
I’m guessing you’ve seen this style of image before - a sort of “antique” filter than can make any photo look like it was taken with a very old camera (or even a daguerreotype).
There are many ways to programmatically generate images like this, and in this article I’ve put together one that does more than just make the image look “brown.” This filter involves several steps (fading, multiplicative brightness, and gamma correction, among others) and results in a conversion that not only adds a sepia coloring, but also gives an image a histogram more in keeping with older photos.
As with all graphics code on this site, the algorithm is fast enough to be applied in real-time.
Download the sample app and source code from GitHub
For a more advanced version of this effect, check out the source code for the “antique” filter in PhotoDemon, my open-source photo editor. Here’s a screenshot of PhotoDemon’s antique dialog, which provides multiple user-adjustable settings: