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

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 More photographs from the same Pasifika Festival day can be found in my new post, Faces of Pasifika 2007 — A Day at Auckland's Pacific Festival .

A Grunge Botanical Collection — Five Painterly Garden Pieces

Over the past few weeks I've been building out a small collection of botanical pieces using photos taken in my garden here in Irvine, California, (and in one case out on a hiking trail here in SoCal), and using AI assistance to give each one a grunge, painterly treatment — dark, richly textured backgrounds with warm gold light breaking through, turning garden snapshots and trailside finds into something closer to old varnished still-life paintings than straight photography. Here's the full set so far. Epiphyllum oxypetalum — Queen of the Night, Painterly Botanical Art A night-blooming cactus that flowers just once or twice a year, for a single night — three blooms at different stages caught in one frame from a night it happened in my garden. Kangaroo Paw — Painterly Grunge Botanical Art Australia's velvety-flowered native, grown in my own garden, its stems reaching in different directions the way it actually grows rather than posed into symmetry. ...

A Steindachner's Ebony Tarantula at Crystal Cove

I crossed paths with this fellow on a hike at Crystal Cove State Park this morning, along the Fenceline trail. I posted it to iNaturalist as soon as I got home, and within a few hours had it confirmed by several people: a male Steindachner's ebony tarantula ( Aphonopelma steindachneri ). Turns out the timing wasn't a fluke. Males of this species leave their burrows specifically to search for mates between July and October, so this was a textbook-timed encounter rather than an unusual one — good to actually check that before assuming, since my first instinct was that a July sighting seemed early. After his photo session, I gently nudged him with a stick and he scurried off the trail into the chaparral, safe from being run over by a mountain biker or stomped by an arachnophobic hiker.  Aphonopelma steindachneri is native to the coastal ranges of Southern California and northern Baja California, and it's one of the tarantulas you're genuinely most likely to run into ...