Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the full scanner image size #775

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

cbisnett
Copy link
Contributor

When querying for the scanner capabilities capture the full height and width for both the platen and ADF. Then pass these as the height and width for the job settings and update the job XML.

This allows for scans to scan up to the full size available for the input source rather than the hard-coded size that was previously used. This PR also removes the 33 pixel cutoff from the X axis.

I haven't really used Typescript before, so don't hesitate to point out better approaches if something isn't idiomatic.

When querying for the scanner capabilities capture the full height and
width for both the platen and ADF. Then pass these as the height and
width for the job settings and update the job XML.

This allows for scans to scan up to the full size available for the
input source rather than the hard-coded size that was previously used.
This PR also removes the 33 pixel cutoff from the X axis.
@manuc66
Copy link
Owner

manuc66 commented Oct 30, 2023

@cbisnett Thanks for submitting this PR

The 33 value was one intercepted while reverse engineering, do you have any idea why this value was there?

I would rather not change the aspect ratio of the scanned document without allowing to configure for a different behavior. Would you mind introducing some configurable parameters ?

Regarding Adf the actual pixel height is taken from the jpeg file structure

@manuc66 manuc66 merged commit e381fd6 into manuc66:master Nov 25, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants