g3togif (was: web fax viewer...)

Luigi Rizzo (luigi@labinfo.iet.unipi.it)
Sun, 25 May 1997 14:26:19 +0200 (MET DST)


> Hi,
> 
> Luigi Rizzo wrote:
> > I think the best results could be achieved by producing a gif file
> > with about 100dpi on each direction and using antialiasing when
...
> 
> g3topbm | pnmscale -xscale 0.5 -yscale 0.5 | ppmtogif

I think pnmscale does not do antialiasing, but I'll try it.
On the other hand, viewfax does a good job at 1/2 and 1/4 resolution,
so I'll just have a look at what it does.

> If we had a specialized conversion tool to do just this (shrink to 100 dpi
> [which is fairly easy as the standard resolution is approx. 200x200 or 
> 200x100 dpi] and create a GIF from that) it should be reasonable fast, 
> you're right.

yes, I said 100dpi to mean "half hres"x"low vres"

> What I would like to see, though, is a way to get different sizes of the
> fax on the client side - some faxes really aren't readable at 100 dpi or
> even less -- *without* transmitting the image twice.
> 
> Maybe use the image scaling functions built into many/most www browsers?

I am not sure on what you mean, but html tags for images allow you to
specify both a lowres and a highres version of the same image. Is that
what you have in mind ?

Also, I would not be too worried about transmitting the image twice,
because the 1/4-size image is probably some 10KB, and in many cases it
is all you need. I think that to solve your problem (variable
resolution display) the only approach is to spawn an external viewer.

	Cheers
	Luigi
-----------------------------+--------------------------------------
Luigi Rizzo   | Dip. di Ingegneria dell'Informazione
email: luigi@iet.unipi.it | Universita' di Pisa
tel: +39-50-568533   | via Diotisalvi 2, 56126 PISA (Italy)
fax: +39-50-568522   | http://www.iet.unipi.it/~luigi/
_____________________________|______________________________________
*From mgarc@eli.wariat.org Sun May 25 08:00:27 1997
Received: (from mgarc@localhost) by eli.wariat.org (8.7.5/8.7.3) id IAA05854; Sun, 25 May 1997 08:00:26 -0500
Date: Sun, 25 May 1997 08:00:26 -0500
From: mgetty/vgetty archive <mgarc@eli.wariat.org>
Message-Id: <199705251300.IAA05854@eli.wariat.org>
To: mgarc@eli.wariat.org
Subject: cron: /home/mgarc/update 

Traceback (innermost last):
 File "/usr/local/bin/pipermail", line 384, in ?
 i=emailpat.search(L)
TypeError: 2-tuple, None
.