diff options
author | wl <wl> | 2005-05-17 20:20:53 +0000 |
---|---|---|
committer | wl <wl> | 2005-05-17 20:20:53 +0000 |
commit | d5e77458ec0d21272384a78180946518fe350b7d (patch) | |
tree | 46e6e8dc1d38e93cbadedc66d853f55774aa9408 /contrib/grap2graph | |
parent | 56fbf16b4abe8eae536c2585bf5c66a983c803ee (diff) | |
download | groff-d5e77458ec0d21272384a78180946518fe350b7d.tar.gz |
* contrib/pic2graph/pic2graph.sh, contrib/graph2graph.sh,
contrib/eqn2graph.sh: Add option `-trim' to `convert' which is
needed for newer ImageMagick versions.
Diffstat (limited to 'contrib/grap2graph')
-rw-r--r-- | contrib/grap2graph/grap2graph.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/grap2graph/grap2graph.sh b/contrib/grap2graph/grap2graph.sh index 7737f1ef..99d9a96d 100644 --- a/contrib/grap2graph/grap2graph.sh +++ b/contrib/grap2graph/grap2graph.sh @@ -28,7 +28,7 @@ # # Thus, we pass -U to groff(1), and everything else to convert(1). # -# $Id: grap2graph.sh,v 1.2 2003/10/28 07:46:23 wlemb Exp $ +# $Id: grap2graph.sh,v 1.3 2005/05/17 20:20:53 wl Exp $ # groff_opts="" convert_opts="" @@ -79,7 +79,7 @@ trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 2 15 # 3. Process through groff(1) with pic preprocessing to emit Postscript. # 4. Use convert(1) to crop the Postscript and turn it into a bitmap. (echo ".G1"; cat; echo ".G2") | grap | groff -p $groff_opts -Tps -P-pletter | \ - convert -crop 0x0 $convert_opts - $tmp/grap2graph.$format \ + convert -trim -crop 0x0 $convert_opts - $tmp/grap2graph.$format \ && cat $tmp/grap2graph.$format # End |