From: Timothy Hunter Date: 2007-01-28T05:36:20+09:00 Subject: Re: transparent text with rmagick? dc wrote: > hi - > > (this maybe more an imagemagick q that a ruby one, but here goes ..) > > using rmagick / I have a small script for generating some type, but I > cannot get the type to come out as transparent png - it comes out just > on solid white . > > does this have to be done with masks and compositing? there are a > number of methods that look like they should work (transparent_color > etc), but dont seem to... > > is the library broken or am i doing something wrong? > > tx, > > /dc Set the background color to "none" when you create the image: buffer = Magick::Image.new(250, 250) {self.background_color = 'none'}