Topic: Getting SWF Image Size with Ruby?

Anyone know a way to get the dimensions of a swf using ruby on rails. Similar php's getImageSize() function.

i know about this for images; jpg, gif, png: http://snippets.dzone.com/posts/show/805

but i need a solution for dynamically loading swfs that my users will be uploading; without making them enter the dimensions for every file.

Anyone, help!?!?

Re: Getting SWF Image Size with Ruby?

http://code.google.com/p/ruby-imagespec/source/checkout

a coworker of mine made this. its the only straightforward solution for reading swfs issue that i've found.  ...

Re: Getting SWF Image Size with Ruby?

Ibben, thank you so much for this! I was looking hours to get width and height out of swf file with Ruby.

Now i don't need to install huge swf manipulation libraries just to get two integers smile

Re: Getting SWF Image Size with Ruby?

When I needed to get the metadata from SWF yonks ago I just downloaded the file spec and made my own, which was pretty much exactly like the example above.

Last edited by \x00 (2008-12-02 11:40:31)

Re: Getting SWF Image Size with Ruby?

how to export a movie clip as image from flash to php,,as like we sending variables