Ruby on Rails Thursday, April 29, 2010

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@googlegroups.com.
> 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@googlegroups.com.
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.

No comments:

Post a Comment