Advertisement
obernardovieira

PNG to JPG

Sep 20th, 2017
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. im = Image.open(r"newimage.png")
  2. im = Image.open(r"newimage.png")
  3. bg = Image.new("RGB", im.size, (255,255,255))
  4. bg.paste(im,im)
  5. bg.save(r"newimage.jpg")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement