I'd like to bring up two changes to lib/configure.m4 regarding conversion 
of tgif files to .eps and .png

>cvs diff configure.m4
Index: configure.m4
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/configure.m4,v
retrieving revision 1.61
diff -r1.61 configure.m4
518c518
< \\converter tgif eps "tgif -print -eps \$\$i" ""
---
> \\converter tgif eps "tgif -print -color -eps \$\$i" ""
520c520
< \\converter tgif png "tgif -print -png \$\$i" ""
---
> \\converter tgif png "OutDir=\`dirname \$\$o\`; TgifOut=\$OutDir/\`basename 
>\$\$b\`.png ; tgif -print -png -o\$OutDir 
\$\$i && mv \$TgifOut \$\$o" ""

I think there is no problem with making the first change (i.e. inserting 
-color). As for the second change, Angus was "not happy", but the 
explanation can be found here:

        http://marc.theaimsgroup.com/?l=lyx-devel&m=104448273626978&w=2

that post also contains the reason for why the simple solution doesn't 
work. Anyway, I'm leaning towards the solution above (rather than 

\converter tgif png 'tgif -stdout -print -xpm $$i | xpmtoppm | pnmtopng > $$o' ""

as also suggested in the message, because then if you can export to 
.png properly from tgif, it'll also work with lyx).

Michael should probably say something about this.

/Christian

-- 
Christian Ridderström                           http://www.md.kth.se/~chr



Reply via email to