Generar miniaturas con PIL
def testImages(request): from PIL import Image path = (‘c:/images/soluciones__1.jpg’) #content = ‘c:/images/soluciones1.jpg’ content = ‘c:/images/image.gif’ … Read More »Generar miniaturas con PIL
def testImages(request): from PIL import Image path = (‘c:/images/soluciones__1.jpg’) #content = ‘c:/images/soluciones1.jpg’ content = ‘c:/images/image.gif’ … Read More »Generar miniaturas con PIL
image = Image.open(imageField) if image.mode != “RGB”: image = image.convert(“RGB”) #big image.save(‘image.jpg’)