Skip to content

Commit

Permalink
reduce unpaper action.
Browse files Browse the repository at this point in the history
  • Loading branch information
Flameeyes committed Aug 16, 2011
1 parent 18acbe0 commit 335c0e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/scan2pdf
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ scanimage_params = [
]
unpaper_params = [
"--dpi", options[:resolution],
"--no-mask-center", "--no-mask-scan"
"--no-mask-center", "--no-border-align",
"--no-mask-scan"
]
pnmtotiff_params = [
"-xresolution", options[:resolution],
Expand Down Expand Up @@ -231,12 +232,16 @@ when /gray/i
else
puterror 5, "device does not support selected mode"
end

unpaper_params << "--no-wipe"
when /color/i
if available_modes.include?("color")
scanimage_params << "--mode=color"
else
puterror 5, "device does not support selected mode"
end

unpaper_params << "--no-wipe"
end

if scanimage_available_options["-x"][0] == "auto"
Expand Down

0 comments on commit 335c0e3

Please sign in to comment.