What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Removing jpeg artifacts


pdog182

Well-Known Member
Messages
62
Likes
0
First, I have to ask if the red dots in the subject's hair are in fact jpeg artifacts? The picture was taken with a sony digital camera. I'd like to hear any suggestions for getting rid of the annoying red dots. I've already tried removing noise in each channel with noise, blur, and unsharp mask filters, and have seen some improvement, but not enough. By the way, this picture looks a lot worse at full resolution.
 
Here's the fix using the NeatImage software. I'd like to be able to do this in photoshop.
 
We do need a full size image pdog182, because I think that we're all guessing what you mean with the red dots in the hair and jpeg artifacts.

I can understand that the shot is too big to post on this board, but can you at least post a cropped section of the original, one that is not resized.
 
I think you did more than using Neatimage in the 2nd image ;)

I use Neatimage myself for one year now.
I use it to remove noise and sharpen at the same time, but Neatimage never changes color or brightness values like it did in your example [confused]
 
You're right. In fact, I over-brightened the original so you could see the red dots better. Here's a cropped version of the original, slight levels adjustment. The original is pretty dark
 
I agree that a zoomed detail view would be helpful for seeing the exact problem... but from what I see and your description, I don't think you're dealing with pure jpeg artifacts.

Regardless, here's what I see so far. You have a very obvious red color caste. If you balance your colors a bit to remove that caste, you will probably alleviate the color spots in the process. I think you're getting some hotspots in your red channel probably due to lighting and ambient colors. If you tone down the red caste, it should also tone down those red spots while you're at it. If it is indeed noise, by blurring then unsharping a channel you're removing and then replacing the noise. If you must unsharp, I would suggest it in small doses and to the composite channel after you do a blur on the single color channel. Remember that applying a blur to each channel is just like applying a blur to the composite image. I'm not sure which you're doing from your decription, so I thought I'd throw that out. Generally when you're working with pixel noise like the kind introduced with bad digital shots, you only have to worry about one channel (usually it's blue with digital cameras). If you do a blur there, it will often fix a majority of the noise problems in a photo. You can usually do pretty heavy "fixing" on a single channel without shifting the color of your composite image. It's really case by case though.

Hope that helps some, if not, more detail on the photo will help diagnose the problem :)
 
This has nothing to do with jpeg artifacts.
Jpeg artifacts look like in my attachment.

Let me make one thing clear; Photoshop can't do what Neatimage can....period. What ever tricks you use; it's impossible.
Sad, but it's the truth. I can even proof it with every noisy picture ;) Neatimage is based on a totally different approach.

Mindbender already posted all the information you need to do it in Photoshop.

I never use Photoshop to remove noise like this; you might be able to remove the noise, but you will also lose a lot of details.
 
*sigh* That's what I get for typing a long message, you snuck in while I was writing my essay ;)

Okay, it looks like you've got jpeg issues to me. Low funky lighting and not the highest quality file format are giving you some pretty common consumer level digital camera problems.

Here's what I did... I gaussian blurred the blue channel about 2 pixels to knock the edge off the major jpegies on that channel. Then I used a light blurring combined with a dust & scratches and a median noise to lighten the contrast on the distortion but still keep the lines from fuzzing out too much. Then I went back and normalized the midtones a little with a simple levels adjustment (very simple one actually, just clicked the midtones on the wall and poof, no more red). A little over saturated for me, so a minor desat with hue/sat adjustment. Then some curves just to bring the shadows out a little since there was a LOT of contrast (direct flash lighting would be my guess?).

This seemed to fix most of the issues to what looks like an acceptable level. It kind of depends what you want to do with the photo. You also need to do any other cleanup after that... some red-eye was removed, but an actual red-eye technique would benefit. Also, any other cloning or whatever I would do at this point after you've balanced the colors, so you don't have to go back and redo it.

Hope that helps.
 
The amount of noise you have is determined by the quality of the camera and the ISO setting.
 
Gaussian, if you open the file in photoshop and check out the blue channel, you'll see what appears to be jpeg artifacts (or I've always attributed them to that).

