Am Freitag, 6. Juli 2007 19:54:35 schrieb dwelch91: > Could you try using hp-scan? I tested 600 dpi scanning with it extensively, > and it seemed to work fine. The command would be: > > hp-scan -n -r600 -mlineart -xraw -otest.png
hp-scan wants to scan everything with 100 dpi, regardless which resolution I give it: $ hp-scan -n -r600 -mlineart -xraw -otest.png warning: Output file '/tmp/test.png' exists. File will be overwritten. HP Linux Imaging and Printing System (ver. 2.7.6) Scan Utility ver. 0.2 Copyright (c) 2001-7 Hewlett-Packard 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. Using device hpaio:/net/HP_LaserJet_3055?ip=192.168.22.100 Opening connection to device... warning: Invalid value for resolution (resolution > max value of 100mm). Using 100mm. Resolution: 100dpi Mode: lineart Compression: None Scan area (mm): Top left (x,y): (0.000000mm, 0.000000mm) Bottom right (x,y): (228.599991mm, 381.000000mm) Width: 228.599991mm Height: 381.000000mm Destination(s): file Output file: /tmp/test.png Warming up... Scanning... Read 147.2 KB from scanner. Closing device. Outputting to destination 'file': Saving to file /tmp/test.png ===================================== I looked into the source of sane.py and found out: in class Option " constraint -- constraint on values. Possible values: None : No constraint (min,max,step) Integer values, from min to max, stepping by list of integers or strings: only the listed values are allowed " but instead of a tuple constrained is a list of possible resolutions given as [75, 100, 150, 200, 300, 600, 1200] so this is misinterpretet as min=75, max=100, step=150 ? I commented out two lines, and got : $ hp-scan -n -r600 -mlineart -xraw -otest.png warning: Output file '/tmp/test.png' exists. File will be overwritten. HP Linux Imaging and Printing System (ver. 2.7.6) Scan Utility ver. 0.2 Copyright (c) 2001-7 Hewlett-Packard 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. HP Linux Imaging and Printing System (ver. 2.7.6) Services and Status Daemon ver. 9.2 Copyright (c) 2001-7 Hewlett-Packard 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. Using device hpaio:/net/HP_LaserJet_3055?ip=192.168.22.100 Opening connection to device... warning: Invalid value for resolution (resolution > max value of 600mm). Using 600mm. Resolution: 600dpi Mode: lineart Compression: None Scan area (mm): Top left (x,y): (0.000000mm, 0.000000mm) Bottom right (x,y): (228.599991mm, 381.000000mm) Width: 228.599991mm Height: 381.000000mm Destination(s): file Output file: /tmp/test.png Warming up... Scanning... Read 2.8 MB from scanner. Closing device. Traceback (most recent call last): File "/usr/bin/hp-scan", line 1000, in ? im = Image.frombuffer('RGBA', (pixels_per_line, lines), buffer.read(), 'raw', 'RGBA', 0, 1).convert('L') File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1799, in frombuffer im = im._new( ValueError: buffer is not large enough =========================================== It seems to me that hp-scan is rather experimental at the moment, but that wouldn't matter for me, I wouldn't need it anyway if the sane lib scanned with real 600 dpi... ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ HPLIP-Help mailing list HPLIP-Help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hplip-help