Tags: tests

Sort by: Date / Title /

  1. 9 years ago by macks
    usando la libreria ffmpeg
    1. import commands
    2. import os
    3.  
    4. def execute():
    5.         cmd = 'c:/ffmpeg/ffmpeg.exe -y -itsoffset -4 -i c:/input.mpg -vframes 1 -s 100x90 -f image2 c:/uploads/img_gen.jpg'
    6.         #c = commands.getoutput(cmd) # linux
    7.         c = os.system(self.cmd) #windows
    8.         return c
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2058"></script>
  2. 9 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)