Embeding Flash With Ruby

Hi, All,
i am working on an application that will allow my users to upload
files and then display these files on a generated page. file types
that they will be uploading include flash SWF files. is there any way
of including SWFs dynamically with ROR so that the dimensions of the
file are set. in PHP there is the getImageSize function that can read
the dimensions of a swf. any such equivalent in Ruby or Rails ... ?
any sort of solution would be great such as one involving the swf
object or some rails function like 'flash_for' which someone mentioned
but I cannot find any info on... ANYONE HELP!!!!!

Correction: that is a GD function, so you will need to find use something
like ruby-gd perhaps

I had faced a similar requirement but have yet to find a solution. However in practice it is better
to set a fixed dimension (either width or height) and set the second base on a desired aspect ratio
(4:3 or 16:9).

I've used this approach here:

http://fatdrive.tv/pofo/trakb/29-Media+Player+Plugin+Test

-- Long
http://FATdrive.tv/wall/trakb/10-Long
http://FATdrive.tv/

only solution i found is libimage-size-ruby ... http://snippets.dzone.com/posts/show/805

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

a coworker of mine made this. its the only straightforward solution
for reading swfs that i have seen.

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

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

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

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