1. A computer-implemented method, comprising: resizing, by a computer, an original image, wherein the original image is a digital image comprising a plurality of pixels, and wherein said resizing comprises: producing an initial resized image of the original image, wherein a value for each of a plurality of pixels of the initial resized image corresponding to a given subpixel location in the original image is determined using values for pixels in the original image that neighbor the given subpixel location; applying a sampling kernel at each of the plurality of pixels of the initial resized image to calculate a new pixel value for each of the plurality of pixels of the initial resized image, wherein the sampling kernel comprises a plurality of elements, with one element corresponding to the central pixel for which the new pixel value is being calculated, and with each of the other elements corresponding to a pixel neighboring said central pixel, wherein said applying comprises: modifying each element of the sampling kernel dependent upon a function of the difference between the initial resized image value of said central pixel and the initial resized image value of the pixel corresponding to said element of the sampling kernel, where the function is nonconstant and nonincreasing as the magnitude of the difference increases; and using the modified values of the sampling kernel to calculate the new pixel value for said central pixel.