pic2graph will fail on line 48. It is missing ";;" at the end of line above it, this much is obvious. However fixing this doesn't seem to make it work. It seems to have trouble with the tmp directory. I found a fixed version of pic2graph but it uses an option (-e) that isn't available in version 1.18 of grops. Upgrading to Groff version 1.19 should fix the entire pic2graph problem. Reproducible: Always Steps to Reproduce: 1. fix pic2graph by putting ;; 2. try to run pic2graph for example "pic2graph < glider.pic > glider.png", if you don't have a pic to test with you can get the glider.pic from: http://www.catb. org/~esr/hacker-emblem/glider.pic Actual Results: you get the error: convert: Postscript delegate failed [No such file or directory]. Expected Results: created the png file Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.22) ================================================================= System uname: 2.4.22 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.10p1 distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3. 1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache" GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://sunsite.ualberta. ca/pub/unix/Linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.gtlib.cc.gatech. edu/pub/gentoo http://cs.ubishops.ca/pub/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 oss encode foomaticdb gif libg++ mad mikmod spell slang guile gpm pam motif 3dfx 3dnow aalib alsa apache2 apm arts avi berkdb crypt cups dga directfb dvd -esd gdbm -gnome gtk gtk2 imap imlib java jikes jpeg kde leim libwww maildir mmx mpeg nas ncurses nls objc oggvorbis opengl pdflib perl png python qt quicktime readline samba sdl smooth sse ssl tcltk tcpd tiff truetype usb voodoo3 svga wmf X xml xml2 xmms xv zlib"
Created attachment 20077 [details] pic2graph 1.4 This is a supposedly working pic2graph script, however it seems to use a grops option which is not supported in 1.18.
Thanks for the bug report Danny. I recently fixed the pic2graph script to include the extra ';;' on line 47 (see bug #32300.) The error you are reporting looks like one of the device parameters passed by the ImageMagick convert utility to ghostscript is invalid. Can you try pic2graph with ImageMagick-5.5.7; this later version changed the way in which the postscript coder calls ghostscript.
Ah, after upgrading to ImageMagick-5.5.7-r2 the fixed pic2graph script works. I don't have much experiance with ebuilds, is there some way to say that if you have ImageMagick installed you need to have 5.5.7 or later? Can we request the ImageMagick maintainer bumps this version to stable x86 soon?
I just noticed my pic's seem to have their tops cut off. I tried emerging ImageMagick-5.5.7.11 and it's still happening. Perhaps its just a change in the way PICs are parsed by I can't find anything about it. Is anyone else noticing this?
Danny, thanks for being patient. :) Your cropping problem is caused by a your groff setup. pic2graph converts the pic file into a postscript file (the page size of the ps file is determined by your 'papersize' setting in /usr/share/groff/1.18.1/font/devps/DESC; if you're in the US or Canada this should probably be 'papersize letter'.) Then pic2graph uses 'convert' from ImageMagick to convert the ps file into a png image (the pagesize defaults to US letter in ImageMagick). Since you have 'papersize a4' in DESC you're going from an A4 pagesize to a US letter pagesize and losing part of the image in the process. To fix this, you'll need to set 'papersize letter' in /usr/share/groff/1.18.1/font/devps/DESC, or run pic2graph passing '-page a4' as an argument: # pic2graph -page a4 < glider.pic > glider.png