| Summary: | Groff pic2graph bug | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Danny <Dirus> |
| Component: | New packages | Assignee: | Brandy Westcott (RETIRED) <brandy> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | pic2graph 1.4 | ||
|
Description
Danny
2003-11-01 13:34:13 UTC
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 |