Hi Paul, G. Paul Ziemba writes:
> There seems to be something wrong with the software deskew operation > in SANE. I'm hoping someone can either confirm it is a bug or suggest > alternate arguments to scanimage to fix the problem. I am also happy > to modify C code and try patches. I'm no expert here but looking at your images and the fujitsu backend code, - what does a swcrop'd only image look like? - what if you add a call to buffer_crop before buffer_deskew in the backend/fujitsu.c code? The code currently has /* finished buffering, adjust image as required */ if(s->swdeskew && (!s->hwdeskewcrop || s->req_driv_crop)){ buffer_deskew(s,s->side); } if(s->swcrop && (!s->hwdeskewcrop || s->req_driv_crop)){ buffer_crop(s,s->side); } The idea is to run crop, deskew, crop, so change that to /* finished buffering, adjust image as required */ if((s->swdeskew && s->swcrop) && (!s->hwdeskewcrop || s->req_driv_crop)){ buffer_crop(s,s->side); } if(s->swdeskew && (!s->hwdeskewcrop || s->req_driv_crop)){ buffer_deskew(s,s->side); } if(s->swcrop && (!s->hwdeskewcrop || s->req_driv_crop)){ buffer_crop(s,s->side); } > Many thanks for your anticipated suggestions. Hope this helps, -- Olaf Meeuwissen, LPIC-2 FSF Associate Member since 2004-01-27 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9 Support Free Software https://my.fsf.org/donate Join the Free Software Foundation https://my.fsf.org/join -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org