Re: Question regarding PNM-Format (OS/2)

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Thu, 9 Apr 1998 00:09:40 +0200 (MET DST)

Stefan Gombar wrote:
>
> Hi!
>
> When saving images in the PNM-Format with scanimage, there is a little
> string at the beginning of the image file (# SANE data follows).
>
> As this string isn't really neccessary, can it be omitted? It's because
> some graphic programs (like Impos/2) doesn't like this string in the
> image file. Without those 20 Bytes the images load without problems.

The pnm specs say that anything starting with a "#" is to be
considered a file note (comment) until the next line. That program is
not conforming to the pnm specs.

From pbm (5):

- Characters from a "#" to the next end-of-line are
ignored (comments).

(People from the Unix arena rather have everybody follow the specs
instead of everybody creating ad-hoc workarounds for every bug that
crops up. Please complain to the Impos/2 people about this.... ;-)

(Unix people also like to make small tools that do just one thing.
How a about a de-comment tool.....)

Regards,

Roger.

-- 
If it's there and you can see it, it's REAL      |___R.E.Wolff@BitWizard.nl  |
If it's there and you can't see it, it's TRANSPARENT |  Tel: +31-15-2137555  |
If it's not there and you can see it, it's VIRTUAL   |__FAX:_+31-15-2138217  |
If it's not there and you can't see it, it's GONE! -- Roy Wilks, 1983  |_____|

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com