You see that EXACT pattern in most consumer level digital cameras... heck, even in a lot of pro cameras. It's the blue CCD not receiving enough light data and getting to contrasty. Then with jpeg building it's algorithm based on image contrasts, it gets more distorted.

At least, that's how I understand it. Regardless, the solution is roughly the same as for pure jpeging, you simply do it to the individual channels.

OH... something I forgot in my run down. I tried to use unsharp and it just kept bringing back the noise... so I used a highpass/overlay instead and it seemed to work much better. I just masked out the hair and some of the face because it started to get noisey again.

I hate dealing with that stuff... digital noise is a pain because it's a lack of data in the photo, just as bad as if you'd underexposed or something. Sometimes it's worse because it's not a global problem... it's a bunch of little problems ;) Good luck.

<edit> We're just playing thread-tag now aren't we. :rofl: </edit>
 
Okay, you gurus have been a lot of help.

Gaussian, I have a pretty good consumer camera (sony dsc-p9 4megapixels). I get great day pictures and lousy flash pictures. I've never adjusted the ISO, i'm not really sure what it does even, so I'll give that a go and see if that makes me feel a little better about my purchase. Also, can I assume that you'd give the go ahead on purchasing Neatimage?

Mindbender, I tried your techniques with pictures under the same conditions and there is indeed noticable improvement. Destaturating midtones, highpass overlay, this is all good stuff that i've not seen before.

Thanks to both of you :perfect:
 
Sorry Mindbender, this is a problem that has to do with noise, not with JPEG.
Take any consumer level camera and photosgraph with TIFF under the same circumstances and you get the same noise.
Jpeg doesn't compress the RGB channels separately, jpeg affects a flat image. The noise is caused by the quality of the camera and the ISO setting, nothing else. If jpeg would cause these amount of artifacts, then they would also be visible in this amount on any picture taken outiside with enough natural light available.

pdog182, yes, that is a descent camera but with all respect nothing compared to the top brand digital SLR's. These cameras can have their shutter open for several minutes without almost creating any noise.
But then you talk about cameras that cost more than $2,000 US.
 
Great info both Gaussian & MindBender! :perfect:

My results:
1. Auto Color Correction (Levels/Options - Find Dark & Lights Colors - Snap Neutral Midtones and 'play' with the midtone color)
2. Median Filter
3. G-Blur on both the red & blue channels
 
Looks good Wendy; straight to the point with only 3 steps without damaging too much colour or brightness information ;)
 
wbis ? I tried something similar but I still was seeing christmas colors in the hair I wanted to get rid of, which is why I did a hue/sat and some selective median to the channels. But your method is also a lot faster.

Gaussian ? You're probably right. Most consumer level cameras are default to shoot in JPEG and often it's impossible to switch out of that mode, so since I've always gotten the files in jpeg format, I guess I've just been making a mental leap. I think I kind of knew that, but was getting caught up in the nominclature. Yeah, noise is going to be a problem with shooting in lower lights even with a traditional chemical film or a high end digital camera. Part of the reason you experience this in the blue channel is that blue light takes up about 1/3 the size of the spectrum as either red or green. So there is much less gradiational data available, hence, less light makes more drastic contrast shifts. I guess if I'd thought about it long enough I probably would have posted different. Like I said, the solution is basically the same... shoot with more fill lighting or deal with the noise in the channels.

I think a lot of people get in the mindset a lot of times (myself included), that you can "photoshop it later" and don't worry so much about taking a good shot. Something like that was a spur of the moment snapshot, but it's amazing how many posed portraits I see with the same issues. It's always better to fix your lighting and dof beforehand rather than try to play catchup later. Glad you were able to find something that works. Yes, for a consumer level camera, those sony's are pretty good quality. They do have issues with shadow data though. To alleviate some of that noise, try turning off the flash and using incandecent or halogen lighting if possible for fill... the flash tends to really overpower the photo on those camera. A flash is only good to about 12 feet anyway... so generally it's not that useful.

Party on :)
 
Great info, MindBender! I love that fact that you take the time to share your knowledge in a simple to understand way. You make 'practical' sense! :perfect:
 

Back
Top