I'm working on a program where I open an image file(jpg), edit some of the pixels, and save the image with a new file name. It seems, however, that even when I am not editing any pixels, they are still being altered. This is a quick sample I wrote up. All I am doing is opening an image and saving it with a different name.
import Image
img1 = Image.open('image.jpg')
print img1.getpixel((0,0))
img1.save('testimage.jpg')
img2 = Image.open('testimage.jpg')
print img2.getpixel((0,0))
The output of the first print statement is (253,254,248) and the output of the second is (253,251,255). Why are the Green and Blue values changing if I am doing absolutely nothing to the image?