User: Password:
|
|
Subscribe / Log in / New account

The Grumpy Editor's diagram editor followup

The Grumpy Editor's diagram editor followup

Posted May 10, 2004 22:50 UTC (Mon) by iabervon (subscriber, #722)
Parent article: The Grumpy Editor's diagram editor followup

You should try exporting your xfig diagrams to eps, opening them with gv, taking a screenshot with the GIMP, and saving that as a PNG. While xfig's rasterization is terrible (so the fonts and lines come out ugly), you can use a better rasterizer. It's much more UNIXy to chain together 3 tools than to hope a single tool will do good things all the way through (although one could wish that these tools were more amenable to automation...).


(Log in to post comments)

The Grumpy Editor's diagram editor followup

Posted May 10, 2004 23:21 UTC (Mon) by ballombe (subscriber, #9523) [Link]

The gimp support eps format and is scriptable, so you don't need to use GV and take
a screenshot, and you can automat the task with the perl binding, e.g.

The Grumpy Editor's diagram editor followup

Posted May 11, 2004 1:23 UTC (Tue) by jamesh (guest, #1159) [Link]

Why not just run Ghostscript directly with one of the png output devices? This will allow you to produce 24-bit PNGs even if you run your X server in 16-bit mode (which your screenshot method won't). You can also do PNGs with an alpha channel using the pngalpha device.

The Grumpy Editor's diagram editor followup

Posted May 11, 2004 2:18 UTC (Tue) by iabervon (subscriber, #722) [Link]

I was being conservative and only mentioning steps that I'd done
previously. Certainly other methods should work at least as well. In any
case, fig2dev is not a good way of generating good raster images, which
seems to be the Grumpy Editor's main complaint with xfig.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds