Page 12 of 20 FirstFirst ... 21011121314 ... LastLast
Results 111 to 120 of 195

Thread: HOWTO: Share a scanner on the network in Lucid Lynx

  1. #111
    Join Date
    Jul 2008
    Beans
    3

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    i had an issue like that myself
    the issue is it cant scan that large of a area
    scanner says it can scan more than it really does
    can you paste the content of your scanners.json file?
    http://192.168.0.1/scan/config/scanners.json
    i will make a edit for it
    Here it is:
    PHP Code:
    [{"ID":0,"INUSE":0,"DEVICE":"pixma:04A9170C_5312A2","NAME":"CANON Canon PIXMA MP500 multi-function peripheral","DPI":"auto||75|150|300|600|1200","WIDTH":216.069,"HEIGHT":297.011,"LAMP":false}] 
    Quote Originally Posted by pqwoerituytrueiwoq View Post
    edit:
    i just remembered why i specifying to scan the size on full scan some scanners do not scan the entire bay by default
    you can manually edit the scanners.json with a smaller bay size the numbers are next to WIDTH and HEIGHT
    can you post this also?
    http://192.168.0.1/scan/index.php?pa...4A9170C_5312A2
    Here:
    PHP Code:
    Usagescanimage [OPTION]...

    Start image acquisition on a scanner device and write image data to
    standard output
    .

    Parameters are separated by a blank from single-character options (e.g.
    -
    d epson) and by a "=" from multi-character options (e.g. --device-name=epson).
    -
    d, --device-name=DEVICE   use a given scanner device (e.ghp:/dev/scanner)
        --
    format=pnm|tiff      file format of output file
    -i, --icc-profile=PROFILE  include this ICC profile into TIFF file
    -L, --list-devices         show available scanner devices
    -f, --formatted-device-list=FORMAT similar to -Lbut the FORMAT of the output
                               can be specified
    : %(device name), %(vendor),
                               %
    (model), %(type), %(index number), and
                               %
    (newline)
    -
    b, --batch[=FORMAT]       working in batch modeFORMAT is `out%d.pnm' or
                               
    `out%d.tif' by default depending on --format
        --batch-start=#        page number to start naming files with
        --batch-count=#        how many pages to scan in batch mode
        --batch-increment=#    increase page number in filename by #
        --batch-double         increment page number by two, same as
                               --batch-increment=2
        --batch-prompt         ask for pressing a key before scanning a page
        --accept-md5-only      only accept authorization requests using md5
    -p, --progress             print progress messages
    -n, --dont-scan            only set options, don'
    t actually scan
    -T, --test                 test backend thoroughly
    -h, --help                 display this help message and exit
    -
    v, --verbose              give even more status messages
    -B, --buffer-size=#        change input buffer size (in kB, default 32)
    -V, --version              print version information

    Options specific to device 
    `pixma:04A9170C_5312A2':
      Scan mode:
        --resolution auto||75|150|300|600|1200dpi [75]
            Sets the resolution of the scanned image.
        --mode auto|Color|Gray [Color]
            Selects the scan mode (e.g., lineart, monochrome, or color).
        --source Flatbed [Flatbed]
            Selects the scan source (such as a document-feeder).
        --button-controlled[=(yes|no)] [no]
            When enabled, scan process will not start immediately. To proceed,
            press "SCAN" button (for MP150) or "COLOR" button (for other models).
            To cancel, press "GRAY" button.
      Gamma:
        --custom-gamma[=(auto|yes|no)] [yes]
            Determines whether a builtin or a custom gamma-table should be used.
        --gamma-table auto|0..255,...
            Gamma-correction table.  In color mode this option equally affects the
            red, green, and blue channels simultaneously (i.e., it is an intensity
            gamma table).
      Geometry:
        -l auto|0..216.069mm [0]
            Top-left x position of scan area.
        -t auto|0..297.011mm [0]
            Top-left y position of scan area.
        -x auto|0..216.069mm [216.069]
            Width of scan-area.
        -y auto|0..297.011mm [297.011]
            Height of scan-area.
      Buttons:
        --button-update
            Update button state
        --button-1  [0]
            Button 1
        --button-2  [0]
            Button 2

    Type 
    ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

    List of available devices:
        pixma:04A9170C 
    Quote Originally Posted by pqwoerituytrueiwoq View Post

    Fixes in below version (If you are updating from a version below 1.2-2 you will need to rescan for scanners):

    • I fixed saving settings with the scan resolution of auto for you and fixed a possible security hole


    • the issue you mentioned should also be fixed (i put messages in the debug log) i used a cheap workaround for it there will be issues for scanners that do not report there size correctly and do not run a full scan be default

  2. #112
    Join Date
    Jan 2011
    Beans
    5

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Well, somehow this isn't working for me.

    sudo tar xvf scan*.tar says:

    tar: scan*.tar: Cannot open: No such file or directory

    Midnight Commander says something about ignoring trailing spaces.

    That archive seems to be wrong.

  3. #113
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,847
    Distro
    Xubuntu

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Quote Originally Posted by WeFY-KVQqr View Post
    Well, somehow this isn't working for me.

    sudo tar xvf scan*.tar says:

    tar: scan*.tar: Cannot open: No such file or directory

    Midnight Commander says something about ignoring trailing spaces.

    That archive seems to be wrong.
    be sure you used the cd command to get to the correct folder
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  4. #114
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,847
    Distro
    Xubuntu

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Quote Originally Posted by linuxbazoka View Post
    Here it is:
    PHP Code:
    [{"ID":0,"INUSE":0,"DEVICE":"pixma:04A9170C_5312A2","NAME":"CANON Canon PIXMA MP500 multi-function peripheral","DPI":"auto||75|150|300|600|1200","WIDTH":216.069,"HEIGHT":297.011,"LAMP":false}] 
    only issue i see is a blank scan resolution option
    if full scan fails than this command should also fail
    Code:
    scanimage -d "pixma:04A9170C_5312A2" --resolution 75 --mode color --format=ppm > "/home/$USER/Desktop/scan_file1.ppm"
    you should file a xsane bug report
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  5. #115
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,847
    Distro
    Xubuntu

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Quote Originally Posted by maerlin View Post
    Hi, thank you for your hard work. This PHP Scanner Server is amazing. Anyway i have two weird problems:

    - I have a Brother MFC-235C (multifunction printer), when i try scanning in mode "Color", the scanner just sits there doing nothing, then spits out:

    Code:
    www-data@192.168.1.200:/var/www/scan$ scanimage -d "brother2:bus3;dev1" -l 0 -t 0 -x 215.9 -y 355.6 --resolution 100 --mode color --format=ppm > "/tmp/scan_file0.ppm"
    
    www-data@192.168.1.200:/var/www/scan$ convert "/tmp/scan_file0.ppm" -scale 450x471 "scans/Preview_0_Apr_18_2011~12-50-40.jpg"
    convert: improper image header `/tmp/scan_file0.ppm' @ error/pnm.c/ReadPNMImage/295.
    convert: missing an image filename `scans/Preview_0_Apr_18_2011~12-50-40.jpg' @ error/convert.c/ConvertImageCommand/2970.
    www-data@192.168.1.200:/var/www/scan$ convert "/tmp/scan_file0.ppm" -alpha off "scans/Scan_0_Apr_18_2011~12-50-40.png"
    convert: improper image header `/tmp/scan_file0.ppm' @ error/pnm.c/ReadPNMImage/295.
    convert: missing an image filename `scans/Scan_0_Apr_18_2011~12-50-40.png' @ error/convert.c/ConvertImageCommand/2970.
    www-data@192.168.1.200:/var/www/scan$
    Wich i partially figured out. With Brother scanners the --mode color must be specified as --mode 24bit. In fact, if i try to scan from a command line with:

    Code:
    scanimage -d "brother2:bus3;dev1" -l 0 -t 0 -x 215.9 -y 355.6 --resolution 100 --mode 24bit --format=ppm > "/tmp/scan_file0.ppm"
    Everything goes fine.


    Second problem:

    When i try to scan with a mode that should work (greyscale) I get this output:

    Code:
    www-data@192.168.1.200:/var/www/scan$ scanimage -d "brother2:bus3;dev1" -l 0 -t 0 -x 215.9 -y 355.6 --resolution 100 --mode gray --format=ppm > "/tmp/scan_file0.ppm"
    
    www-data@192.168.1.200:/var/www/scan$ convert "/tmp/scan_file0.ppm" -scale 450x471 "scans/Preview_0_Apr_18_2011~12-55-20.jpg"
    convert: improper image header `/tmp/scan_file0.ppm' @ error/pnm.c/ReadPNMImage/295.
    convert: missing an image filename `scans/Preview_0_Apr_18_2011~12-55-20.jpg' @ error/convert.c/ConvertImageCommand/2970.
    www-data@192.168.1.200:/var/www/scan$ convert "/tmp/scan_file0.ppm" -alpha off "scans/Scan_0_Apr_18_2011~12-55-20.png"
    convert: improper image header `/tmp/scan_file0.ppm' @ error/pnm.c/ReadPNMImage/295.
    convert: missing an image filename `scans/Scan_0_Apr_18_2011~12-55-20.png' @ error/convert.c/ConvertImageCommand/2970.
    www-data@192.168.1.200:/var/www/scan$
    Again, from command line:

    Code:
    > scanimage -d "brother2:bus3;dev1" -l 0 -t 0 -x 215.9 -y 355.6 --resolution 100 --mode gray --format=ppm > "/tmp/scan_file0.ppm"
    scanimage: rounded value of br-x from 215.9 to 215.88
    scanimage: rounded value of br-y from 355.6 to 355.567
    > convert "/tmp/scan_file0.ppm" -scale 450x471 "scans/Preview_0_Apr_18_2011~12-55-20.jpg"
    convert: unable to open image `scans/Preview_0_Apr_18_2011~12-55-20.jpg':  @ error/blob.c/OpenBlob/2498.
    But, if i try to use a different folder:

    Code:
    > convert "/tmp/scan_file0.ppm" -scale 450x471 "/tmp/Preview_0_Apr_18_2011~12-55-20.jpg"
    The image gets converted. I'm lost, lol.
    will work on fixing that
    i was unaware that anything other than Lineart|Gray|Color was used for mode
    scanimage --help output would be useful
    you will need to delete some stuff in your tmp folder by running those command you created permission issues for the scanner server
    Last edited by pqwoerituytrueiwoq; May 10th, 2011 at 04:37 PM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  6. #116
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,847
    Distro
    Xubuntu

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Release Notes for version 1.2-4
    • Fixed issues maerlin had (blank resolution option and Color mode issues)


    • Also in the drop down menus I changed degree to ° it did not look right being spelled out and having the % not spelled out in the other menus
    • Disabled the code I added to turn the light on/off as it did not do what I wanted it to do (guess I will tamper with the warm-up option)
    • You will need to rescan for scanners with this update

    Should I remove the "auto" option, some scanners have it under quality and I am wondering if I should limit it to numbers only?
    Attached Files Attached Files
    Last edited by pqwoerituytrueiwoq; May 10th, 2011 at 04:22 PM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  7. #117
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,847
    Distro
    Xubuntu

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    New Version:

    • Fixed issue with default scan option if the default scanner was in use
    • New PDF option (pdf download opens a dialog) (only tested in firefox)
    • Added a dirty hack to make a hp deskjet 2050 use a full scan
    • If you try to save a color setting and have cookies disabled it will tell you
    • Fixed a bug in download.php tmp is not /tmp
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by pqwoerituytrueiwoq; June 23rd, 2011 at 01:55 AM.
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  8. #118
    Join Date
    Mar 2009
    Beans
    71
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    New Version:

    • Fixed issue with default scan option if the default scanner was in use
    • New PDF option (pdf download opens a dialog) (only tested in firefox)
    • Added a dirty hack to make a hp deskjet 2050 use a full scan
    • If you try to save a color setting and have cookies disabled it will tell you
    This version's download does not work...

  9. #119
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,847
    Distro
    Xubuntu

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Quote Originally Posted by Agg23 View Post
    This version's download does not work...
    on which page?
    and which download form (norm,zip,pdf,etc)
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  10. #120
    Join Date
    Mar 2009
    Beans
    71
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Share a scanner on the network in Lucid Lynx

    Quote Originally Posted by pqwoerituytrueiwoq View Post
    on which page?
    and which download form (norm,zip,pdf,etc)
    The actual download from UbuntuForums. The tar is corrupted.

    Edit: I also cannot get any of the beta 1.2 versions to run at all... Maybe if you could put them on your site so I can wget them?
    Last edited by Agg23; June 23rd, 2011 at 01:30 AM.

Page 12 of 20 FirstFirst ... 21011121314 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •