[sane-devel] xscanimage and 16bit - patch

Henning Meier-Geinitz henning@meier-geinitz.de
Sat, 13 Oct 2001 17:56:42 +0200


On Thu, Oct 11, 2001 at 10:32:31AM +0200, mh wrote:
> while experimenting with 16bit/channel images, I found the following problem in
> xscanimage:
> When you scan such an image, xscanimage saves the image in P5/P6 raw PNM
> format with the max color component set to 255. I think, this can't be read by
> any application.
> I'd like to suggest, that we set the max color component to 65535, like it's
> done already in scanimage. This format can at least be read by some apps like
> Xv. 
> Another problem:
> When you use xscanimage as a gimp plugin and try to scan a 16bit/channel image,
> you get an error message. Nevertheless a new window pops up which displays only

Thanks. Your patch is (slightly modified) in CVS now. I can't test it
currently, so could someone else please test it with a scanner/backend
that can do more than 8 bits/color?