[sane-devel] Putting a scan into a tiff file

Henning Meier-Geinitz henning@meier-geinitz.de
Tue, 18 Feb 2003 22:09:43 +0100


Hi,

On Tue, Feb 18, 2003 at 03:31:32PM +0100, Joachim Backes wrote:
> Having problems when using sane with the following components:
> 
>         sane-backends-1.0.10
>         sane-frontends-1.0.10
>         xsane-0.90
> 
> Saving the scanned input into a tiff file will generate a
> corrupt tiff file. This is independent from the scanner
> model and/or scanning gray/color.

It's very unlikely that breakage like that goes unnoticed for a longer
time. Which scanners/backends do you use?

> Both "xpaint" or "display" (a part of ImageMagick) abort with
> segmentation violation when opening such a tiff file.

Well, any program that segfaults is broken. So there is a bug in
ImageMagick or one of the libraries it uses. I don't say that the tiff
is correct, but the viewer shouldn't crash anyway.

Ok, some tests:

scanimage -d test --format tiff >image.tiff
  no problem with gimp, qiv and display
xsane test
  no problem with gimp, qiv and display

Please try the above tests and also view the tiffs with other viewers.

Bye,
  Henning