|

In typical 'you never get something for nothing' fashion, the greatest asset of a jpg image is also its greatest downfall. Most people know that a jpg image is a compressed image, which means that it has been compressed using an algorithm that makes the file size smaller. This can be a huge advantage when trying to transfer the image electronically, which is what you're doing every time someone looks at your webpage. Some people know that the method used to create jpg images is what is called a 'lossy' compression algorithm, which means the image you end up isn't quite the same as the image you started out with. What a lot of people don't know is that every time you save a jpg image you decrease the quality of that image, which can be a real problem if you don't pay attention to what you're doing.

JPEG (pronounced "jay-peg") stands for Joint Photographic Experts Group, which is the name of the committee that originally wrote the standard. File extensions for this file type are jpg, jpeg, and jpe.

As a picture is worth a thousand words I'll give a couple of examples. What I did here was to open an image of my logo, which was originally created using Photoshop, and then created a jpg copy of that original file. I then opened that copy using Microsoft Paint, created another copy, and then saved that copy over itself about 20 times without making any changes to it. Here is an extreme enlargement (1200%) of the original jpg image created with Photoshop:



never save jpg 01

Here is what that image looked like after I performed multiple save actions in Paint, at the same enlargement:



never save jpg 02

You can see a noticeable degradation of the original image. Now, there are a couple of important points to make here:

  1. Any good graphics program, such as Photoshop, will allow you to select the amount of compression to use when saving your image as a jpg. Obviously, the higher the compression the lower your resulting quality will be.
  2. The original image, shown at the top, had a file size of 63kb. The bottom image had a file size of 29kb. It is your classic trade off of quality versus file size.
  3. The vast majority of the degradation occurred in the first save action by Microsoft Paint, where I do not get to choose the amount of compression to use. However, each subsequent save action further degrades that image as it is compressed just a little bit more.

This is not meant as a critique of Microsoft Paint, I could have achieved the exact same results using a very high compression rate in Photoshop. The reason I used Paint is to make this single point - you can forever change the quality of your original image by simply saving it. For that reason alone you should never, ever save over your original jpg image. Believe me, I know what it's like - you're in a hurry and without even thinking about it you click on 'Save', when all you really wanted to do was take a quick look at the image and then close it without making any changes. Too late, the original image is now gone - forever.

If you haven't already done so, create a workflow where you pull your original images into a safe place, a file location or external drive where you never modify them. Once you have your originals in a safe place you can create a copy of that image for any kind of modifications. That way you will always have the original file, in its original form and quality should you ever want to do anything else with it. The second you click 'Save' when working on your original jpg file you will lose the original forever (unless you have a backup). You can not return this new lower quality image back into its original higher quality source. Once compressed the original information is lost, and every subsequent save action on that jpg image further reduces its original quality.

Additional resources


Technorati tags:


Trackback URL for this post:

http://www.symplebyte.com/trackback/44

Why you should never u...


Truer words have never been spoken. I believe that after reading the piece in below, explaining the dangers of saving a jpeg the wrong way will help bring some semblance of piece back into your life......

Good advice

Yeah, people should definitly never save on top of a jpeg.. at least, save it as another name, or use a lossless (Png, PSD, bmp, whatever) format that you will use to make your jpegs later..

Kiltak
[Geeks Are Sexy] Tech. News

 

Re: Good advice

[Geeks Are Sexy]

Thanks for the feedback, I'll be stopping by your site later on.

 

> If you haven't already

> If you haven't already done so, create a workflow where you pull your original images into a safe place, a file location or external drive where you never modify them.

You shouldn't be working from jpgs in the first place. Create your originals using a lossless format. When you want to actually use the images in a webpage, save them out to jpg format. If you want to modify your image, go back to the lossless format image, make changes, save out to a jpg again. There should never be a workflow step of "open jpg and modify it...".

 

Ignore these yahoos (I bet

Ignore these yahoos (I bet most people nowadays don't even know what book 'Yahoo' is from). Sound advice the average Joe doesn't know...

 

yahoo's... i want to say

yahoo's... i want to say gulliver's travels. not sure though, i only skimmed through that book.

 

you got it! uhmm... kahless

you got it!

uhmm... kahless as in worf, et al?

 

Re:Ignore these yahoos

i shall remain nameless

Thanks for saying that, the average person is exactly the person this site is geared toward.

 

This is good advice for the

This is good advice for the novice people. I didn't know that this happend, so will stop doing it. Thanks.

 

Re: This is good advice for

Monty Pythony

I'm glad you found it useful, stop back anytime.

 

n00bz

There is alwayz graFyx n00bz

This happened to me once and I wish I knew more about it then. Any sound advice is good advice. Some of my own... use Photoshop more and avoid sticks and pine cones.

Tnx

 

Re: n00bz

Emesis

I agree on Photoshop, I'll be posting some simple advice on that as we go foward.

I exercised my option as the website admin to delete some of the derogatory comments, so 'avoiding sticks and pine cones' won't make much sense. Let's just say that not everyone visiting from Digg believes that the expertise level of this post is up to their standards. You can look here to see what I think about that, all I'll say here is that it is consistent with the purpose of this site

 

Rotate image

I'm an amateur photographer and I use ACDSee to autorotate my photos using EXIF data. There’s an option you can use called ‘Force lossless JPEG operations’.
Here’s my question: How lossless is the rotate operation, if you choose this option?
I don’t want to keep two versions of my original photos (double space needed), and still want them rotated, so you can view them on older machines without tilting your head.

Thanks, Roman

 

Re: Rotate image

Roman

While I'm not familiar with that software, a true lossless operation should not degrade the image. To be fair, you can work with jpg images within Photoshop and save them as a jpg using the highest quality/lowest compression setting with no noticeable loss in quality. There are two things I would ask myself:

  1. Is this an irreplaceable image? If so, I would save the original in a lossless format such as a tiff, then only work on copies. You should seriously consider creating a workflow for yourself where you always save the originals, so that you always have the pristine versions. There's another post about external hard drives and backup options here.
  2. What is the target for the image? If you know that the image is only going to be used as a small thumbnail and your original was taken with a 5 megapixel camera you will never see the degradation caused by the save as jpg, even if it is lossy. If I showed the images above in standard magnification I would defy anyone to pick out the original. It's just too small to see.

I would also try to get the answer from the software maker, they are the ones that should be able to tell you what process they are using in their save action.

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
More information about formatting options