wearepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jan-29 15:25 UTC
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!!!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Tue, 29 Jan 2008, wearepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> in PHP there is the getImageSize function that can read > the dimensions of a swf.Correction: that is a GD function, so you will need to find use something like ruby-gd perhaps -- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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/ ----- Original Message ----- From: <wearepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> To: "Ruby on Rails: Talk" <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Sent: Tuesday, January 29, 2008 10:25 AM Subject: [Bulk] [Rails] 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!!!!! > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
wearepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-01 03:55 UTC
Re: Embeding Flash With Ruby
only solution i found is libimage-size-ruby ... http://snippets.dzone.com/posts/show/805 On Jan 29, 10:44 am, "Long" <long...-bJEeYj9oJeDQT0dZR+AlfA@public.gmane.org> wrote:> 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 > > -- Longhttp://FATdrive.tv/wall/trakb/10-Longhttp://FATdrive.tv/ > > ----- Original Message ----- > From: <wearepi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > To: "Ruby on Rails: Talk" <rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > Sent: Tuesday, January 29, 2008 10:25 AM > Subject: [Bulk] [Rails] 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!!!!!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
wearepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-11 17:35 UTC
Re: Embeding Flash 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 that i have seen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
wearepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-11 17:35 UTC
Re: Embeding Flash 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 that i''ve seen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
wearepixel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-11 17:37 UTC
Re: Embeding Flash 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 that i''ve seen. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---