Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DVI to TIFF

122 views
Skip to first unread message

Lawry Simm

unread,
Dec 1, 1999, 3:00:00 AM12/1/99
to
I'm looking for a package to convert a DVI file (out of LaTeX2e) to a TIFF
file.

I have checked out the 'tiff' package on ctan, but the documentation is very
sparse. It seems that this package will do most things except what I'm
looking for....

Do I indeed have the right package (I'll rummage through the documentation a
little more), or if not, can someone point me to the right one.

Many thanks,
--
Lawry Simm
Technical Consultant - Lynx Heywood Limited
(remove the hairy thing from my reply-to address to mail me)

--
Lawry Simm
Technical Consultant - Lynx Heywood Limited
(remove the hairy thing from my reply-to address to mail me)

Stewart C. Russell

unread,
Dec 2, 1999, 3:00:00 AM12/2/99
to
"Lawry Simm" <lawry...@heywood.co.uk> wrote:
>
>I'm looking for a package to convert a DVI file (out of LaTeX2e) to a TIFF
>file.

The best approach I have found is to use dvips to create a PostScript file, then
use Ghostscript to generate a TIFF file:

dvips -o flarp.ps flarp.dvi
gs -dNOPAUSE -q -dBATCH -sDEVICE=tiff24nc -r300 -sOutputFile=flarp.tif flarp.ps

This may not be as `pure' an approach as some might advocate, but it works well,
and doesn't need a new DVI driver written. Some caveats, though:

- be sure to match the `-r' resolution in Ghostscript to your default printer
resolution if you want the output to be full size.

- it's probably a good idea to eschew PK bitmap fonts and all forms of bitmap
graphics if you're going to output at a different resolution.

- you'll probably get a large margin that you don't need.

- use -sDEVICE=tiffg4 if the the graphics are B&W. The files will be small.

Do you have to use TIFF? Ghostscript's TIFF support is great for mono work, but
the patent on the LZW algorithm means that compressed colour TIFFs can't be
made with this free tool. PNG is better supported, with a good range of image
depths.

If you use PNM output (-sDEVICE=pnmraw), you can add 4-bit text anti-aliasing
with the `-dTextAlphaBits=4' option. The output files are huge, sadly; I wish
more of Ghostscript's image file drivers supported this.

--
Stewart C. Russell, Kirkintilloch, Scotland - scr...@enterprise.net
"Hang on... This is the real thing... The truth, my friend,
and nothing but the truth" - Mervyn Peake
http://homepages.enterprise.net/scruss/

Sebastian Marius Kirsch

unread,
Dec 2, 1999, 3:00:00 AM12/2/99
to
Lawry Simm schreibt:

> I'm looking for a package to convert a DVI file (out of LaTeX2e) to a TIFF
> file.

Convert it to PostScript (using dvips) and convert the PostScript file
to TIFF using GhostScript and preferably (because it is more
comfortable) ImageMagick as a frontend for GhostScript.

Then you'd say something like

convert file.ps tiff:file%02d.tiff

Yours, Sebastian

Lawry Simm

unread,
Dec 2, 1999, 3:00:00 AM12/2/99
to
Stewart C. Russell, Kirkintilloch, Scotland - scr...@enterprise.net wrote

> - be sure to match the `-r' resolution in Ghostscript to your default
printer
>resolution if you want the output to be full size.

>Do you have to use TIFF? Ghostscript's TIFF support is great for mono work,
but
>the patent on the LZW algorithm means that compressed colour TIFFs can't be
>made with this free tool. PNG is better supported, with a good range of
image
>depths.


Well, we would be generating documents/letters etc that would only be in B&W
anyway. It's for our document imaging system. At the moment we generate
plain text files, that have to use a fixed pitch font. Customer requests are
now that we have a more flexible document output, so we started using LaTeX.
We basically need to generate an image of the document to store on optical
disks, and the imaging software uses TIFF format for storing the images. So,
we need to take the generated DVI file and convert it to TIFF to be able to
access via the imaging software.

Regards,
Lawry Simm

Stewart C. Russell

unread,
Dec 3, 1999, 3:00:00 AM12/3/99
to
"Lawry Simm" <lawry...@heywood.co.uk> wrote:
>
>Well, we would be generating documents/letters etc that would only be in B&W
>anyway.

Well, tiffg4 is what you want *if* your document storage system supports it.
It should, though; it's only half-bright WYSIWYG systems (can you say Quark?
I knew you could!) that don't.

--

Stewart C. Russell, Kirkintilloch, Scotland - scr...@enterprise.net

0 new messages