Archive of the former Yahoo!Groups mailing list: Homebrew PCBs

previous by date index next by date
previous in topic topic list next in topic

Subject: Re: G3 fax - Good news and Bad News

From: "Andrew" <andrewm1973@...>
Date: 2006-05-02

> Me wrote:
>
> I have finished reading the TIFF specifications
> carefully and also looked at some TIFF/G3 files in
> a hex editor. It is very doable from a seriel
> stream as long as the saving application does not
> put the segments of the picture out of order.
>
> Most of the apps I have looked at so far have saved
> the TIFF in a suitable format.

Well - The good news and bad news.

The good news is I wrote a quick and dirty TIFF
file decoding application in C on the PC this
afternoon.

The bad news is - MANY TIFF files have the image
description AFTER the pixel data.

This puts a spanner in my plans to just X-Modem
the file to the Plotter/EDM machine.

Does Roger or anyone else that may have wanted
to use this code have a preference for either of
the below options

1, Write some PC code the re-saves the TIFF with
the image descriptor at the start of the file

Then send this re-saved TIFF via X-Modem.

2, Write some code on the PC that just reads a
BMP or TIFF and sends it straight to the
target system byte by byte.

Option one is probably my preference. I can
still just use X-Modem. The re-saved TIFF is
still a valid TIFF. If your application saves
in that format anyways - there is no extra step.

Option two means I have to write more PC code
than I normally like too - lazy lazy andrew.