Ugly Hedgehog - Photography Forum
Home Active Topics Newest Pictures Search Login Register
Main Photography Discussion
Saving JPEGS Many Times After Making Many Changes
Page <<first <prev 5 of 6 next>
Sep 8, 2016 12:35:12   #
TheDman Loc: USA
 
jeep_daddy wrote:
Jerry,

The part that you aren't quite grasping is that it's not just opening and then saving that same image 100x that is going to degrade the image, it's processing it and saving it over the original (in other words, using the same filename so that the original is overwritten). What I mean by processing is that you've gone and done changes to contrast, exposure, saturation, etc. One thing that really degrades an image is a curves adjustment.


Correct. And the bigger the adjustment, the more lossy each save will be.

Did my own test. Set up a Photoshop action that did the following:
1. Open file
2. Levels adjustment 0 - 1.20 - 255
3. Save
4. Close
5. Open file
6. Levels adjustment 0 - 0.83 - 255
7. Save
8.Close

Ran that action 50 times, so 100 saves. Here are the results.

Original
Original...

100 saves
100 saves...

Original zoom
Original zoom...

100 saves zoom
100 saves zoom...

Reply
Sep 8, 2016 12:58:13   #
jerryc41 Loc: Catskill Mts of NY
 
CLF wrote:
Jerry, I have not read any of the comments as of yet. I need to compliment you on the pugs. My Son has two of them and when they start snoring it gets loud. I can only imagine when all three start. I see no difference doing a double download. Thanks for posting a standard statement that you hear and read all the time.

Greg


Yes, it was laughable when all three got snoring. Now we have just two.

Reply
Sep 8, 2016 13:01:37   #
wdross Loc: Castle Rock, Colorado
 
TheDman wrote:
Correct. And the bigger the adjustment, the more lossy each save will be.

Did my own test. Set up a Photoshop action that did the following:
1. Open file
2. Levels adjustment 0 - 1.20 - 255
3. Save
4. Close
5. Open file
6. Levels adjustment 0 - 0.83 - 255
7. Save
8.Close

Ran that action 50 times, so 100 saves. Here are the results.


This is just what I would expect. Just opening a JPEG, doing a change (even a 100,000 changes), and closing the file will not cause any changes - until the file is saved and stored by the computer. Just closing a file does not save the file. It just saves the instructions as to what you want to do to the file once one hits the save button. When the save button is hit, all those changes, even if it is 100,000 changes, is executed and one new JPEG file is generated. That JPEG file will have thrown out some information due to compression. That information is not recoverable. As more and more saves, not closings, are done, more and more information is thrown out to the point moire patterns, computer generated patterns from the software and algorithms, are generated.

What jerryc41 did would be valid if he opened the JPEG, made changes, closed the file 100 times, and then save the file as one new JPEG, but I do not believe he generated 100 JPEG files. He generated just one new JPEG file with 100 actions done to it. His photograph would look hugely different if he had save his file 100 times generating 100 new JPEGs.

Reply
 
 
Sep 8, 2016 13:16:11   #
Dngallagher Loc: Wilmington De.
 
Rongnongno wrote:
Jerry's test is about creating a modification, saving.

Since Jerry does not close the original there is no compression over the compression. On that aspect he is right, there is no difference in quality.

The problem with this is that when we mention loss it is ALWAYS after reusing an image. This is why his test to 'prove' that there is no loss over saving 100 or 1000 times is grossly misleading, something few folks pay attention to.

This thread is how misinformation gets spread. You just have to read the post above mine to see how the error get propagated.
Jerry's test is about creating a modification, sav... (show quote)



Reply
Sep 8, 2016 13:31:30   #
Bill_de Loc: US
 
camerapapi wrote:
Jerry, in repeated occasions I have said in this forum that modern JPEG images are not the same images of the past.


Years ago when the best HTML editor was Notepad I helped a friend build a commercial website. I was new to digital photography and the camera I used for photographing the products and location were JPG, no choice. As we sent pictures back and forth, each of us making edits, we got to a point where we decided the finished images would be an embarrassment if we used them. That's when I started reading more about digital. We learned on our own, before reading it, that JPGs did indeed deteriorate with multiple edit and saves.

But, as CameraPapi pointed out, that was then and this is now.

I still believe the there is some loss of quality, since every time you save a JPG it tries to compress the file more. It does it by discarding information. The difference today is that we start with more information and compression algorithms have improved.

At a seminar years back Jeff Schewe, a PhotoShop guru of sorts, made a statement that every edit to an image effects image quality. He said individually it is negligible, but with enough edits (many, many) it could be noticeable. His point was that digital is all about numbers and the calculation done by the computer round numbers up and down. Over time those slight 'errors' are multiplied. The three Adobe engineers that were there all agreed with him.

IMHO it isn't a matter of does the image get degraded, but to what extent it occurs. If we can't see it in the end product, why worry about it.

--

Reply
Sep 8, 2016 13:39:57   #
cambriaman Loc: Central CA Coast
 
