in reply to Thining lines in raster images

I think if you want to stay in raster-land, Morphology is what you need. See especially the "erode" and "thinning" operators. Note that, if your lines are black on white, you want to dilate and thicken...because these operate on the white pixels. http://www.imagemagick.org/Usage/morphology/