It's a valid suggestion, but I think there are a two issues. First, would this just convert completely white pixels to transparent? If so, I think it would suffer the same problem as the other methods: The slightly gray background pixels at the edges of the text created by anti-aliasing remains completely opaque and shows up as white flecks around the text. The second issue is that I need to do this to a bunch of images, so the preference would be to have some command line (or scriptable) approach. I don't know if you can (easily) do that with the Gimp.

Thanks for the suggestion,

Nick

On Fri, 2 Jun 2006, Ben Stern wrote:

On Fri, Jun 02, 2006 at 02:45:44PM -0400, Nick Cummings wrote:
I'm trying to make some images of equations I have written in LaTeX.  I
want the equations to be clack text on a transparent background.  What
I'm currently trying to do is use the ImageMagick command "convert" to
take an image of black text on a white background, and then set the
transparency equal to the brightness on a gray scale (i.e. white is
totally transparent and black is totally opaque).  convert appears to be
quite powerful, and I think this is possible, but I don't quite understand
how.  Afer reading the man page for ImageMagick, I tried the command

It's a bit of a sledgehammer, but you can use the GIMP to do this - open the
image, right-click on it, Layer -> Transparency -> Color to Alpha and choose
white as the color to convert to the alpha channel.

[You might have to add an alpha channel first - I don't remember.]

Ben
--
Ben Stern             UNIX & Networks Monkey             [EMAIL PROTECTED]
This post does not represent FTI, even if I claim it does.  Neener neener.
UM Linux Users' Group     Electromagnetic Networks      Microbrew Software

Reply via email to