python Method to convert.ppm images into.jpg files

  • 2021-01-06 00:39:46
  • OfStack

Convert images from.ppm format to.jpg format. In addition to software conversion, you can also use the ES3en script directly converted, so easy!!


from PIL import Image

img = Image.open("images/25_color.ppm")
img.save("JPGimg/25_color.jpg")
img.show()


Related articles: