Tags: PIL

Sort by: Date / Title /

  1. 4 years ago by macks
    1. image = Image.open(imageField)
    2. if image.mode != "RGB":
    3.     image = image.convert("RGB")
    4.     #big
    5.     image.save('image.jpg')
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2090"></script>
  2. 4 years ago by macks
    1. def testImages(request):
    2.     from PIL import Image
    3.     path = ('c:/images/soluciones__1.jpg')
    4.     #content = 'c:/images/soluciones1.jpg'
    5.     content = 'c:/images/image.gif'
    6.     image = Image.open(content)
    7.     image.thumbnail((200,150), Image.ANTIALIAS)
    8.     image.save(path, image.format)
    9.     savelog(image.format)
    10.     del image
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2057"></script>

First / Previous / Next / Last / Page 1 of 1 (2 posteets)