Contenidos
Código en Python
1 2 3 4 |
from PIL import Image img = Image.open('1.jpg') new_img = img.resize((800,600)) new_img.save('1-800x600.png','png') |
Imagen sin ampliar
Imagen cambiada de tamaño (se pierde calidad)

Ejecución del script
