Ugly Hedgehog - Photography Forum
Home Active Topics Newest Pictures Search Login Register
Check out Panorama section of our forum.
Main Photography Discussion
Setting Some Things About JPG Format Straight
Page <<first <prev 3 of 8 next> last>>
Feb 20, 2018 08:15:58   #
LarryFitz Loc: Beacon NY
 
rmalarz wrote:
This is not going to be a "this format is better than...". It's simply going to clear up a few misconceptions bandied about on this forum regarding the jpg file format. In fact, it's only going to clear up one misconception about this file format. The jpg format is a lossy file format. This means it is going to lose data. An understanding of discrete cosine transforms would be helpful in understanding the process. However, suffice it to say, here's what this post is going to clear up.

If one opens a jpg file, looks at it, and closes it, nothing happens to the file.

If one opens a jpg file, looks at it, and saves it, it degrades.

This is just the nature of the jpg file format and the save algorithm. It's that simple. Open, Look, Close, nothing. Open, Look, Save, file changes.

Yes, one can edit a jpg. However, in addition to the edits one makes, the save process works just the same making additional changes to the file over which the photographer has no control. The only control the photographer has is how much more gets changed based on the amount of compression selected at the time of saving the file.

If you don't believe this, it's simple to prove. Using the diff function in UNIX, or the free Windows program windiff will show you the changes. Can you visually see them, perhaps yes, perhaps no. The changes are there none the less. Again, it requires nothing more than a Save to instigate a change to the file.
--Bob
This is not going to be a "this format is bet... (show quote)



Reply
Feb 20, 2018 08:23:52   #
classic320
 
This has been one of the most informative threads I've experienced on this site. Thanks!

Reply
Feb 20, 2018 08:39:02   #
kkdji1
 
I have not ventured into the world of PP outside of what I do in the PHotos editing program on my Mac laptop. I have only shot in Raw a few times. When I imported the files into Photo I wasn’t sure how to convert it to a jpeg or if I could even PP the raw file in Photos. Do you know if Photos can PP raw files? I am going to New Zealand tomorrow and am hoping to capture some great landscape photos and would love to shoot in both raw and jpeg.

Reply
Check out Software and Computer Support for Photographers section of our forum.
Feb 20, 2018 08:41:05   #
EdU239 Loc: The Northeast
 
rmalarz wrote:
This is not going to be a "this format is better than...". It's simply going to clear up a few misconceptions bandied about on this forum regarding the jpg file format. In fact, it's only going to clear up one misconception about this file format. The jpg format is a lossy file format. This means it is going to lose data. An understanding of discrete cosine transforms would be helpful in understanding the process. However, suffice it to say, here's what this post is going to clear up.

If one opens a jpg file, looks at it, and closes it, nothing happens to the file.

If one opens a jpg file, looks at it, and saves it, it degrades.

This is just the nature of the jpg file format and the save algorithm. It's that simple. Open, Look, Close, nothing. Open, Look, Save, file changes.

Yes, one can edit a jpg. However, in addition to the edits one makes, the save process works just the same making additional changes to the file over which the photographer has no control. The only control the photographer has is how much more gets changed based on the amount of compression selected at the time of saving the file.

If you don't believe this, it's simple to prove. Using the diff function in UNIX, or the free Windows program windiff will show you the changes. Can you visually see them, perhaps yes, perhaps no. The changes are there none the less. Again, it requires nothing more than a Save to instigate a change to the file.
--Bob
This is not going to be a "this format is bet... (show quote)


Am I correct in concluding that the size of the file, say 2 MB for a jpg from my G16, would go down over time? If so, what is the rate of loss per Save? Or does this vary depending on the software being used?

Reply
Feb 20, 2018 08:49:47   #
Rich1939 Loc: Pike County Penna.
 
rmalarz wrote:
The intent of the post was to clarify that editing wasn't necessary to change a jpg file. The Save function alone, without editing, will change the jpg. The post was not intended to open a door into all sorts of machinations that can be done once the file is open. I hope that clears up any misunderstandings and keeps the thread on track.
--Bob


Ha! Here on UHH 'Posting' = opening Pandora's box
sorry, sometimes I can't help myself

Reply
Feb 20, 2018 08:50:04   #
dsmeltz Loc: Philadelphia
 
via the lens wrote:
Does anyone have a technical reference that I could read to find out about this? So far, I have not been able to find anything on this "open and close" issue in my Manual of Photography, which is a sort of bible about technical issues in photography.


Which "Manual of Photography" are you reading? There are a number of books claiming that title.

Reply
Feb 20, 2018 08:50:19   #
jcboy3
 
rmalarz wrote:
This is not going to be a "this format is better than...". It's simply going to clear up a few misconceptions bandied about on this forum regarding the jpg file format. In fact, it's only going to clear up one misconception about this file format. The jpg format is a lossy file format. This means it is going to lose data. An understanding of discrete cosine transforms would be helpful in understanding the process. However, suffice it to say, here's what this post is going to clear up.

