kopia lustrzana https://gitlab.com/sane-project/website
110 wiersze
3.8 KiB
HTML
110 wiersze
3.8 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>sane-devel: Bug in stiff.c</TITLE>
|
||
|
<META NAME="Author" CONTENT="Jaeger, Gerhard (gjaeger@sysgo.de)">
|
||
|
<META NAME="Subject" CONTENT="Bug in stiff.c">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>Bug in stiff.c</H1>
|
||
|
<!-- received="Tue Nov 14 06:53:10 2000" -->
|
||
|
<!-- isoreceived="20001114145310" -->
|
||
|
<!-- sent="Tue, 14 Nov 2000 15:49:16 +0100" -->
|
||
|
<!-- isosent="20001114144916" -->
|
||
|
<!-- name="Jaeger, Gerhard" -->
|
||
|
<!-- email="gjaeger@sysgo.de" -->
|
||
|
<!-- subject="Bug in stiff.c" -->
|
||
|
<!-- id="00111416042400.09493@gja" -->
|
||
|
<!-- inreplyto="39FC66FE.B5C2FB38@kirchgessner.net" -->
|
||
|
<STRONG>From:</STRONG> Jaeger, Gerhard (<A HREF="mailto:gjaeger@sysgo.de?Subject=Re:%20Bug%20in%20stiff.c&In-Reply-To=<00111416042400.09493@gja>"><EM>gjaeger@sysgo.de</EM></A>)<BR>
|
||
|
<STRONG>Date:</STRONG> Tue Nov 14 2000 - 06:49:16 PST
|
||
|
<P>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0185.html">Peter Schossig: "Microtek ArtixScan 4000"</A>
|
||
|
<UL>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0183.html">Eddy De Greef: "Mustek 1200CP CIS patch available (experimental)"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0186.html">Scott Courtney: "Re: Bug in stiff.c"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0186.html">Scott Courtney: "Re: Bug in stiff.c"</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#184">[ date ]</A>
|
||
|
<A HREF="index.html#184">[ thread ]</A>
|
||
|
<A HREF="subject.html#184">[ subject ]</A>
|
||
|
<A HREF="author.html#184">[ author ]</A>
|
||
|
</UL>
|
||
|
<HR NOSHADE><P>
|
||
|
<!-- body="start" -->
|
||
|
<P>
|
||
|
Hi list, hi Peter,
|
||
|
<BR>
|
||
|
<P>it seems, that there's a bug in the TIFF output for scanimage (file stiff.c)
|
||
|
<BR>
|
||
|
according to RGB pictures.
|
||
|
<BR>
|
||
|
GIMP seems to ignore this incorrect TIFF-header, while kview
|
||
|
<BR>
|
||
|
produces rubbish...
|
||
|
<BR>
|
||
|
The problem:
|
||
|
<BR>
|
||
|
When writing the TIFF header, you have to specify the TAG
|
||
|
<BR>
|
||
|
"BitsPerSample", which tells a reader how many bits each sample
|
||
|
<BR>
|
||
|
has. The current version only specifies one value (8 or 16). This
|
||
|
<BR>
|
||
|
is wrong, as we have to specify one value for each channel (i.e
|
||
|
<BR>
|
||
|
for a 24bit RGB pic we must specify 8,8,8, see TIFF6.0 spec,
|
||
|
<BR>
|
||
|
page 24).
|
||
|
<BR>
|
||
|
The attached patch solves this problem - Peter you might
|
||
|
<BR>
|
||
|
apply the patch and test again!
|
||
|
<BR>
|
||
|
<P>Best regards
|
||
|
<BR>
|
||
|
Gerhard
|
||
|
<BR>
|
||
|
|
||
|
<BR><HR NOSHADE>
|
||
|
<UL>
|
||
|
<LI>text/x-c attachment: <A HREF="att-0184/01-stiff.patch">stiff.patch</A>
|
||
|
</UL>
|
||
|
<!-- attachment="01-stiff.patch" -->
|
||
|
<P><PRE>
|
||
|
--
|
||
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
||
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Bug%20in%20stiff.c&In-Reply-To=<00111416042400.09493@gja>">majordomo@mostang.com</A>
|
||
|
</PRE>
|
||
|
<P><!-- body="end" -->
|
||
|
<HR NOSHADE>
|
||
|
<UL>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0185.html">Peter Schossig: "Microtek ArtixScan 4000"</A>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0183.html">Eddy De Greef: "Mustek 1200CP CIS patch available (experimental)"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0186.html">Scott Courtney: "Re: Bug in stiff.c"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0186.html">Scott Courtney: "Re: Bug in stiff.c"</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#184">[ date ]</A>
|
||
|
<A HREF="index.html#184">[ thread ]</A>
|
||
|
<A HREF="subject.html#184">[ subject ]</A>
|
||
|
<A HREF="author.html#184">[ author ]</A>
|
||
|
</UL>
|
||
|
<!-- trailer="footer" -->
|
||
|
<HR NOSHADE>
|
||
|
<P>
|
||
|
<SMALL>
|
||
|
<EM>
|
||
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
||
|
: <EM>Tue Nov 14 2000 - 07:01:42 PST</EM>
|
||
|
</EM>
|
||
|
</SMALL>
|
||
|
</BODY>
|
||
|
</HTML>
|