dbalaji / ssg Goto Github PK
View Code? Open in Web Editor NEWSwf screenshot generator
Swf screenshot generator
This can only be deployed on linux. This tool captures first frame of an swf file. The capturing is done in php on the server side using dump-gnash tool. To capture following tools have been tried and the best one turned out to be dump-gnash. 1. swftools ( http://swftools.org/ ) (screenshots are not accurate) 2. swfdef ( http://swfdec.freedesktop.org/wiki/ ) (aspect ratio not maintained, always square screenshot is generated) 3. gnash ( http://www.gnu.org/s/gnash/) (screenshots are acurate and the aspect ratio is maintained) Security:- ---------- There is a possibility of deployment server being used as an attacker of the server hosting swf files.To avoid this, use fail2ban as it is better handled using that instead of inside php script. TODO:- ------ * fix virtual() errors , check if it is only issue with ubuntu.. if so ignore * Write a build script. (for now tar -hcvzf is enough, which dereferences the symbolic links and creates an archive) * Asynchronous handling of swf download ** Show progress * Add cancel/abort support. * Download swf partially, which is just enough to create the screen shot. * Create install script. * Improve look and feel. * Handle md5 clashes * Implement intelligent/http caching for caching of swf files * Write a script to cleanup cache, add this to the cron. * Limit max execution time for curl * Get http_referer value from config and set it while sending curl requests * Test various scenarios References:- ------------ http://wiki.swftools.org/index.php/FAQ http://cblfs.cross-lfs.org/index.php/Swfdec http://www.maxdesign.com.au/articles/center/ http://techblog.floorplanner.com/2010/11/02/server-side-rendering-of-swf-images-using-gnash/ http://askubuntu.com/questions/16867/missing-thumbnails-for-swf-files-in-nautilus http://ftp.gnu.org/pub/gnu/gnash/0.8.8/ http://the-labs.com/MacromediaFlash/SWF-Spec/SWFfileformat.html http://en.wikipedia.org/wiki/SWF http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.