[comp.graphics] GIF viewer on VT100

@seq1.keele.ac.uk (Rob Barth) (06/11/91)

Does anyone know of a Un*x program that will let me view GIFs on a
standard VT100 dumb text terminal ?

-- Rob --
                   /-----------------------------------\
                   |  Rob Barth  -  csw22@uk.ac.keele  |
                   \-----------------------------------/

grover@big-joe.cs.unlv.edu (Kevin Grover) (06/11/91)

In article <19403.9106101930@uk.ac.keele.seq1>, seq1!@seq1.keele.ac.uk (Rob Barth) writes:
) Does anyone know of a Un*x program that will let me view GIFs on a
) standard VT100 dumb text terminal ?
) 
) -- Rob --

Trying to view a GIF on a VT100 would be slightly better than useless: the VT100
series supports no graphics nor color.  You could write a viewer for the VT330
(gray scale) and VT340 series though.  However, they would be VERY slow compared
to say a PC or X11 station unless the terminal were connected directly (or through
a VERY fast link) to the machine decoding the image.  If anyone wishes to 
undertake this problem, I wrote a bunch of C macros to do VT330/340 graphics
a while back. I could post them or send them to anyone interested.  (Once I find
them that is :-) ).  With these macros it should be a simple task to convert
another GIF viewer (written in protable C) to work on VT3xx series terminals.

-- 
  +---------------------------+-----------------------------------------------+
  | Kevin O. Grover           | UNLV Computer Science and Electrical Eng.     |
  | grover@cs.unlv.edu        | ISRI - Information Science Research Institute |
  | 73627.1677@compuserve.com | 4505 S. Maryland Prkwy, Las Vegas NV 89154    |
  +---------------------------+-----------------------------------------------+

jbhuber@IASTATE.EDU (Huber Joseph Blaine) (06/12/91)

In article <19403.9106101930@uk.ac.keele.seq1>, seq1!@seq1.keele.ac.uk (Rob
Barth) writes:
>Does anyone know of a Un*x program that will let me view GIFs on a
>standard VT100 dumb text terminal ?
> 
>-- Rob --
>

I too am looking for such a program, except that I am using a vt241 (which
supports regis and tektronics 4010/4014, and some color).  I would greatly
appreciate if those who mail Rob could drop me a line as well.  I regularly read
this group, so I will find any responses left here.

Another question (I hope it is approprate for this group) : is there a document
that describes and/or summarizes the graphics capabilities of the various dec
vt1xx, vt2xx, vt3xx as well as tektronics 4xxx series terminals.  I am
interested in color capabilites, resolution, etc.

Thanks in advance for any help!!

Joseph B. Huber   jbhuber@iastate.edu
Dept. of Mech Egr.
Iowa State University

steele@mountaindew.rtp.dg.com (Michael Steele) (06/12/91)

In article <1991Jun11.163513.22969@unlv.edu>, grover@big-joe.cs.unlv.edu (Kevin Grover) writes:
|> In article <19403.9106101930@uk.ac.keele.seq1>, seq1!@seq1.keele.ac.uk (Rob Barth) writes:
|> ) Does anyone know of a Un*x program that will let me view GIFs on a
|> ) standard VT100 dumb text terminal ?
|> ) 
|> ) -- Rob --
|> 
|>Trying to view a GIF on a VT100 would be slightly better than useless: the VT100
|>series supports no graphics nor color.  You could write a viewer for the VT330
|>(gray scale) and VT340 series though.  However, they would be VERY slow compared
|>to say a PC or X11 station unless the terminal were connected directly (or through

I have a friend who has written a GIF viewer for VT320 terminals.  He did it
by redefining the character set.  The image is about 1.5"x1.5".  Surprisingly, 
you can tell what most images are.  It doesn't make a good viewer if you've
never seen the image before, just useful if you need to track down a file and
can't remember the name.  You can send my friend mail: gar@garfield.catt.ncsu.edu.

-- 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  Michael Steele		steele@dg-rtp.dg.com or mikes@catt.ncsu.edu
  Data General Corporation -- Building the finest Workstations in Industry
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

mann@intacc.uucp (Jeff Mann) (06/13/91)

In article <19403.9106101930@uk.ac.keele.seq1> csw22@keele.ac.uk writes:
>Does anyone know of a Un*x program that will let me view GIFs on a
>standard VT100 dumb text terminal ?
>
>-- Rob --
>                   /-----------------------------------\
>                   |  Rob Barth  -  csw22@uk.ac.keele  |
>                   \-----------------------------------/

Yes, it's not too difficult.  Just log in to your unix machine from your
Macintosh through the Gatorbox ethernet router, and ftp the GIF to the
Mac.  Then take the GIF into the Adobe Photoshop program on your
Macintosh, and convert it to TARGA format.  (You could probably use
pbmplus or something on unix for this step, but Photoshop has nice
menus.) Then, send the TARGA picture over your TOPS network to your IBM
with the TARGA 16 card in it.  Then, you can use the program I wrote for
the TARGA to convert the picture to an ASCII text representation.  (I'll
e-mail you a copy of the ASCII converter .exe file if you need this).
Then send the ASCII file back to the unix machine in the normal way, and
voila!  You can cat the file to your VT100 terminal.  You might even be
able to tell what the picture is, if it is a closeup of a face or
something easily recognizable.  That's how I would do it anyways.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
|  Jeff Mann  Inter/Access Artists' Computer Centre, Toronto  [416] 535-8601 |
| ...uunet!mnetor!intacc!mann   intacc!mann@nexus.yorku.ca  mann@intacc.uucp |
|      The Matrix Artists' Computer Network BBS: [416] 535-7598 2400 8N1     |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

alanb@sdl.mdcbbs.com (06/14/91)

In article <1991Jun12.204756.2743@intacc.uucp>, mann@intacc.uucp (Jeff Mann) writes:
> In article <19403.9106101930@uk.ac.keele.seq1> csw22@keele.ac.uk writes:
>>Does anyone know of a Un*x program that will let me view GIFs on a
>>standard VT100 dumb text terminal ?
>>
>>-- Rob --
>>                   /-----------------------------------\
>>                   |  Rob Barth  -  csw22@uk.ac.keele  |
>>                   \-----------------------------------/
> 
> Yes, it's not too difficult.
[Unix -> Mac -> PC -> Unix omitted except] 
> do this step in pbmplus or something on unix for this step, but Photoshop 
> has nice menus.)
> 
> |  Jeff Mann  Inter/Access Artists' Computer Centre, Toronto  [416] 535-8601 |
> | ...uunet!mnetor!intacc!mann   intacc!mann@nexus.yorku.ca  mann@intacc.uucp |

