Raman Gupta
31ef706c47
unpaper: add deskew-scan-range for better deskew
2023-04-19 12:45:06 -04:00
Raman Gupta
966328a9e3
Correct temp file deletion during post-processing
2022-10-11 08:59:00 -04:00
Raman Gupta
a5d56a0e81
README updates
2022-02-23 22:19:28 -05:00
Raman Gupta
f66aae8aaa
Add ability to open scan at completion
2022-02-23 22:16:39 -05:00
Raman Gupta
5116541cf0
Explicit --mode overrides --mode-hw-default
2022-02-23 21:53:55 -05:00
Raman Gupta
ad5934a5a6
Add known blog posts to README
v1.3
2022-01-18 01:25:47 -05:00
Raman Gupta
95163d2819
README: add note about scanbd use
2022-01-18 01:13:20 -05:00
Raman Gupta
7931fe4e86
README: update with current help output
2022-01-18 01:13:10 -05:00
Raman Gupta
144067840c
Help now shows current content of config files
2022-01-18 01:12:25 -05:00
Raman Gupta
5d71ca2ff2
Fix indentation in README help
2022-01-18 01:12:10 -05:00
Raman Gupta
1077ab5e07
README: let github track contributors
2022-01-18 01:05:57 -05:00
Raman Gupta
a29e17962a
Remove debugging echo
2022-01-15 23:13:54 -05:00
Raman Gupta
c892202597
Allow empty device arg
2022-01-15 23:10:04 -05:00
Raman Gupta
e40b766d2a
Merge pull request #38 from surmann/master
...
Adjust brightness and optimise white page recognition
2022-01-07 09:30:43 -05:00
Dirk Surmann
13c40dcfce
update brightness and contrast control
2022-01-01 13:23:44 +01:00
Dirk Surmann
476e730135
update white threshold
2021-12-09 18:03:06 +01:00
Dirk Surmann
bed68a0e7b
add white threshold to skip pages
2021-12-09 16:49:50 +01:00
Dirk Surmann
1d82088527
add brightness switch
2021-12-09 16:49:40 +01:00
Raman Gupta
5bb8cd9ea1
Cleanup and document defaults and pre-scan hook
2021-10-22 02:02:59 -04:00
Raman Gupta
c774b8eeca
Additional scanadf arg order change
...
Another scanadf arg order change to try and prevent weird argument
parsing errors some users are encountering.
2021-10-22 01:58:14 -04:00
Raman Gupta
c621a12cb6
Merge pull request #36 from DavidFromNL/master
...
Four suggestions
2021-10-22 01:45:41 -04:00
David
61f30830df
Help: Echo default scanner from variable instead
...
of hardcoded string.
2021-10-20 12:02:50 +02:00
David
4595af7f64
If scan_pre exists in the local config dir,
...
execute it just before running scanadf. This
allows for last moment changes to the variables.
(In my case, I need to strip --page-height [...]
from PGHEIGHT for scanadf to work.)
2021-10-20 11:59:56 +02:00
David
44a6b0002d
Fix the order of parameters. (Otherwise --resolution is ignored if --source is set)
2021-10-20 11:59:02 +02:00
David
1035d998cc
Use a configuration file (if it exists) to allow the user to set preferred defaults, including TMP_DIR. Also move the initalization of SOURCE above the inclusion of the configuration.
2021-10-20 11:57:12 +02:00
Raman Gupta
2cfa7f6899
Merge branch '33-multi-output-loop-fix' into master
2021-08-06 17:48:02 -04:00
Raman Gupta
9ed52ab2fa
More arithmetic context improvements, corner cases
...
* Handle truncate pages greater than or equal to the number of
scans.
2021-08-06 17:45:40 -04:00
Raman Gupta
d716cdbe8c
Fix the multi-output loop
...
Resolves #33 .
Fixes the arithmetic comparison in the while loop being
incorrect.
Also, handles the situation in which there are more output
files being specified than scans available, in addition
to the already handled reverse situation.
2021-08-06 12:51:29 -04:00
Raman Gupta
f9d329cf27
Merge branch 'issue-30-bc-detection' into master
2021-07-30 12:56:58 -04:00
Raman Gupta
45cf51f9e8
Skip empty page detection if optional bc not available
2021-07-30 12:48:20 -04:00
Raman Gupta
ded351edf4
Merge pull request #31 from p/readme-tips
...
Add helpful usage tips to the readme
2021-07-30 11:47:58 -04:00
Raman Gupta
e03bdfc7b4
Merge pull request #28 from p/quotes
...
Fix quotes in the readme to be around the arguments only
2021-07-30 11:47:13 -04:00
Oleg Pudeyev
3d059dd5f6
Add helpful usage tips to the readme
2021-07-30 10:45:25 -04:00
Oleg Pudeyev
fd81fe0a4c
Fix quotes in the readme to be around the arguments only
2021-07-30 10:14:41 -04:00
Raman Gupta
c25dcdb8a5
Merge pull request #27 from p/no-shift
...
Remove erroneous shift call
2021-07-27 21:43:20 -04:00
Raman Gupta
3b2d3cedd4
Merge pull request #26 from p/quote-mode
...
Quote the --mode argument for printers like Brother DCP-7065DN which use spaces in mode names
2021-07-27 21:42:49 -04:00
Raman Gupta
e001a8affb
Merge pull request #25 from p/value-help
...
Document "scanadf -L" and "scanadf -d <device> --help" invocations
2021-07-27 21:40:40 -04:00
Oleg Pudeyev
257c740095
Remove erroneous shift call
2021-07-27 20:38:44 -04:00
Oleg Pudeyev
cfce23c271
Quote the --mode argument for printers like Brother DCP-7065DN which use spaces in mode names
2021-07-27 20:38:34 -04:00
Oleg Pudeyev
f35971f404
Document "scanadf -L" and "scanadf -d <device> --help" invocations
2021-07-27 20:01:58 -04:00
Raman Gupta
084f0723b8
Merge pull request #24 from p/mode-warning
...
Add the warning when neither -m/--mode nor --mode-hw-default are specified
2021-07-27 11:04:15 -04:00
Oleg Pudeyev
c26d0b1bf7
Add the warning when neither -m/--mode nor --mode-hw-default are specified
...
As discussed in #22
2021-07-27 10:56:17 -04:00
Raman Gupta
9f4eb852a4
Merge pull request #22 from p/no-mode
...
Add --mode-hw-default option to not set --mode
2021-07-27 10:49:52 -04:00
Oleg Pudeyev
9ef32aef3f
add --mode-hw-default option
2021-07-27 10:47:28 -04:00
Oleg Pudeyev
e3cbf1bcbb
Omit --mode argument when its value is the empty string
2021-07-27 10:09:07 -04:00
Raman Gupta
7fb8e60954
Merge pull request #21 from p/quote-device
...
Quote the device argument
2021-07-27 01:11:05 -04:00
Oleg Pudeyev
d7484becbc
Quote the device argument.
...
Without doing so if the device includes a semicolon the following happens:
% ./scan -x 'brother4:bus7;dev1'
Scanning...
scanadf: open of device brother4:bus7 failed: Invalid argument
./scan: line 248: dev1: command not found
Found no scans.
2021-07-26 20:30:17 -04:00
Raman Gupta
d33c8caa71
performance: pnmtops to temp file
...
For some reason when piping the output of pnmtops directly to ps2pdf,
conversion is very slow (especially for color scans).
When writing to an intermediate temporary file, conversion is fast.
Before:
________________________________________________________
Executed in 19.20 secs fish external
usr time 4.01 secs 0.32 millis 4.01 secs
sys time 20.63 secs 5.30 millis 20.62 secs
After:
________________________________________________________
Executed in 368.06 millis fish external
usr time 378.06 millis 0.00 millis 378.06 millis
sys time 100.00 millis 2.79 millis 97.21 millis
An improvement of over 50 times!
This should resolve #19 .
v1.2
2021-03-10 22:07:09 -05:00
Raman Gupta
dad716786e
Merge branch 'issue-16' into master
2020-11-03 10:08:12 -05:00
Raman Gupta
8e6e27a7b3
README: add optional bc dependency
2020-11-03 10:08:03 -05:00