Search This Blog

What is a JPEG Artifact?

Example of jpeg artifactsArtifacts aren't just things that archaeologists dig up; they also show up in jpeg files.

The jpeg file format was developed as a compressed image format in the "bad-old-days" to save space on expensive hard drives and for display on the web. Just think back to the early days of the Internet when we all had slow dial-up connections that delivered email not much faster than snail mail, to the sound of "You've got mail". In those pre-broadband days, the emphasis was on small file size. Ta dah! JPEG and file compression to the rescue.

The JPEG format is called a "lossy" file format. The opposite of "lossy" is "lossless". Lossy is one of those geeky words that get made up to make long expressions short. Basically it refers to the fact that you will lose data when the lossy file-type is compressed.

Just when does a "lossy" file get compressed? Answer: When you save it.

So if you take photos in jpeg, or convert another image format, such as tiff, to jpeg by doing a "Save As jpeg", you are compressing the file each time you save it. Just what does compression do? Well it samples the pixels that are next to each other and if the surrounding pixels are the same or close to the same in their image information, the small amounts of data that make up the differences are thrown away and substituted with one piece of information for all of the pixels that formerly each had slightly different information. The outcome is a smaller or "compressed" file.

None of this is noticeable to the eye when you have saved the file only once, but when you compress the file multiple times by saving it over and over as you work on it, you are on the way to turning your beautiful photo into a Roman ruin or a broken Grecian urn. Each time you save the file, a little more image information is discarded until you get to the point where you end up with mere "artifacts". All that is left is for you to read some Keats and dream of beauty that once was.

Just like in archaeology, an artifact is a remnant of a larger whole that once existed intact. So jpeg artifacts are what remains of your original pixel information before you threw away much of that information each time you saved the file.

The example of jgeg artifacts that I have posted with this topic was once a photo of a cow I took on a trip to Mexico almost 10 years and three cameras ago. At the time I had just gotten my first version of Photoshop and was completely clueless. This could have been a great photo before I ruined it in my ignorance.

So stop saving your jpeg files over and over and keep an eye out for my next post which will go over some steps you can take to avoid jpeg artifacts in your images.

Gallery of examples for the "What is...?" series


Subscribe by email Your subscription will begin only after you activate it by responding to the email you will receive from "FeedBurner Email Subscriptions" immediately after submitting this request. If you do not see the email within the next minute, please check your spam folder.

Comments

Do Not Disconnect - The Real Digital Divide

The fly in the ointment, Opito Bay, around 2007. This post was originally published in November, 2007. Almost two decades on, the photograph and the argument both feel — if anything — more relevant than they did then. I have updated this post lightly in May, 2026, some 19 years later! The Photograph I was on holiday in Opito Bay on New Zealand's Coromandel Peninsula, sitting on the couch in the place we were staying at. A friend's iPod was resting on the coffee table, on top of a copy of The Economist from March 2005, whose cover story happened to be titled "The Real Digital Divide." A fly landed on the iPod's click wheel and stayed there. I reached for my camera, took the shot, and edited it later in Photoshop to give it the grungy, oversaturated look you see above. The fly on the iPod along with "The Real Digital Divide" struck me — immediately, and with a kind of emb...

Samoan Youth

This young man was preparing with his friends for his moment of fame on the stage at the Samoan Village at the Polynesian dance festival called Pasifika in Auckland in March this year. Samoan Youth Canon EOS 20D 1/30sec at f/20 ISO 200 Canon 70-300mm lens at 300mm

Anza-Borrego Wildflowers

Anza Borrego Desert State Park California Wildflowers This cluster of wildflowers is typical of the flowers in Plum Canyon in Anza-Borrego Desert this spring. Because of the dry and harsh environment, most of the flowers are tiny like the three in this photo. But what they lack in size, they make up for in color. It's pretty difficult to try and identify all these flowers, but I'm pretty sure the white one is Desert Pincushion. Help out if you can. I've been using the CalFlora.org website to try and identify the flowers in this series.