Your photos can be pixelated due to inappropriate resizing of images, wrong image compression or camera settings, corruption in the image file, etc. To fix the pixelated images, you can refer to this blog.