加入收藏 | 设为首页 | 会员中心 | 我要投稿 | RSS
您当前的位置:首页 > 操作系统 > Linux

linux 惠普扫描命令 hp-scan 用法详解

时间:2021-12-21 10:51:03  来源:  作者:phpsrc.com
安装 hplip 驱动后,惠普打印机相关命令:




扫描颜色模式:gray(黑白)、color(彩色)、lineart(线艺术)

命令格式:
hp-scan -m color //以彩色模式扫描
hp-scan -m gray //以彩色模式扫描
hp-scan -m lineart //以彩色模式扫描

三种模式样式细微区别:



默认 hp-scan 黑白模式扫描出来的单个图片好几M,体积非常大,而彩色、线艺术模式,体积却小的非常多,画质也不受影响,所以建议将 hp-scan 的默认设置为彩色模式。

hp-scan 没有可更改默认扫描颜色模式的选项,可通过 alias 来实现:

alias hp-scan='hp-scan -m color'

将此写入到:~/.bashrc 即可。



phpsrc.com@phpsrc:~/www.phpsrc.com$ hp-scan --help

HP Linux Imaging and Printing System (ver. 3.21.2)
Scan Utility ver. 2.2

Copyright (c) 2001-18 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.


SANE-based scan utility for HPLIP supported all-in-one/mfp devices.

Usage: hp-scan [DEVICE_URI|PRINTER_NAME] [MODE] [OPTIONS]

[PRINTER|DEVICE-URI]
  To specify a        -d<device-uri> or --device=<device-uri>               
  device-URI:                                                               
  To specify a CUPS   -p<printer> or --printer=<printer>                    
  printer:                                                                  

[MODE]
  Run in interactive  -i or --interactive                                   
  mode:                                                                     

[OPTIONS]
  Set the logging     -l<level> or --logging=<level>                        
  level:                                                                    
                      <level>: none, info*, error, warn, debug (*default)   
  Run in debug mode:  -g (same as option: -ldebug)                          
  This help           -h or --help                                          
  information:                                                              


[OPTIONS] (General)
  Scan destinations:  -s<dest_list> or --dest=<dest_list>                   
                      where <dest_list> is a comma separated list containing
                      one or more of: 'file'                                
                      , 'viewer', 'editor', 'pdf', or 'print'. Use only     
                      commas between values, no spaces.                     
  Scan mode:          -m<mode> or --mode=<mode>. Where <mode> is 'gray'*,   
                      'color' or 'lineart'.                                 
  Scanning            -r<resolution_in_dpi> or --res=<resolution_in_dpi> or
  resolution:         --resolution=<resolution_in_dpi>                      
                      where 300 is default.                                 
  Image resize:       --resize=<scale_in_%> (min=1%, max=400%, default=100%)
  Color Dropout Red   -color_dropout_red_value=<color_dropout_red_value> or
  :                   --color_dropout_red_value=<color_dropout_red_value>   
  Color Dropout       -color_dropout_green_value=<color_dropout_green_value>
  Green :             or                                                    
                      --color_dropout_green_value=<color_dropout_green_value>
  Color Dropout Blue  -color_dropout_blue_value=<color_dropout_blue_value>  
  :                   or                                                    
                      --color_dropout_blue_value=<color_dropout_blue_value>
  Color Dropout       -color_range=<color_range> or                         
  Range :             --color_range=<color_range>                           
  Image contrast:     -c=<contrast> or --contrast=<contrast>                
                      The contrast range varies from device to device.      
  Image brightness:   -b=<brightness> or --brightness=<brightness>          
                      The brightness range varies from device to device.    
  ADF mode:           --adf (Note, only PDF output is supported when using  
                      the ADF)                                              
                      --duplex or --dup for duplex scanning using ADF.      

