# How to render svg image with stylesheets using RMAgick

**URL:** <https://www.ruby-forum.com/t/how-to-render-svg-image-with-stylesheets-using-rmagick/193543>\
**Category:** Ruby\
**Created:** [August 19, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/how-to-render-svg-image-with-stylesheets-using-rmagick/193543 "2010-08-19T13:07:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![martin\_mercy2001](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/d2c977/32.png) [@martin\_mercy2001](https://www.ruby-forum.com/u/martin_mercy2001)\
**Post date:** [August 19, 2010, 1:07pm UTC](https://www.ruby-forum.com/t/how-to-render-svg-image-with-stylesheets-using-rmagick/193543/1 "2010-08-19T13:07:52Z")

</div>

Dear Friends,

I have rendered the svg image into jp/png format using RMagick like,

img = Magick::Image.read(“bee3.svg”).first  
thumbnail = img.thumbnail(img.columns_0.19, img.rows_0.19)  
thumbnail.write(“logo1.gif”)

The above code works well for rendering a SVG image without any  
stylesheets into gif format, but when i write some style sheets for SVG  
and if i tried render the SVG into gif, it causing rendering error.

Actually svg images are rendered but the stylesheet in not applied using  
RMagick. How i should proceed to render stylesheet informations as well.

Thanks in advance

Regards,  
Jose Martin
