Giter Club home page Giter Club logo

ssg's Introduction

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

ssg's People

Stargazers

Balaji avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.