I think the corruption of image quality occurs in JPEG only when you actually change the image. Opening and saving it does not cause a recompression of the image as I understand it. I have no idea of how much of a change you would need to make, maybe just a minor crop of a few pixels off one edge might do it.

Reply
Sep 8, 2016 13:49:01   #
Rongnongno Loc: FL
 
cambriaman wrote:
I think the corruption of image quality occurs in JPEG only when you actually change the image. Opening and saving it does not cause a recompression of the image as I understand it. I have no idea of how much of a change you would need to make, maybe just a minor crop of a few pixels off one edge might do it.

Actually it does. Opening decompress and show the compression artifacts.

Saving this image re-compresses the image using the 'uncompressed' artifact from the previous compression. This is what I did when I posted my results. If I had used a greater compression ration the results would have been much worse. (cumulative compression comes to mind...)

When you edit an image and save over and over (w/o closing) there is no re-compression. This is what Jerry did and this is where the compression understanding error creeps in.

Reply
 
 
Sep 8, 2016 14:05:46   #
Dngallagher Loc: Wilmington De.
 
Visible on screen, easy to toggle between shots to see the results of deterioration due to jpg open, save, close - hardly a myth.

http://www.dpreview.com/forums/post/31964153

Reply
Sep 8, 2016 14:05:58   #
Bill_de Loc: US
 
cambriaman wrote:
I think the corruption of image quality occurs in JPEG only when you actually change the image. Opening and saving it does not cause a recompression of the image as I understand it. I have no idea of how much of a change you would need to make, maybe just a minor crop of a few pixels off one edge might do it.


If you open an image and make no changes there is nothing to save. You can do a save as if you want to change the name. This would create an additional file.

--

Reply
Sep 8, 2016 14:57:25   #
les2297 Loc: Central OR
 
The conclusion is ... you lose a lot of data.
The first pic is 609 KB, 2326 pixels x 1988
The 100 pic is 50.8 KB, 600 pixels x 515
Still works to view and show on your smart phone, but not worth much to make a nice 20 x24 in. enlargement

Reply
Sep 8, 2016 15:05:43   #
Rongnongno Loc: FL
 
les2297 wrote:
The conclusion is ... you lose a lot of data.
The first pic is 609 KB, 2326 pixels x 1988
The 100 pic is 50.8 KB, 600 pixels x 515
Still works to view and show on your smart phone, but not worth much to make a nice 20 x24 in. enlargement

Please check your... 'Data'
The pixel size does not change. You seem to be comparing the 'original' to UHH thumbnail.

Reply
 
 
Sep 8, 2016 15:13:32   #
les2297 Loc: Central OR
 
downloaded the files.. used properties to gather data (Win 10)
Rongnongno wrote:
Please check your... 'Data'
The pixel size does not change. You seem to be comparing the 'original' to UHH thumbnail.


you're right... the second file only loses about 25 KB of data.

Reply
Sep 8, 2016 15:19:24   #
jerryc41 Loc: Catskill Mts of NY
 
Rongnongno wrote:
Jerry's test is about creating a modification, saving.

Since Jerry does not close the original there is no compression over the compression. On that aspect he is right, there is no difference in quality.

The problem with this is that when we mention loss it is ALWAYS after reusing an image. This is why his test to 'prove' that there is no loss over saving 100 or 1000 times is grossly misleading, something few folks pay attention to.

This thread is how misinformation gets spread. You just have to read the post above mine to see how the error get propagated.
Jerry's test is about creating a modification, sav... (show quote)


As I said, I was not trying to prove anything. I simply presented the results after 100 saves. As I also said, I opened, modified, saved, and closed 100 times.

Reply
Sep 8, 2016 15:25:08   #
jerryc41 Loc: Catskill Mts of NY
 
wdross wrote:
What jerryc41 did would be valid if he opened the JPEG, made changes, closed the file 100 times, and then save the file as one new JPEG, but I do not believe he generated 100 JPEG files. He generated just one new JPEG file with 100 actions done to it. His photograph would look hugely different if he had save his file 100 times generating 100 new JPEGs.



That is exactly what I did. I selected a picture, modified it, saved it with a different name, and closed it. I repeated that process 100 times, and I have 100 very similar images. I renamed the first one "First Picture" and the last on "Picture #100."

I didn't do this to generate controversy, just to show what happened after I made 100 changes and saves. If you use a different procedure, you would probably get different results.

Reply
Sep 8, 2016 15:30:11   #
wdross Loc: Castle Rock, Colorado
 
A word of warning for all the UHHs that think the software and algorithms have changed that much for JPEG compression. Do your own test of opening a JPEG, modifying that JPEG, and then saving it as a new JPEG at least 10 times. It is my guess that you will find, with one's normal modifications to photographs, they will not want to venture much pass opening and saving the image pass three new JPEGs. I would suggest one decide at what point they want to stop.

Reply
Page <<first <prev 5 of 6 next>
If you want to reply, then register here. Registration is free and your account is created instantly, so you can post right away.
Main Photography Discussion
UglyHedgehog.com - Forum
Copyright 2011-2024 Ugly Hedgehog, Inc.