0

I planing to use Pillow for a image processing application. i tried opening an image from pillow and saving to to test. but the image that was save is corrupt with noise.

from PIL import Image

i = Image.open('dot.jpg')
i.save('temp.jpg')

Original - Original

Saved - Saved

Sachith Rukshan
  • 340
  • 6
  • 24

1 Answers1

0

Save it as .png format. jpg format will result in some loss.

from PIL import Image

i = Image.open('dot.jpg')
i.save('temp.png')

Refer this answer.

Sreeragh A R
  • 2,871
  • 3
  • 27
  • 54