Status: Read
Received: from [192.48.153.1] by phillip.thumbsplus.com (NTMail 3.03.0013/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Fri, 13 Feb 1998 19:06:21 -0400
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.sgi.com (950413.SGI.8.6.12/970507) via ESMTP id PAA08202; Fri, 13 Feb 1998 15:53:32 -0800
	env-from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo-owner@localhost) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) id NAA28149 for tiff-list; Fri, 13 Feb 1998 13:44:36 -0800
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37]) by cthulhu.engr.sgi.com (950413.SGI.8.6.12/960327.SGI.AUTOCF) via ESMTP id NAA28138 for <tiff-relay@cthulhu.engr.sgi.com>; Fri, 13 Feb 1998 13:44:35 -0800
Received: from cfa.harvard.edu (cfa.harvard.edu [131.142.10.1]) by sgi.sgi.com (950413.SGI.8.6.12/970507) via ESMTP id NAA27827
	for <tiff@sgi.com>; Fri, 13 Feb 1998 13:44:26 -0800
	env-from (alberto@cfa0.harvard.edu)
Received: from cfa0.harvard.edu (cfa0.harvard.edu [131.142.10.30]) by cfa.harvard.edu (8.8.5/8.7.3) with SMTP id QAA11454; Fri, 13 Feb 1998 16:44:25 -0500 (EST)
Received: from cfa0 by cfa0.harvard.edu (SMI-8.6/SMI-SVR4)
	id QAA29503; Fri, 13 Feb 1998 16:44:13 -0500
Message-Id: <199802132144.QAA29503@cfa0.harvard.edu>
Reply-to: Alberto Accomazzi <aaccomazzi@cfa.harvard.edu>
To: Randy Myers <rmyers@atlanta.dg.com>
cc: tiff@sgi.com
Subject: Re: Text to tiff? 
In-reply-to: Your message of Fri, 13 Feb 1998 13:19:38 -0500.
             <3.0.1.32.19980213131938.00299e70@tidybo> 
X-Uri: http://cfa-www.harvard.edu/~alberto
Date: Fri, 13 Feb 1998 16:44:12 -0500
From: Alberto Accomazzi <alberto@cfa0.harvard.edu>
Sender: owner-tiff@fddi-sgi.sgi.com
Precedence: bulk

In message <3.0.1.32.19980213131938.00299e70@tidybo>, Randy Myers writes:

> Greetings, all.
> 
> I wish to annotate an existing bitonal TIFF with text, under Unix.
> 
> I'm prepared to merge TIFFs made from text with existing images, but I'd
> certainly welcome any knowledge of a tool that is intended for annotation.
> 
> Are there alternatives to netpbm tools for rendering text as a TIFF graphic?
> I need multi-line, multi-font capabilities and some scalability or a
> reasonable
> selection of sizes; and it would be nice if I could just state the resolution
> I want in the target image.  Proportional and exotic fonts are not required.

Randy,

your best bet is to let ghostscript (http://www.cs.wisc.edu/~ghost)
do the job in terms of rendering the text and createing a TIFF G4 file.
Assuming you can have the textual information in a snipped to postscript
code, you can then let ghostscript encapsulate it and then output a 
tiff file including only what's in the postscript bounding box.  

You could even take this a step further, by converting the original
image (the one to be annotated) to postscript (as a bitmap), let 
ghostscript rasterize it, overlay the annotation on it, and then write
it out as a TIFF G4 file.  May be a bit obstruse, but it should work.


-- Alberto


****************************************************************************
Alberto Accomazzi                 NASA Astrophysics Data System / SIMBAD USA
aaccomazzi@cfa.harvard.edu             Smithsonian Astrophysical Observatory
v/f: 617-495-7076/617-496-7577                60 Garden Street, Mail Stop 83
http://cfa-www.harvard.edu/~alberto                 Cambridge, MA 02138  USA
****************************************************************************