If one opens a jpg file, looks at it, and closes it, nothing happens to the file.

If one opens a jpg file, looks at it, and saves it, it degrades.

This is just the nature of the jpg file format and the save algorithm. It's that simple. Open, Look, Close, nothing. Open, Look, Save, file changes.

Yes, one can edit a jpg. However, in addition to the edits one makes, the save process works just the same making additional changes to the file over which the photographer has no control. The only control the photographer has is how much more gets changed based on the amount of compression selected at the time of saving the file.

If you don't believe this, it's simple to prove. Using the diff function in UNIX, or the free Windows program windiff will show you the changes. Can you visually see them, perhaps yes, perhaps no. The changes are there none the less. Again, it requires nothing more than a Save to instigate a change to the file.
--Bob
This is not going to be a "this format is bet... (show quote)


It's really not that simple. It is possible to do many different types of edit to a JPG file without degrading the image. There are lossless JPG editors available that perform many edit functions in a lossless manner. They do have to be written for it, so you need to be aware of what you are doing and what application you are using. Yes, the general photo editing applications do not support lossless JPG editing (yet), but that is not a characteristic of the JPG format.

See for example:

https://www.betterjpeg.com

Reply
Check out Film Photography section of our forum.
Feb 20, 2018 08:51:59   #
dcampbell52 Loc: Clearwater Fl
 
Hyperhad wrote:
Well said and simply explained rmalarz. This was one of the first things I taught my students when we began looking at editing images. The difference between lossy and lossless was a concept I had to get across to them.

It is easy to remember by the term used. If something in your image is lost, that is bad. If nothing in your image is lost, that is good. Of course, it depends upon how you will be using your images. Lossy files are smaller in size, and faster to send electronically. But you lose a bit of your image data as the computer "deletes" some data that can be replicated when the file is opened next. Lossless files are larger in size, and take longer to send electronically. But, no data is lost because the computer takes all the data in the image and copies it in toto.

The same applies to lossy and lossless compression. The more times you copy a lossy file, the greater loss in quality. Photocopy a page of text on paper. Now copy the copy. Repeat several more time. After you are 5 or 6 copies away from the original, the text will be degraded quite badly. The same applies to lossy files. Remember when you were in school, and your handout looked really bad, blurry, and hard to read? Same thing. The teacher made a copy of a copy of a copy *they likely had no electronic file of the handout, so they photocopied an old hard copy". Lots of teachers had to be dragged, kicking and screaming, into the digital age!

A lossless file will remain, for all intents and purposes, identical to the original. I know what format I want to use for my images!
Well said and simply explained rmalarz. This was o... (show quote)


Agreed!!, If I shoot jpg at all (and I only do it in certain situations), I will shoot RAW+Jpg. Its just that simple. Then I have a jpg immediately, for the person that wanted it. And, I can take a few minutes and process the RAW and make a much better presentation. People seem to forget that ANY editing, which includes cropping, will result in saving (thus degradation) of the photo. Yes, it may take 10 or more edits to be visual but they are there and not representative of my work.

Reply
Feb 20, 2018 09:17:37   #
camerapapi Loc: Miami, Fl.
 
Bob,we perfectly know that a JPEG file suffers some image degradation every time it is saved and we also understand the fact that it is a lossy file. As you very well know compression has a lot to do with the degradation of the image and the general recommendation is to work always with a copy leaving the original alone and to use a low compression when saving the original to preserve details. I like to save a good JPEG file as a TIFF knowing that the data will be properly preserved. I do not find labs in my area that print from TIFF files.

Although JPEG images degrade quality when saving it is not that easy to see the degradation. I do see in many of them that some sharpness is lost but it takes many saves to actually degrade the image to the point of making it useless. JPEG images are the universal file and if we start with RAW sooner or later we will have to convert to a JPEG and to a certain extent we will loose data from that RAW file. It does not matter if we processed the RAW image using Adobe RGB or ProPhoto, we are going to loose colors as we compress the file to sRGB. I have said several times in the forums that it is impossible to judge quality based on a file that has been compressed for Internet use. If anyone wants to see quality it is mandatory to look at the original.

Modern JPEG files are not the same JPEG files of 10 years ago. Manipulating those files were a nightmare at the time but modern JPEGs are of excellent quality and I use those files often with my photography at low compression to make sure I get the best quality possible. Olympus uses super fine compression with their JPEG files and the quality is excellent.

I do not want you or anybody else to misunderstand me, I am not saying JPEG is better than RAW. A RAW file has all the original data because there has been no intervention by the firmware of the camera but once we begin to convert to JPEG that original RAW file will degrade in quality, beginning with making a 12 bits image into an 8 bits one. Color degradation I already talked about when making the conversion from a wide gamut to a smaller one like it is the sRGB color space. How many millions of colors we can see I do not really know.

