There are other methods to achieve similar results, some of them are particularly good for cases in which the scan was far from good, or when the there is too much grain on the picture, or when the subject has really bad skin problems that generate lots of contrasts on the skin, etc. These other techniques involve using blending modes over particular areas, lots of layers, and lots of layer masks, it would be a pretty heavy tutorial to make and follow, so become familiar with this process first, as it will give you a good starting point, in the meantime become familiar with layers, blending modes, and layer masks, which are the best tools for any photographer.
I tried to explain each step in a simple way and thinking about people that are not very skilled with Photoshop, the images should help you follow the process, remember you can click on any image to open a new window with a larger image, feel free to email me if I missed something or you have any questions. Good luck!
Out of Gamut: Thoughts on a Sharpening Workflow Sharpening is a critical step in digital imaging, yet few of us are satisfied with the results. Using research he conducted for a commercial sharpening product, Bruce Fraser argues for a new approach to sharpening that's based on three imaging phases: capture, creative, and output.
In a previous column -- which now seems a very long time ago -- I advanced the notion of using a two-pass approach to sharpening. Since then, I've taken a much longer, harder look at the whole issue of when and how to sharpen images. Disclaimer: Much of this article stems from research I undertook with the goal of producing a commercial product (Pixel Genius's PhotoKit Sharpener). But this piece isn't about that product. Rather, it's about a sharpening philosophy of which the product is but one implementation.
Sharpening is one of the most-overlooked yet most-essential components of the digital-image-reproduction workflow. I'm often asked when to sharpen, and what settings to use: The truth is that neither of these questions has a single, let alone a simple, answer.
Why Sharpen? We need to sharpen for several reasons, each of which imposes its own demands. But more often than not those demands contradict each other.
Whenever we turn photons into pixels, we lose some sharpness, because no matter how high the resolution of our capture devices, they sample a fixed grid of pixels, turning the continuous gradations of tone and color that exist in the real world into discrete pixels.
Sharpening can be a creative tool. Sometimes we want to make the image sharper than it really was, to tell a story, make a point, or emphasize an area of interest.
When we turn pixels into halftone dots or stochastic dithers of inks, or even into continuous-tone dots on dye-sublimation printers or film recorders, we lose sharpness again. So our output devices also introduce some softness.
We need to apply sharpening to counteract the softness introduced by both capture and output, and to satisfy our creative goals.
The Sharpening Problem
The problem inherent in trying to achieve all sharpening goals in a single pass is that we need to sharpen images for at least three basic reasons, and they often present conflicting demands. Why is this?
The capture process, whether scanned film or direct digital capture, imposes its own noise "signature" on the image. We want to sharpen the detail without exaggerating the noise, so successful sharpening needs to take into account the relationship between image detail and the noise signature of the image source, whether film grain or a digital camera filter mosaic. Incorrect sharpening makes the grain or noise more rather than less obvious, and sometimes even obscures the detail instead of enhancing it.
Good sharpening is content-sensitive. Apparent sharpness depends on the contrast along what we see as edges. A close subject with soft detail such as a headshot has wider edges than a high-frequency image such as a forest full of trees. If we use the same sharpening for both, the results will be less than optimal on at least one of the images. Incorrect sharpening either obscures small details, or oversharpens textured areas such as skin tones.
The output process introduces softness too, and we need to sharpen to counteract it. But the sharpening required for a traditional ink-on-paper halftone may be fairly different from that required for an inkjet using error diffusion rather than a conventional halftone, and different again for a true continuous-tone printer such as a Durst Lambda or Fuji Pictrography. Incorrect sharpening either produces insufficiently sharp results, or makes obvious, objectionable sharpening haloes along high-contrast edges.
The Case for Three
I've never been happy with the results when I try to address all these problems in a single round of sharpening. Over the years, I've flirted with a two-pass approach to sharpening, performing a round of gentle sharpening close to capture time, and a second round tailored for the specific output process, but I was going as much by instinct as anything else.
Since we sharpen for three very different reasons, why not split the sharpening into three separate stages: one close to capture, one in the creative phase, and one round of sharpening tailored specifically for the final output? The obvious reason not to do so is that you'll end up with a hideously oversharpened mess. But based on extensive testing and research, I now believe that it's not only possible, but also optimal to break up sharpening into these three stages. Obviously, caution is required, but before we look at how to make such a sharpening workflow, let's look at the advantages.
First, applying a modest amount of sharpening close to capture time makes it much easier to make good judgments about fine-tuning contrast. Sharpening is essentially a localized contrast adjustment -- increasing the contrast along edges -- and global Unsharp Masking can often change the tonal balance of an image in unintended ways. Nudging the image towards reasonable sharpness early on helps the editing process, and gives you a solid floor to stand on when it's time to make creative sharpening decisions.
Second, uncoupling capture and creative sharpening from sharpening for output lets you keep a single master file to which capture and creative sharpening have already been applied, and from which you can create different iterations for different print processes. Once the particular version is at final output size, you can apply an output sharpen that's specifically tailored for that output process.
The Sharpening Workflow Solution When I looked at the Big Three factors that sharpening has to address, I was struck by their resemblance to the color management problem. At the risk of drawing a parallel from one incomprehensible subject to another, we can make an analogy between the sharpening workflow and a color management workflow.
The conversion from a capture color space to a Photoshop working space for editing is analogous to applying a source-specific capture sharpen. The tone and color edits we make in the working space are analogous to applying creative sharpening. The color conversion we make to an output profile for output on a specific device is analogous to output sharpening. The master image contains "device-independent" sharpening that holds up well through resizing operations, and the final "device-specific" sharpen is applied to the output file at output resolution.
Translating this workflow concept to sharpening is actually rather simple. Instead of trying to handle all the different issues that affect sharpening in a single edit, the sharpening workflow splits sharpening into three stages:
Capture Sharpening is applied early in the image-editing process, and just aims to restore any sharpness that was lost in the capture process.
Creative Sharpening is usually applied locally to accentuate specific features in an image-for example, we often give eyes a little extra sharpness in head shots.
Output Sharpening is applied to files that have already had capture and creative sharpening applied, after they've been sized to final output resolution, and is tailored to a specific type of output process.
Dividing sharpening into these three phases lets us handle the competing needs separately. We compensate for the image source and image type using capture sharpening, without having to worry about output issues, We apply creative sharpening directly to the image at hand without having to worry about image sources (since they've already been addressed by the capture sharpener). So output sharpening can then concentrate solely on the needs of the output process since we've handled the other problems in the two previous phases.
Implementation and Techniques Creating a sharpening workflow in Photoshop, and making that workflow work, requires patience, skill, and a willingness to toss any cherished dogmas. In the early stages at least, it also demands a willingness to print images that look downright scary on screen -- more on that later.
Capture Sharpening. Capture sharpening must be done carefully: I apply Unsharp Mask to a pixel layer in Luminosity mode, using an edge mask either as a layer mask, or as the selection for the sharpened pixels. That way, the sharpening is non-destructive and the luminosity blending prevents color fringing. I can modify the global sharpening strength by varying the opacity of the sharpening layer, and I can modify the local sharpening by changing the contrast of the mask.
Building edge masks is relatively simple. Start out with a channel that has good contrast along the edges you want to emphasize -- sometimes you can simply duplicate one of the color channels, but Photoshop's Calculations feature offers a formidable array of options for obtaining a channel with the necessary contrast.
Once you have the channel, run the Find Edges filter (lurking in the Filter>Stylize menu). It does a decent job of finding the edges, but you need to invert the result for the mask -- you want the edges to be white, so that they'll get sharpened, and the non-edges to be black, so that they won't. I usually add a couple of steps to soften the transition between sharpened and non-sharpened areas, using Gaussian Blur to soften the contours and Levels or Curves to adjust the contrast of the mask. Figure 1 shows the unsharpened image and the edge mask.
Figure 1:The unsharpened image (top) and edge mask (bottom).
Using the edge mask as a selection, you can copy the selected pixels to a new layer set to Luminosity blending, or you can copy the entire image to a new layer, also set to luminosity blending, then apply the edge mask as a layer mask. The latter approach gives you more control after the sharpening has been applied, but at the cost of a larger file and hence slower processing.
At this stage, it's important to treat the highlights and shadows very gently, otherwise they'll get blown out and plugged up, respectively, in the subsequent sharpening rounds. The Blend If: sliders in the Layer Options dialog box are invaluable for constraining the capture sharpening to the midtones -- you can access these by choosing Layer Style>Blending Options from the Layer menu, or by simply double-clicking on the layer in the Layers palette. Figure 2 shows the layer blending options set to protect highlights and shadows, focusing the sharpening on the midtones.
Figure 2: Layer blending options.
The result is a clean, gentle sharpen with no obvious haloes. Figure 3 shows a detail of the image unsharpened, and with the capture sharpening applied.
Figure 3: Detail unsharpened (top) and sharpened (bottom)
Creative Sharpening. I don't tell people how to do art, so the only real guideline I can give here is to use common sense. One useful way to apply creative sharpening is to make a new layer and merge the visible layers into it (Command-Option-Shift-E on Mac, Control-Alt-Shift-E on Windows), set the blend mode to luminosity, apply a somewhat stronger Unsharp Mask than is ultimately desired, with a radius setting that picks out the details you want to emphasize, then add a layer mask set to Hide All.
Use a low-opacity brush set to white, painting on the layer mask, to paint the effect into the areas that need it. When a layer mask is targeted for editing, the foreground and background colors are automatically set to black and white. You can easily toggle between painting with white to paint the effect in and painting with black to paint the effect out by pressing the ‘x' key.
Figure 4 shows the image detail after applying a creative sharpening layer created as follows. Create a new layer, then Option/Alt Merge Visible to copy all the pixels to the new layer. Set the Layer Blending Options to Luminosity at 66% opacity (so that I can increase or decrease the effect after the fact), run Unsharp Mask with Amount=500, Radius = 0.3, Threshold=0, add a layer mask set to Hide All, then paint the sharpening in with a brush set to 50% opacity.
Figure 4:Detail after creative sharpening, with creative sharpening mask.
Output Sharpening. In the capture and creative sharpening phases, we want to avoid obvious sharpening haloes. With output sharpening, though, that's not the case. The rule of thumb I use (one that has held up well under a good deal of empirical testing) is to aim for a sharpening halo that's somewhere between 1/50th and 1/100th of an inch in width -- the thinking being that at normal viewing distances it's too small to see as an actual halo. It follows that output sharpening must be done at final output resolution.
To accomplish this, you need to know the output size and resolution, and the way in which the output device converts the pixels into marks on paper. For example, if you're printing to an inkjet printer at 300 ppi, you want to create a sharpening halo that's about 3 pixels wide. If you're printing to a halftone printer such as a press, using a 266-ppi file and a 133-line screen, you need a halo that's at least 4 pixels wide, because each halftone dot is made up of four pixels, and you may well be rewarded if you make the halo 5 or 6 pixels wide. Output sharpening doesn't require any complex masking -- all the image-specific local concerns have already been addressed in the capture and creative sharpens -- so the output sharpening can be applied globally.
Needless to say (but I'll say it anyway), the result looks pretty ugly on screen when viewed at an Actual Pixels zoom level. For years I've advised people to make the file look "crunchy" on screen when sharpening for offset printing: My research suggests that I was understating the case. You can make better judgments about output sharpening by viewing at 50% or even 25% (avoid the "odd" percentages like 66.6% because Photoshop applies heavy antialiasing to those views), but the only truly reliable way to make the judgment is to view the printed result. If you follow the above-mentioned formula, keeping the haloes to between 1/50th and 1/100th of an inch on the final output, the results will look good.
For output sharpening, I like to use a duplicate of the image set to Overlay, then run the High Pass filter. I set the Layer Blending options to protect the extreme highlights and shadows -- there doesn't seem to be much point in sharpening pixels brighter than level 245 or so, or darker than level 15 or so.
Figure 5 shows the same image detail sharpened for inkjet output at 300 ppi. On screen, it's quite crunchy, but the printed result shows no obvious haloes, just a sharp print. You can use this same approach for all kind of output, simply varying the High Pass radius to suit the output resolution.
Figure 5:Detail after output sharpening for inkjet at 300 ppi.
The monitor is also an output device. We all know that when you drastically downsample an image to screen resolution for display on the Web, you need to resharpen it. Figure 6 shows the original 3072 x 2048-pixel image downsampled to 400 x 600 pixels, including the capture and creative sharpening layers. It's rather soft, though not objectionably so.
Figure 6:Downsampled image including capture and creative sharpening.
But the sharpening layers make the image very responsive to a simple output sharpen for Web resolution, again using an Overlay layer filtered with the High Pass filter, this time at a 1-pixel radius. Figure 7 shows the downsampled image with output sharpening applied for Web resolution.
Figure 7: Downsampled image sharpened for Web resolution.
I can't claim to have solved all the sharpening problems in the digital universe, but I believe that breaking up the sharpening process into individually addressable chunks makes total sense from the standpoints of both quality and workflow. In particular, treating output sharpening as a device-independent process, separate from the needs of both the image and the capture mechanism, allows us to sharpen optimally for each output process. This article at least represents the first baby steps towards that goal.
On (too) many occasions, we're asked to prepare files for output without knowing the output process. Ultimately the solutions to this problem may be political rather than technological, but my experience suggests that images with careful capture and creative sharpening will hold up much better to unknown downstream sharpening than either an unsharpened image, or one that has been sharpened by guesswork for unknown output. In the long term, it may make sense to apply output sharpening in the RIP, just as many RIPs now perform a final color conversion.
A workflow approach to sharpening also lends itself to automation. Capture sharpeners can be designed to accommodate the needs of specific capture devices -- the inclusion of metadata in the vast majority of digital camera files will be an important aid to this -- while different image types may be addressable in the short term by a series of presets, and in the long term by performing some kind of frequency analysis to determine the dominant tendency of important edge details. Output sharpeners, like output profiles, are then tailored purely to the needs of the specific output device, since all the image-specific concerns have already been dealt with.
At the very least, a workflow approach to sharpening gives us all a much better conceptual framework in which to cast sharpening issues than simply trying to find a one-size-fits-all approach (which I'm firmly convinced is simply impossible). But for me the real payoff is that sharpening becomes a creative tool: The capture sharpen addresses the defects of the capture; the output sharpen addresses the defects of the output. In the middle, there's lots of room to play.
A version of this story also appeared on www.imagingrevue.com.
Read more by Bruce Fraser.
Saving Actions in Photoshop
Kent C wrote:
> Kate Street wrote:
> > I keep creating my own actions for tasks I perform often, but they
> > keep disappearing. I've saved them to disk as instructed in an
> > article in PEI: File>Automate>Create Droplet.
> Actions and Droplets are different. Do the click on flyout arrow
> and 'save action' - remember directory - if you created it in the
> 'default.set' which is the default for 'new action', it will be in
> the PS path under actions. But if you've already saved them as a
> droplet, I doubt you can recover them. Perhaps, dannyR knows a way.
If by "they keep disappearing" you mean that once you create a droplet you are unable to find/load it via the Load Actions... command, then Kent's diaglosis pretty much sums up the problem: action set files (.atn) and droplet files (.exe) are two different entities.
An .atn file (created with the Save Actions... command) enables you to backup (and subsequently reload) an action set and/or share the actions it contains by (say) attaching the .atn file to an e-mail message.
A droplet (.exe) file (created through the File > Automate > Create droplet dialog) allows you to invoke the action from which it was created by dragging one or more file or folder icons onto it. This can be done without Photoshop being open in advance. A droplet file is useless in terms of backup/recovery. It is useless in this regard.
FWIW: Renaming a droplet file (for example Kate.exe) to Kate.atn will not solve your problem. An .exe file renamed to .atn cannot be loaded with a Load Actions... command. Although you can "do" a rename, the file types are incompatible.
There's good news, I think...
The process of creating a droplet from an action does delete the action from which it was created. Unless you dragged/dropped the action onto the Trash icon at the bottom of the Actions Palette or highlighted the action and chose Delete from the Actions Palette menu, the action itself still exists. You have not lost anything.
Something that can be confusing is the name of the Save Actions... command. The name really should be "Save Action Set" because that's what it really does.
The Save Actions... is only available if an action Set (folder) has been selected. If you select an individual action (like you're going to play it), Save Actions... is grayed out. Save Actions... saves the contents of the selected Set to your hard disk in the form of an .atn file regardless of how many actions are in it: 0, 1 or more.
Does this sort of help?
I have a solution working. All of this is based on PS7 but
should work fine in PSCS. If you already have the scripting
plugin installled and can create Actions and Droplets, it really
Install the scripting plugin if you need it. (CS has it preloaded, I think).
Locations for the plugin are below.
Create a file called SetEXIF.js (or whatever you want)
Put one line in it:
activeDocument.info.caption = 'This is a really lame description';
You can have multi line descriptions. Use '\r\n' as your line separator,
as in: 'Line One\r\nLine Two'.
The important to learn here is that you can only set EXIF data
indirectly. And it only really gets modified on Save. More below.
Put the file in your Presets/Scripts directory.
Create an action to execute the script. Do this by:
1 - open an image file
2 - Action Menu->New Action...
3 - Give it a reasonable name like 'SetEXIF'
4 - Hit the record button
5 - File->Automate->Scripts...
6 - Select your 'SetEXIF' script and hit the 'Run Script' button
7 - Hit the square Stop button on the Action panel.
Look in 'File->File Info... [Section General]
At this point only the Caption fieldhas been set.
Take a look at [Section EXIF]. Either there is no 'Image Description'
field or it has not yet changed.
Save the file and check again. PS has copied the General->Caption
field to EXIF->Image Description. It will also copy General->Author
to EXIF->Artist. There are probably others fields that behave like
this, but I just haven't mapped them out. You can add additional
lines to set other attributes.
Now create a droplet.
1 - File->Automate->Create Droplet...
2 - Specify where you want the droplet saved
3 - Specify your new 'SetEXIF' action.
4 - Set the Destination to 'Save and Close' if your want to
modify the file in place. Set it to 'Folder' and specify
a target folder if you want it to create a new, modified copy.
(This may not close the files).
5 - Modify any other options as needed
6 - Hit the OK button and you're all set.
You can drop files on the droplet or run it from the command prompt.
If you do the latter, you will need to specify the image file's complete
path and have Photoshop already running.
I hope this is helpful. I'd been meaning to get all of this worked
for awhile, so I am grateful for your motivation. Let me know
how it turns out or if you have any problems.
http://www.adobe.com/support/downloads/detail.jsp?ftpID=1535Feivel’s Tips on Whitening Teeth
...there are some caveats in whitening teeth:
1. always do it on a duplicate or adjustment layer, it is easy to overdo it, which can be adjusted with opacity while looking at the total image zoomed out
2. your technique should include a step to brighten as well as desaturate. in many images simply desaturating will remove the yellow but leave the teeth grey.
3. unless your technique itself is specific to the teeth themselves (like using selective color on whites) you need to be careful not to select the gums or the spaces between the teeth at all, otherwise it comes out looking pretty artificial
4. with wide open smiles where the back teeth are showing (and look darker than the front teeth) you can whiten them somewhat but dont brighten them as much as you do the front teeth. will also look unnatural by removing the shadow effect of the mouth
5. be careful not to remove the catchlights on the teeth that give them a reflective sheen, otherwise they may look white but not "sparkly". if there seems to be no way to salvage them, or there were none to begin with, you can try painting them on with a small hard white brush on an empty layer
6. after whitening (and brightening) especially in lower quality jpegs, you might want to paint in a little gaussian blur taking care not to disturb the edges of the teeth or the catchlights