Skip to content
Prev 30009 / 398503 Next

Autogenerated png, bitmap images

Tony,
I have played with Xvfb and have not seen the same font problem (Mandrake
9.0 for Linux, R 1.6.2) generating png's via CGI (my problems are more with
CGI-secure permissions).  You mentioned running a cron (batch) job -- do you
see the same problem using R interactively (such as an ssh login with X not
running)?  Perhaps you can provide some lines of your code of your cron
script to help the diagnosis?  What is specifically messed up with the
fonts?

Adjusting the pointsize argument in png might help.
As far as bitmaps go, I think that in general the smaller they are, the less
resolution you will have. But even if you are willing to give that up, you
might need to delve into ghostscript call options, since my understanding is
that what bitmap() uses under Linux (and I presume other X11 device
approaches including Solaris).  See the code for bitmap(), in particular the
gsexe and cmd objects. (I noticed your setting of some arguments like res in
your bitmap generation file attachment, but as I guess above, other
gs-intrinsic flags may be needed.)

Hope that helps,
Bill

----------------------------------------
Bill Pikounis, Ph.D.

Biometrics Research Department
Merck Research Laboratories
PO Box 2000, MailDrop RY84-16  
126 E. Lincoln Avenue
Rahway, New Jersey 07065-0900
USA

v_bill_pikounis at merck.com

Phone: 732 594 3913
Fax: 732 594 1565
------------------------------------------------------------------------------