I have a selection I want to enlarge using nearest neighbour. I don't want to scale the whole image, just a selection. Is this possible?
-
Is there a particular reason why you want to use nearest neighbor instead of one of the higher quality interpolation algorithms? AFAIK, aside from speed (though these days, even browsers use bilinear or bicubic interpolation for live resizing of images) the only advantage of using nearest neighbour interpolation is to preserve edges in pixel art.– Lèse majestéJan 9, 2012 at 15:56
-
I don't think so. I've always cut-n-pasted into new file, scaled the entire image via nearest neighbor, then pasted that back into the original.– DA01Jan 9, 2012 at 16:16
-
@Lèsemajesté Yes. Quality or speed don't come into it, I'm enlarging a small area of a screenshot to a large size to show pixel-level detail. Enlarging with bilinear makes the result a fuzzy mess.– fredleyJan 9, 2012 at 16:37
1 Answer
Ok, I've worked this one out. Photoshop has a single, global setting to determine the scaling algorithm used, for everything. It is in Preferences > General > Image Interpolation. Setting this will make all image scale transforms use this algorithm.
So set this to nearest neighbour, perform the scale, change it back, is the rather tedious solution.
UPDATE FOR CS6: In order to change interpolation in Free Transform mode, one must select it from the options bar when transforming. The setting in preferences now has no effect on Free Transform.
-
-
1Note that the CS6 method does not work for Smart Objects. For those, the Preferences > General > Image Interpolation method is needed. Mar 20, 2014 at 5:10