[OPTIONS] (Scan area)
  Specify the units   -t<units> or --units=<units>                          
  for area/box                                                              
  measurements:                                                             
                      where <units> is 'mm'*, 'cm', 'in', 'px', or 'pt'     
                      ('mm' is default).                                    
  Scan area:          -a<tlx>,<tly>,<brx>,<bry> or                          
                      --area=<tlx>,<tly>,<brx>,<bry>                        
                      Coordinates are relative to the upper left corner of  
                      the scan area.                                        
                      Units for tlx, tly, brx, and bry are specified by     
                      -t/--units (default is 'mm').                         
                      Use only commas between values, no spaces.            
  Scan box:           --box=<tlx>,<tly>,<width>,<height>                    
                      tlx and tly coordinates are relative to the upper left
                      corner of the scan area.                              
                      Units for tlx, tly, width, and height are specified by
                      -t/--units (default is 'mm').                         
                      Use only commas between values, no spaces.            
  Top left x of the   --tlx=<tlx>                                           
  scan area:                                                                
                      Coordinates are relative to the upper left corner of  
                      the scan area.                                        
                      Units are specified by -t/--units (default is 'mm').  
  Top left y of the   --tly=<tly>                                           
  scan area:                                                                
                      Coordinates are relative to the upper left corner of  
                      the scan area.                                        
                      Units are specified by -t/--units (default is 'mm').  
  Bottom right x of   --brx=<brx>                                           
  the scan area:                                                            
                      Coordinates are relative to the upper left corner of  
                      the scan area.                                        
                      Units are specified by -t/--units (default is 'mm').  
  Bottom right y of   --bry=<bry>                                           
  the scan area:                                                            
                      Coordinates are relative to the upper left corner of  
                      the scan area.                                        
                      Units are specified by -t/--units (default is 'mm').  
  Specify the scan    --size=<paper size name>                              
  area based on a                                                           
  paper size:                                                               
                      where <paper size name> is one of: 3x5, 4x6, 5x7,     
                      a2_env, a3, a4, a5, a6, b4, b5, c6_env, dl_env, exec,
                      flsa, higaki, japan_env_3, japan_env_4, legal, letter,
                      no_10_env, oufufu-hagaki, photo, super_b              

[OPTIONS] ('file' dest)
  Filename for        -o<file> or -f<file> or --file=<file> or              
  'file'              --output=<file>                                       
  destination:                                                              

[OPTIONS] ('pdf' dest)
  PDF viewer          --pdf=<pdf_viewer>                                    
  application:                                                              

[OPTIONS] ('viewer' dest)
  Image viewer        -v<viewer> or --viewer=<viewer>                       
  application:                                                              

[OPTIONS] ('editor' dest)
  Image editor        -e<editor> or --editor=<editor>                       
  application:                                                              

[OPTIONS] ('email' dest)
  From: address for   --email-from=<email_from_address> (required for       
  'email' dest:       'email' dest.)                                        
  To: address for     --email-to=<email__to_address> (required for 'email'  
  'email' dest:       dest.)                                                
  Email subject for   --email-subject="<subject>" or --subject="<subject>"  
  'email' dest:                                                             
                      Use double quotes (") around the subject if it        
                      contains space characters.                            
  Note or message     --email-msg="<msg>" or --email-note="<note>"          
  for the 'email'                                                           
  dest:                                                                     
                      Use double quotes (") around the note/message if it   
                      contains space characters.                            

[OPTIONS] ('printer' dest)
  Printer             --dp=<printer_name> or --dest-printer=<printer_name>  
  queue/printer                                                             
  dest:                                                                     
  Printer device-URI  --dd=<device-uri> or --dest-device=<device-uri>       
  dest:                                                                     

[OPTIONS] (advanced)
  Set the scanner     -x<mode> or --compression=<mode>, <mode>='raw', 'none'
  compression mode:   or 'jpeg' ('jpeg' is default) ('raw' and 'none' are   
                      equivalent)                                           

See Also:

 
来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
相关文章
    无相关信息
栏目更新
栏目热门