Archive for the 'RMagick' Category
Rounded Corners in Rails (updated!)
Here’s a gift for everyone.
In my last entry, I posted a rounded corners implementation in Rails using the RMagick gem. I have since updated it do take advantage of fragment caching. I also added in a CAPTCHA implementation and an animated spinner generator.
Enjoy!
Download it here (hot and fresh straight out of my application): http://furui.org/tools_controller.rb
Check out the corner generator here: http://www.furui.org/testbench/tools/roundedcorners?c=red&w=25&h=25
Check out the spinner generator here: http://www.furui.org/testbench/tools/spinner
The CAPTCHA generator doesn’t work with my hosting provider.
Rounded Corners in Rails
Here is a controller I wrote that spits out rounded corners. It utilizes RMagick and operates nearly identical (width and height limited to 256) to the Google implementation as discovered by xach on LiveJournal.
You can see it below (or see it in action), or grab it from here: http://furui.org/tools_controller.rb
If you use it or see it in the wild, post a comment here. Thanks!