Re: [ROOT] gif in batch mode

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Fri Feb 02 2001 - 20:03:17 MET


> 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");
>    }
> }
> 

This will work under Windows as well providing the free "netpbm" package had been installed
and its "bin" directory with the program "pstopnm.exe" and "ppmtogif.exe" is on the system PATH.

  With my regards,
                          Valeri

> 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