Hi all anyone got an idea of how to create an animated gif using images uploaded in paperclip? OR some way to display rotating images in rails. (i''m trying to create rotating sponsor images on the fly from user uploads) Thanks, Shawn -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
slindsey3000 wrote:> Hi all anyone got an idea of how to create an animated gif using > images uploaded in paperclip? > > OR > > some way to display rotating images in rails. > > (i''m trying to create rotating sponsor images on the fly from user > uploads)You don''t need to make animated GIFs for that. All you need is JavaScript. Here''s a fine example of rotating images with a nice cross-desolve effect. No animated GIFs and no Flash necessary: http://www.apple.com/ipad/ -- Posted via http://www.ruby-forum.com/. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
If you want to go onto the animated gif direction, i believe the only option you
have is to look at ImageMagick and RMagick, but this is not trivial stuff.
On the other side, Javascript and modern browsers (like Safari and FireFox) can
help you with something like :
a=0;
setInterval(function(){
a++;
var d=document.getElementById(''YourImageId'');
d.style[''-webkit-transform'']=''rotate(''+a+''deg)''
d.style[''-moz-transform'']=''rotate(''+a+''deg)''
},15)
Hope this helps,
Christophe
Le 29 avr. 2010 à 03:45, slindsey3000 a écrit :
> Hi all anyone got an idea of how to create an animated gif using
> images uploaded in paperclip?
>
> OR
>
> some way to display rotating images in rails.
>
> (i''m trying to create rotating sponsor images on the fly from
user
> uploads)
>
>
> Thanks,
>
> Shawn
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.