Copy link to clipboard
Copied
Hello! I have this ongoing project where I have to cut out images with crisp edges in large volumes. I've found the Quick Selection Tool and Object Selection Tool to be the best/fastest method, but the only problem is that you can't turn off anti-aliasing. It's weird since the lasso tool seems to have that ability (to turn it off/on).
There's probably a very obvious solution that I'm just not seeing it, or a script out there that can bypass this?
Copy link to clipboard
Copied
If you make a selection with either the Quick Selection Tool or the Object Selection Tool, you can select Hard Edge in the Options bar although it is still anti-aliased.
For selections made by either of those tools, you could click on the Select and Mask button and in the Properties in the Select and Mask Workspace, set Contrast to 100%.
If you set that selection to Output to a Layer Mask, then you may see that you still have gray pixels. In that case, you can select the Layer Mask thumbnail in the Layers panel and go to Image > Adjustments > Threshold... to convert the pixels in the Layer Mask to either black or white.
Copy link to clipboard
Copied
Thank you! Currently I'm doing the magic wand (after object selection) and modify > expand. But was hoping for a slightly faster / straightforward method.
Copy link to clipboard
Copied
Selection to QuickMask mode (q), threshold 128, exit QuickMask mode (q).
Easily recorded into an action for quick access via an F-key shortcut.
A script version would offer a custom keyboard shortcut for easier access.
128 is the middle value, adjust as necessary.
EDIT:
Here it is as a script –
#target photoshop
var selectionBounds = null;
try {
selectionBounds = activeDocument.selection.bounds
} catch (e) {}
if (selectionBounds) {
activeDocument.quickMaskMode = true;
var idthresholdClassEvent = stringIDToTypeID("thresholdClassEvent");
var desc188 = new ActionDescriptor();
var idlevel = stringIDToTypeID("level");
desc188.putInteger(idlevel, 128); // Adjust value as needed from 1-255
executeAction(stringIDToTypeID("thresholdClassEvent"), desc188, DialogModes.NO);
activeDocument.quickMaskMode = false;
} else {
alert("A selection must be active!");
}