Using the Nearest Pixel or the Area option for enlarging the images can produce pixelated borders. To obtain smooth borders after enlarging the image, one can use any of the remaining three. If choosing linear interpolation still produces pixelated borders, which can happen in cases where the image is drastically enlarged, then you can opt for the Cubic or Lanczos algorithm.