# \[ANN\] SVG's as backgrounds: Magick Corners Plugin

**URL:** <https://www.ruby-forum.com/t/ann-svgs-as-backgrounds-magick-corners-plugin/160472>\
**Category:** Rails\
**Created:** [February 16, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/ann-svgs-as-backgrounds-magick-corners-plugin/160472 "2009-02-16T19:35:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wybo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/cc9497/32.png) [@wybo](https://www.ruby-forum.com/u/wybo)\
**Post date:** [February 16, 2009, 7:35pm UTC](https://www.ruby-forum.com/t/ann-svgs-as-backgrounds-magick-corners-plugin/160472/1 "2009-02-16T19:35:50Z")

</div>

Magick Corners is a Rails plugin for adding Scalable Vector Graphics  
as backgrounds to css-elements without a hassle. It can scale and  
stretch them to size, and also generate them for simple cases like a  
div with rounded corners.

After installing the plugin you can apply rounded corners to any  
dom-object (only divs are officially supported) using css-selectors,  
like:  
mcorners = new MagickCorners();  
mcorners.add(â€˜div.logi\_bodyâ€™);

And also display any SVG image as the background of divs of any size  
with:  
mcorners.add(â€˜div.add\_tagâ€™, {â€˜scaled\_imageâ€™ : â€˜add\_tag.svgâ€™});

Images are scaled/folded to suit. See the full Magick Corners docs for  
a code example and detailed installation instructions:  
[http://www.logilogi.org/pub/doc/plugins/magick\_corners/](http://www.logilogi.org/pub/doc/plugins/magick_corners/)

Magick Corners is under the Affero GPL, and developed by the LogiLogi  
Foundation ([http://foundation.logilogi.org](http://foundation.logilogi.org))

greetings,

Wybo W.

* * *

:🧑‍🎓

- Informatiekunde (computer linguistics, IR, webtech), History and  
Philosophy
- Member of the Center for Metahistory Groningen  
([Faculty of Arts | About us | University of Groningen](http://www.rug.nl/let/cmg))

::Free Software and Open Source Developer:

- Active in the LogiLogi Foundation ([http://foundation.logilogi.org](http://foundation.logilogi.org))
- [http://www.LogiLogi.org](http://www.LogiLogi.org), Cumulative, shared commenting, publication  
and  
idea sharing: Where insight comes together…
- ComLinToo, a computational linguistics toolset written in Perl