What I am saying is that we started with a file that had all kind of details and colors and part of them will be lost when we convert to a JPEG file even when our eyes in the majority of the cases will not notice the changes.
I find important to notice that invariably changes will take place every time a JPEG file is saved and that the best way to preserve quality is to keep the RAW image or to convert the original file to TIFF for future use. Working during editing in a non destructive way is also important to keep quality.

I use both files to my satisfaction and with care JPEG images can yield excellent quality. These are the facts I know.

Reply
Feb 20, 2018 09:34:53   #
bweber Loc: Newton, MA
 
I shoot raw on one card and JPEG on my second card, and usually ignore the jpeg and process the raw image. However there is a very simple solution to the problem of saving JPEGs that degrade. Use your software to create a duplicate JPEG and post process the duplicate. You can always return to the original and start over if you feel that you lost to much detail in post processing.

Reply
Feb 20, 2018 10:03:19   #
rborud Loc: Minnesota
 
rmalarz wrote:
This is not going to be a "this format is better than...". It's simply going to clear up a few misconceptions bandied about on this forum regarding the jpg file format. In fact, it's only going to clear up one misconception about this file format. The jpg format is a lossy file format. This means it is going to lose data. An understanding of discrete cosine transforms would be helpful in understanding the process. However, suffice it to say, here's what this post is going to clear up.

If one opens a jpg file, looks at it, and closes it, nothing happens to the file.

If one opens a jpg file, looks at it, and saves it, it degrades.


This is just the nature of the jpg file format and the save algorithm. It's that


simple
. Open, Look, Close, nothing. Open, Look, Save, file changes.

Yes, one can edit a jpg. However, in addition to the edits one makes, the save process works just the same making additional changes to the file over which the photographer has no control. The only control the photographer has is how much more gets changed based on the amount of compression selected at the time of saving the file.

If you don't believe this, it's simple to prove. Using the diff function in UNIX, or the free Windows program windiff will show you the changes. Can you visually see them, perhaps yes, perhaps no. The changes are there none the less. Again, it requires nothing more than a Save to instigate a change to the file.
--Bob
This is not going to be a "this format is bet... (show quote)


Thanks Bob this is very clear and concise. RBorud

Reply
 
 
Feb 20, 2018 10:14:29   #
DaveC1 Loc: South East US
 
tmac wrote:
Ok, so I shoot jpeg. At this point in life, I’m lucky to get the pics to a website where they can be seen and off the camera. I’m a mom taking pics of family and my kids activities. When I download/upload, I go to a couple of places. From card to external hard drive, from card to Shutterfly, and from card to Flickr. Does this degrade my jpeg each time? I mean, is my original on the card degraded? So if I go from card to External hard drive, then card to shutterfly, then card to Flickr, had is degraded 3 Times? Or just one time since I go back to the card to get the image? I’m not even sure my question makes sense. Hopefully someone can figure it out.
Ok, so I shoot jpeg. At this point in life, I’m lu... (show quote)


If I understand your question the answer is no. What your doing is file transfer. You are not opening the file in a program and then saving the file. You can transfer files, make multiple copies of .jpg files, even archive files to the cloud or an external hard drive without ever opening that file. As long as the file is not corrupted its still exactly the same file, and if the file were corrupted it probably would not be readable anyway.

Reply
Feb 20, 2018 10:22:07   #
srt101fan
 
rmalarz wrote:
The intent of the post was to clarify that editing wasn't necessary to change a jpg file. The Save function alone, without editing, will change the jpg. The post was not intended to open a door into all sorts of machinations that can be done once the file is open. I hope that clears up any misunderstandings and keeps the thread on track.
--Bob


I thought your original post was very clear, concise and helpful. It still is, despite the attempts by some to muddy the waters.

Reply
Feb 20, 2018 10:25:23   #
Mr palmer Loc: Currently: Colorado, USA, Terra, Sol
 
This is true, but I would point out that by using the term "degradation" repeatedly, you are scaring a lot of people away from doing their own work. Who wants to "degrade" their images?
Perhaps you could include some suggestion for doing the experiment yourself. Something like 1) shoot a detailed jpg image, 2) open and save it 10 times under different names, 3) pull the original and the final up and view them at 100% to see the differences.
This method may result in some surprises, but giving people the tools for individual investigation of truth is generally more in keeping with the spirit of the age we live in.

Walt

Reply
Feb 20, 2018 10:27:23   #
John_F Loc: Minneapolis, MN
 
There is a Wikipedia article entitled "Joint Photographic Experts Group" that tells about the various jpeg versions. It is written in 'techno-speak' and not for the faint hearted. One remark that one version is 60% less lossy than the original.

Reply
Page <<first <prev 3 of 8 next> last>>
If you want to reply, then register here. Registration is free and your account is created instantly, so you can post right away.
Check out Close Up Photography section of our forum.
Main Photography Discussion
UglyHedgehog.com - Forum
Copyright 2011-2024 Ugly Hedgehog, Inc.