gimp does it, scanimage doesn't :

From: Jan Vicherek (honza@ied.com)
Date: Sun Jul 16 2000 - 14:05:34 PDT

  • Next message: Oliver Rauch: "Re: Possible sane problem with version 1.0.2 or system"

      Hi,

      I'm a little puzzled; I'm trying to scan some light-gray text on white
    paper. I can accomplish a particular scan settings with gimp plugin, but
    not with "scanimage" frontend :

     ps auxwww | grep scan

    ... /usr/lib/gimp/1.0/plug-ins/xscanimage -gimp 11 9 64 64

     here I have set the gimp's dialog box to :

    resolution 300
    scan speed 1
    exposure -18
    brightness -100
    contrast 49
    white level 255
    black level 180
    midtone 183
    no gamma
    ... dimensions ...

      with the above through gimp plugin, things work, I get pretty good
    results,

    but when I try to use command line settings, it doesn't seem to help
    any. This command :

    scanimage -d net:fred:microtek:/dev/scanner -v --exposure -18 --mode LineArt --resolution 300 -l 0in -t 0in -x 3.49in -y 02.00in --brightness -98 --contrast 48 --white-level 255 --black-level 180 --midtone 183

     has only little better visual results than this command :

    scanimage -d net:fred:microtek:/dev/scanner -v --exposure -18 --mode LineArt --resolution 300 -l 0in -t 0in -x 3.49in -y 02.00in

      both of them are ways away from the gimp plugin results.

     What can be wrong ? It looks like the command line may be interpretted
    incorrectly / differently from the gimp's plugin. I.e. although given same
    user-supplied values, the scanimage frontend may be sending different data
    to the backend than the gimp plugin.

     How can I find out what's wrong ? Is there a way to turn on debugging on
    saned to find out what params it's receiving from either of the frontends
    ? I tried manually starting "/usr/sbin/in.saned -d128", but no useful
    debug was forthcoming. Even with "/usr/sbin/in.saned -d" I only got basic
    debug. (see below)

      my setup :

    Microtek ScanMaker E3

     on the client :
     # rpm -qa | grep sane
    sane-1.0.2-2mdk
     $ uname -a
    Linux darkstar 2.2.14 #3 Tue Jan 11 17:50:01 EST 2000 i586 unknown

     on the sane server :
     # rpm -qa | g sane
    sane-1.0.2-3mdk
     # cat /etc/sane.d/saned.conf | grep -v '^#'
    darkstar
    localhost
    127.0.0.1

     # cat /etc/sane.d/microtek.conf
    # Uncomment following line to disable "real calibration" routines...
    norealcal
    # Uncomment following line to disable "clever precalibration" routines...
    #noprecal
    # Using "norealcal" will revert backend to pre-0.11.0 calibration code.
    scsi * * Scanner
    /dev/scanner

            TIA,

                           Jan

    -- 
    -- Gospel of Jesus is the saving power of God for all who believe --
                   ## To some, nothing is impossible. ##
                      http://Vicherek.Waterloo.on.ca/
    

    Jul 16 20:42:06 sane_server saned[4394]: access by saned-user@sane_client accepted Jul 16 20:42:06 sane_server saned[4394]: process_request: got request 2 Jul 16 20:42:07 sane_server saned[4394]: process_request: got request 4 Jul 16 20:42:07 sane_server saned[4394]: process_request: got request 5 Jul 16 20:42:07 sane_server last message repeated 7 times Jul 16 20:42:07 sane_server saned[4394]: process_request: got request 4 Jul 16 20:42:07 sane_server saned[4394]: process_request: got request 5 Jul 16 20:42:07 sane_server last message repeated 16 times Jul 16 20:42:07 sane_server saned[4394]: process_request: got request 7 Jul 16 20:42:07 sane_server saned[4394]: start_scan: using port 1870 for data Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: processing RPC request on fd 4 Jul 16 20:42:10 sane_server saned[4394]: process_request: got request 6 Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 8188 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 8192 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 4438 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 4442 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: read 4438 bytes from scanner Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 3750 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: wrote 697 bytes to client Jul 16 20:42:10 sane_server saned[4394]: do_scan: done, status=End of file reached Jul 16 20:42:10 sane_server saned[4394]: process_request: got request 8 Jul 16 20:42:10 sane_server saned[4394]: process_request: got request 3 Jul 16 20:42:10 sane_server saned[4394]: process_request: got request 10 Jul 16 20:42:10 sane_server saned[4394]: exiting

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Sun Jul 16 2000 - 14:07:12 PDT