Hi Anton,
Here is a short example working on Linux and most Unix systems:
{
.... create some canvas, c1
c1->Print("stats.ps");
if (gROOT->IsBatch()) {
c1->Print("stats.eps");
gSystem->Exec("pstopnm -ppm -xborder 0 -yborder 0 -portrait stats.eps");
gSystem->Exec(
"ppmtogif
stats.eps001.ppm>/user/brun/Welcome/devonly/stats/ftpstats.gif");
} else {
c1->Print("stats.gif");
}
}
Rene Brun
Anton Fokin wrote:
>
> Hi rooters,
>
> I've noticed that TPad can not be saved as gif in batch mode bacuse it uses
> gVirtualX facility. This causes some troubles to THtml because it is not
> convinient to have inheritance trees in ps. Can't we employ a kind of .ps ->
> .gif converter to solve this?
>
> Regards,
> Anton
>
> http://www.smartquant.com
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET