To ensure that the compressed image does not look pixelated, you should pay attention to the size of the image. A smaller image will look less pixelated than a larger image. You should also make sure that you use a high-quality compression to get the best possible quality of the image.