Re: [ROOT] Re: gif without X...

From: Andre Holzner (Andre.Holzner@cern.ch)
Date: Sun Feb 04 2001 - 16:44:19 MET


Hi,

if you don't insist on gif, but can e.g. use jpeg also, 
try something in the spirit of:

  gs -q -dNOPAUSE -r72 -sDEVICE=jpeg -sOutputFile=myfile.jpg
/tmp/my_tmp_file_from_tmpnam().ps </dev/null 

I guess gs is widely available and especially hardware independent.
The reason why gs doesn't produce gif is probably the usual
licensing story of the gif compression algorithm..

What about implementing some lines of code running gs 
into TPad::SaveAs(..) ?


Andre


Fons Rademakers wrote:
> 
> Hi Anton,
> 
>    beside the example Rene showed about using pstopnm etc., you could use
> a frame buffer X server. This X server does all its "displaying" in
> a hidden memory buffer, but for the application it looks like talking to
> normal X. I use it in cron scripts where I need graphics, but don't want
> X windows popping up on the screen. In my script I have:
> 
> #! /bin/sh
> 
> # Make sure framebuffer X server runs on display 1
> 
> XVFB=`ps ax|grep Xvfb | awk '/Xvfb :1$/ { print $5 $6 }'`
> if [ "$XVFB" != "Xvfb:1" ]; then
>    Xvfb :1 > /dev/null 2>&1 &
> fi
> 
> export DISPLAY=:1
> 
> export ROOTSYS=/home/rdm/root
> export PATH=$ROOTSYS/bin:$PATH
> export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
> 
> cd /home/rdm/alice/mdc3/sql
> root -q rungraph.C > /dev/null 2>&1
> 
> cp -f rate.gif avrate.gif /net/pcroot/user/httpd/root/root/alimdc3/
> 
> exit 0
> 
> --
> Org:    CERN, European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910

-- 
------------------+----------------------------------
Andre Holzner     | +41 22 76 76750 
Bureau 32 2-C13   | Building 32     
CERN              | Office 2-C13    
CH-1211 Geneve 23 | http://wwweth.cern.ch/~holzner/



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:35 MET