[comp.sys.next] X Backgrounds -> NeXT Backrounds?

barry@pico.math.ucla.edu (Barry Merriman) (08/04/90)

I have a lot ( about 50 ) digitized images that I
use as  backgounds in X windows (via the ``xsetroot -bitmap'' command).

Any idea how to convert them so that they can be used as NeXTStep backgrounds?
(and, any idea how to convert the NeXT backgrounds (like the Eye) to X form?)

Ideally, I'd like to have some analog of the xsetroot command, that would tile
the NeXT background with the images, if they don't fill it completely.

If I can get them converted and displayable, I would post them 
to archive for general distribution. ( Though some, like the nude shot of
Marilyn Monroe, are rather racy. Could the Internet
get hit with an obscinity charge? Sorry, no nude males available.) 
In compressed form, they consume a
total of about 2 MB. (Also, they display fine under XNeXT).


Barry Merriman

dastrout@miavx1.acs.muohio.edu (root@next1) (08/04/90)

> I have a lot ( about 50 ) digitized images that I
> use as  backgounds in X windows (via the ``xsetroot -bitmap'' command).
> 
> Any idea how to convert them so that they can be used as NeXTStep backgrounds?
> (and, any idea how to convert the NeXT backgrounds (like the Eye) to X form?)
> 
> Ideally, I'd like to have some analog of the xsetroot command, that would tile
> the NeXT background with the images, if they don't fill it completely.
> 
Try displaying them under XNeXT, then do a screen grab under Scene, in NextDev-
eloper/demos.  Also, isn't here a prog to do the conversion under XNeXT?  (I'm
not at any of my machines, at the moment, else I'd look myself)  Finally, there
is a program called background, which is on the standard servers, which will
load a TIFF in as the background.  Just put background -f fname in your .cshrc.
If you can't find it, let me know, as I've got it here.
-- 
Dave Strout
dastrout@miavx1.acs.muohio.edu
dastrout%miavx1.bitnet@pucc.princeton.edu
root@next1.acs.muohio.edu
513-523-8245

lane@sumex-aim.stanford.edu (Christopher Lane) (08/06/90)

In <2051.26ba9add@miavx1.acs.muohio.edu>, dastrout@miavx1.acs.muohio.edu
writes:
>>...
>> Ideally, I'd like to have some analog of the xsetroot command, that
>> would tile the NeXT background with the images, if they don't fill
>> it completely.
>...
> Finally, there is a program called background, which is on the standard
> servers, which will load a TIFF in as the background.  Just put
> background -f fname in your .cshrc.

If that's the 'background' csh script I posted to the cs.orst.edu server, it
will only take EPS files, not TIFF.  It will tile, center and scale though.

- Christopher
-------

nick@bischeops.UUCP (Nick Bender) (08/06/90)

In article <203@kaos.MATH.UCLA.EDU>, barry@pico.math.ucla.edu (Barry Merriman) writes:
> 
> I have a lot ( about 50 ) digitized images that I
> use as  backgounds in X windows (via the ``xsetroot -bitmap'' command).
> 
> Any idea how to convert them so that they can be used as
> NeXTStep backgrounds? (and, any idea how to convert the
> NeXT backgrounds (like the Eye) to X form?)


For all your image conversion needs, I recommend getting a copy of "pbmplus"
from your nearest archive. The following is the file "FORMATS" from the
distribution (PBM = Portable BitMap, PGM = Portable GreyMap, and
PPM = Portable PixMap):

==============================================================================

PBM handles the following formats:

    Sun icon file				reading	writing
    Sun raster file				reading	writing
    X10 and X11 bitmap file			reading	writing
    MacPaint					reading	writing
    CMU window manager format			reading	writing
    MGR format					reading	writing
    Group 3 FAX					reading	writing
    X11 window dump file			reading	writing
    X10 window dump file			reading
    Xerox doodle brushes			reading
    GEM .img format				reading
    PC paintbrush (.pcx) format			reading
    PICT					reading
    ASCII graphics					writing
    HP LaserJet format					writing
    GraphOn graphics					writing
    BBN BitGraph graphics				writing
    Printronix format					writing

PGM handles the following formats:

    TIFF					reading
    Usenix FaceSaver file			reading
    HIPS					reading
    FITS					reading	writing
    PostScript "image" data			reading
    raw grayscale bytes				reading
    Encapsulated PostScript				writing

PPM handles the following formats:

    color Sun raster file			reading	writing
    GIF						reading	writing
    Amiga IFF ILBM				reading	writing
    color X11 window dump file			reading	writing
    color X10 window dump file			reading
    MTV ray-tracer output			reading
    QRT ray-tracer output			reading
    TrueVision Targa file			reading
    Img-whatnot file				reading
    color Encapsulated PostScript			writing

=============================================================================

The author is:

    Jef Poskanzer
    jef@well.sf.ca.us
    {ucbvax, lll-crg, sun!pacbell, apple, hplabs}!well!jef

We've had good success converting all sorts of images to X and Tiff.
Good luck,

nick@bis.com