I am trying to create an image with a transparent background, but not even creating an image that is just transparent png. I tried this:
require "rvg/rvg" rvg = Magick::RVG.new(100, 100) rvg.background_fill = "pink"
which generates:

I also tried:
rvg.background_fill.opacity = 0 rvg.styles(:fill_opacity => 0) rvg.styles(:opacity => 0)
They all turned out to be a solid pink rectangle.
How to create transparent png using RMagick RVG?
Refresh : the image seems not even transparent:
1.9.2p320 :007 > rvg.draw => transparent.png 100x100 DirectClass 8-bit 1.9.2p320 :008 > rvg.draw.alpha => false 1.9.2p320 :009 > rvg.draw.alpha? => false
source share