[sane-devel] HP5370C - Distorted image

Martijn van Oosterhout Martijn van Oosterhout <kleptog@svana.org>
Sun, 11 Jan 2004 14:15:39 +1100


--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

While I can't really tell you how to fix it, what causes the problem is
actually trivial.

Lets say that the scanning software is expecting the scanner to send 541
pixels per line and the scanner actually sends 542, each row gets offset by
one leading to a very nice 45 degree slant to the right. If it sends 540 you
get a slant to the left.

It's a very simple off-by-one error. Maybe if you try scanning different
sizes to see which ones work and which ones don't you can get some kind of
idea of where the discrepancy lies.

Hope this helps,

On Sun, Jan 11, 2004 at 03:29:54AM +0100, gilles@ffii.org wrote:
> Hello.
>=20
> First: Thanks a lot for your continuous efforts to make this scanner work=
 with
> Linux!
>=20
> [Last time I had tried it (several months ago), with 'hpusbscsi', I had to
> quickly power off the scanner as the awful noise and erratic motion of the
> scanning made me believe it would fall apart...
> Today I compiled kernel 2.6.0, and reading that 'hpusbscsci' was now
> obsolete, I thought I could give it a try.]
>=20
> Now the scanner doesn't seem to suffer anymore :-) but the image produced
> is distorted: I'm among the unlucky ones who get a 45 degrees
> shifted-wrapped image (cf. a post from November 26).
>=20
> Is the source of the problem known?  Any chance that the scanner will be
> working properly?  [Scanning is the last and only thing which I must do on
> M$-Windows!]
>=20
>=20
> Best regards,
>=20
> Gilles
>=20
> P.S.  System info:
> # scanimage --version
> scanimage (sane-backends) 1.0.13; backend version 1.0.13
>=20
> Debian GNU/Linux testing/unstable
>=20
> --=20
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>              to sane-devel-request@lists.alioth.debian.org

--=20
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> (... have gone from d-i being barely usable even by its developers
> anywhere, to being about 20% done. Sweet. And the last 80% usually takes
> 20% of the time, too, right?) -- Anthony Towns, debian-devel-announce

--qDbXVdCdHGoSgWSk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAAL/bY5Twig3Ge+YRAtzbAKDYcfxmr4AsoxUivHdLuDSkBcMAhwCcCR4f
G+J1LRw7eVNdu9X6hWpD9N0=
=bAt+
-----END PGP SIGNATURE-----

--qDbXVdCdHGoSgWSk--