This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i image_%04d.png -r 14 -sameq test.webm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import glob, os | |
scale = 0.5 | |
for infile in glob.glob( "*.png" ): | |
file, ext = os.path.splitext( infile ) | |
im = Image.open( infile ) | |
im = im.resize( ( int( im.size[ 0 ] * scale ), int( im.size[ 1 ] * scale ) ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import glob, os | |
scale = 0.5 | |
for infile in glob.glob( "*.png" ): | |
file, ext = os.path.splitext( infile ) | |
im = Image.open( infile ) | |
im = im.resize( ( int( im.size[ 0 ] * scale ), int( im.size[ 1 ] * scale ) ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import glob, os | |
scale = 0.5 | |
for infile in glob.glob( "*.png" ): | |
file, ext = os.path.splitext( infile ) | |
im = Image.open( infile ) | |
im = im.resize( ( int( im.size[ 0 ] * scale ), int( im.size[ 1 ] * scale ) ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import datetime | |
from stat import * | |
#returns a list of all the files on the current directory | |
files = os.listdir('.') | |
for f in files: | |
#my folder has some jpegs and raw images | |
if f.lower().endswith('jpg'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CLIENT (PER FRAME) | |
var formData = new FormData(); | |
formData.append( 'filename', 'frame' + ( count ++ ) + '.png' ); | |
formData.append( 'data', canvas.toDataURL( 'image/png' ) ); | |
var xhr = new XMLHttpRequest(); | |
xhr.open( 'POST', 'http://127.0.0.1:1337/' ); | |
xhr.send( formData ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require( 'http' ); | |
var url = require( 'url' ); | |
var fs = require( 'fs' ); | |
var path = require( 'path' ); | |
var gzip = require( './lib/gzip' ); | |
var VERBOSE = false; | |
var cache = {}, count = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function logGraph( object, depth ) { | |
var depth = depth || 0, pad = ''; | |
for ( var i = 0; i < depth; i ++ ) pad += ' '; | |
console.log( pad + object.name, object ); | |
for ( var i = 0; i < object.children.length; i ++ ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<script> | |
var video = document.createElement( 'video' ); | |
video.autoplay = true; | |
video.addEventListener( 'loadedmetadata', function ( event ) { | |
var scale = 0.5; | |
var width = video.videoWidth * scale; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gptsync |