[Tex/LaTex] Making an image with a transparent background

backgroundsgraphicspstrickstikz-pgf

I do not know what is the official term for such images, but if I make an image in TikZ or pstricks then I want it to have no background; for example I might post it on a webpage with a different background than white, then it should blend in nicely.

I have seen a couple of images in wikipedia that are like this (example), and they show up on image viewers to have some kind of a checkered background.

Best Answer

Since you want to convert to an image file, the problem is one of the converter pdf -> image. TikZ as such does not fill the background (unless you do so explicitly).

If you use ImageMagick, you can use convert -transparent white during the conversion. Other programs may require a transparency channel (perhaps you need to create one based on the color "white" as well).