Skip to content

Commit

Permalink
Fix scan resolution bug
Browse files Browse the repository at this point in the history
The resolution setting need to be set after the source setting
  • Loading branch information
GM-Script-Writer-62850 committed Feb 8, 2015
1 parent fd5c945 commit e485bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -1225,7 +1225,7 @@ function quit(){
$CANNERS[$SCANNER]->{"DEVICE"}=$DEVICE2;
$DEVICE=shell($DEVICE2);
}
$cmd="scanimage -d $DEVICE -l $X -t $Y -x $SIZE_X -y $SIZE_Y $DUPLEX--resolution $QUALITY $OURCE--mode ".shell($MODE)." $LAMP--format=pnm";
$cmd="scanimage -d $DEVICE $OURCE-l $X -t $Y -x $SIZE_X -y $SIZE_Y $DUPLEX--resolution $QUALITY --mode ".shell($MODE)." $LAMP--format=pnm";
if($SOURCE=='ADF'||$SOURCE=='Automatic Document Feeder') # Multi-page scan
exe("cd $CANDIR;$cmd --batch",true);// Be careful with this, doing this without a ADF feeder will result in scanning the flatbed over and over, include --batch-count=3 for testing
else # Single page scan
Expand Down

0 comments on commit e485bb4

Please sign in to comment.