Skip to content

Page size problem #4

Description

@aditsu

Nice little web application, but the page size seems to be hardcoded in swis.py, to 211*297 mm. That doesn't really work with my scanner, and I get the error:
scanimage: setting of option --br-y failed (Invalid argument)

scanimage -A outputs (among other things):

    -l 0..215.9mm [0]
        Top-left x position of scan area.
    -t 0..296.926mm [0]
        Top-left y position of scan area.
    -x 0..215.9mm [215.9]
        Width of scan-area.
    -y 0..296.926mm [296.926]
        Height of scan-area.

Changing the numbers in swis.py fixes the problem, but that's not ideal. Here are 3 possible solutions:

  1. make the page size configurable via the web interface and/or a config file
  2. autodetect the available scan area from scanimage
  3. do a full size scan by default by not passing any -x and -y values

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions