Skip to content

PIL + pasar todos los formatos a jpg

  1. image = Image.open(imageField)
  2. if image.mode != “RGB”:
  3.     image = image.convert(“RGB”)
  4.     #big
  5.     image.save(‘image.jpg’)