If you can live without a menu interface you can do it all with pbmplus

cat foo.gif | giftoppm | ppmtopbm | pbmtoascii > foo.ascii

pbmplus comes with the X11R4 distribution (among other places).
Output from pbmtoascii is described in the man page as "a somewhat crude ASCII
graphic" - I've no idea what the tools Jeff describes are like.
pbmplus also has assorted tools (e.g. scale, contrast normalisation, edge
enhancement, smoothing) that might or might not help at some point in the pipe.


alanb@sdl.mdcbbs.com    Alan Braggins
"My own opinions" - and I haven't tried GIF with pbm. Works for Sun raster or
xwd to ASCII though.

english@seq.uncwil.edu (Warren R. English Jr.) (06/15/91)

I wrote a GIF viewer in C a year ago that uses the REGIS
graphics, it was designed to for use on my vt240 connected
VIA MODEM to a unix type machine. SLOW @ 2400.
It uses 4 colors, and allows some tinkering with the colors.
It needs some work though, anything of 320x192 really confuses it.
I will see if I can get it in our anonymous FTP area here on
my machine or I guess I could mail it, if I can find it :-)

english@seq.uncwil.edu

beau1029@mstr.hgc.edu (donald beaudry) (06/16/91)

>|> In article <19403.9106101930@uk.ac.keele.seq1>, seq1!@seq1.keele.ac.uk (Rob Barth) writes:
>|> ) Does anyone know of a Un*x program that will let me view GIFs on a
>|> ) standard VT100 dumb text terminal ?
>|> ) 
>|> ) -- Rob --
>|> 

You ask a simple question, you want a simple answer.  Here goes:

1.  Get the pbmplus toolkit (ftp as contrib/pbmplus.tar.Z from 
	export.lcs.mit.edu).

2.  Build it on your favorite Unix box.

3.  Type:  
	  giftoppm myfile.gif | ppmtopgm | pgmtopbm | pbmtoascii > myfile.txt

4.  cat myfile.txt

5.  Crop and scale to taste.

This produces raw text that can be catted onto any tty.  If you've scaled
way down, stand futher away.

* - HashBangSplat) (06/17/91)

In article <1991Jun11.123704@IASTATE.EDU> jbhuber@IASTATE.EDU (Huber Joseph Blaine) writes:
>
>In article <19403.9106101930@uk.ac.keele.seq1>, seq1!@seq1.keele.ac.uk (Rob
>Barth) writes:
>>Does anyone know of a Un*x program that will let me view GIFs on a
>>standard VT100 dumb text terminal ?
>> 
>>-- Rob --
>>
>
>I too am looking for such a program, except that I am using a vt241 (which
>supports regis and tektronics 4010/4014, and some color).  I would greatly
>appreciate if those who mail Rob could drop me a line as well.  I regularly read
>this group, so I will find any responses left here.
>
>Another question (I hope it is approprate for this group) : is there a document
>that describes and/or summarizes the graphics capabilities of the various dec
>vt1xx, vt2xx, vt3xx as well as tektronics 4xxx series terminals.  I am
>interested in color capabilites, resolution, etc.
>
>Thanks in advance for any help!!
>
>Joseph B. Huber   jbhuber@iastate.edu
>Dept. of Mech Egr.
>Iowa State University

	I have been playing around with such ideas for a while now. If you
have the PBMplus package then you can convert these images (GIFS) to a ppm
file. I have written a program that produces reasonable colour halftones on a
tek40xx COLOUR terminal, ie tvi925 or MS-Kermit ( eight colours ie r + g + b ),
or colour dithers again in 8 colours.

	I do stress that you need the PBMplus package to convert the GIFs to a
format understood by my program. Also it is decidedly slow. It takes about 15
mins to draw the image on a 9600 baud line. If there are a reasonable number
of requests then I'll post a uuencoded compressed tar of the sources involved.

Hope you're interested,
Jez.
-- 
Jez Nicholls               
<ee9jan@gdt.bath.ac.uk>
                             "Marmalade, I like marmalade.", "Ooh me flakes."
#include "disclaimer.h"      These quotes courtesy of Alan. (APB AHM PF 1971)