mback2k / wiasane

Scanner Access Now Easy - WIA Driver
https://github.com/mback2k/wiasane/wiki/Downloads
Other
125 stars 18 forks source link

Error on high DPI settings #10

Closed fruel closed 9 years ago

fruel commented 10 years ago

First of all: Amazing project which you started here!

Installation worked flawlessly. Scanner was immediately recognized by all WIA applications.

Scanning with a resolution < 300 DPI works without problems. If I select a resolution >= 300 DPI the scanner starts and finishes the scanning process but at 99%/100% the application aborts with an error message.

Errors:

Environment:

Using "scanimage" directly on the server or "SaneTWAIN" on Windows I can scan up to 600 DPI successfully. (but TWAIN is old and only a few applications support it)

mback2k commented 10 years ago

Thanks for your kind words and the bug report. Please install the v0.0.0.2 debug build and catch the debug logging using DebugView. Please run DebugView with administrative privileges and kernel logging enabled in order to catch the WIA micro driver debug logging. Then post the debug output of such scan failure here, so that I can investigate on the issue. Thanks.

fruel commented 10 years ago

So here it is - sorry that it took so long.

Scanning with MS Paint @ 200 DPI (working): https://gist.github.com/fruel/9451156

Scanning with MS Paint @ 300 DPI (not working): https://gist.github.com/fruel/9451170

Scanning with Not Another PDF Scanner 2 @ 300 DPI (working when using predefined settings and not the native WIA UI): https://gist.github.com/fruel/9451188

mback2k commented 10 years ago

Thanks, you may want to try the v0.0.0.4-5-g330f5a1 release build. It won't output any debug data, but it contains changes that may also fix your problem.

romanlum commented 10 years ago

i installed v0.0.0.4-5-g330f5a1 release build and it works now on windows 8.1 with 300 dpi ;)

mback2k commented 10 years ago

@fruel Did you also try a new release and see if it fixes your issue?

fruel commented 10 years ago

Sorry for not responding so long. Right now I have some problems with my SANE server (no devices found, maybe a permission issue, not wiasane specific) and not much time to fix it (finals weeks in college).

Will try to test it as soon as possible.

fruel commented 9 years ago

Again, sorry for not responding so long :) I'm not using my scanner that much.

Today I completely re-installed my server. It is running Ubuntu 14.04 LTS now with the most up to date Sane/HPLIP. On my PC I am running wiasane v0.1.1.9. Scanning works fine up to 600dpi now. 1200dpi is still not available but that's not an issue for me.

mback2k commented 9 years ago

Thanks for the update. Please check if 1200dpi is actually available to SANE by running winsane-dbg.exe against your server, like this: winsane-dbg.exe <hostname or ip> <port>

fruel commented 9 years ago

Looks like it is not supported by SANE or HPLIP. Running "scanimage --resolution 1200 > /dev/null" on the server returns "invalid argrument".

C:\Program Files\SANE WIA Driver>winsane-dbg.exe poseidon
------------------------------------------------------------
Name:   hpaio:/usb/PSC_2100_Series?serial=MY2CPF81V10F
Vendor: Hewlett-Packard
Model:  PSC_2100_Series
Type:   all-in-one
------------------------------------------------------------
Name:
Title:          Number of options
Description:    Read-only option that specifies how many options a specific devices supports.
Value:          18
Unit:           None
------------------------------------------------------------
Name:           (null)
Title:          Scan mode
Description:    (null)
Value:          <FAIL>
Unit:           None
------------------------------------------------------------
Name:           mode
Title:          Scan mode
Description:    Selects the scan mode (e.g., lineart, monochrome, or color).
Value:          Color
Unit:           None
String:         Lineart
String:         Gray
String:         Color
Mode:           Color
------------------------------------------------------------
Name:           resolution
Title:          Scan resolution
Description:    Sets the resolution of the scanned image.
Value:          75
Unit:           DPI
Word:           75
Word:           100
Word:           150
Word:           200
Word:           300
Word:           600
Resolution:     300
------------------------------------------------------------
Name:           (null)
Title:          Advanced
Description:    (null)
Value:          <FAIL>
Unit:           None
------------------------------------------------------------
Name:           contrast
Title:          Contrast
Description:    Controls the contrast of the acquired image.
Value:          0
Unit:           None
Min:            -127
Max:            127
Quant:          0
------------------------------------------------------------
Name:           brightness
Title:          Brightness
Description:    Controls the brightness of the acquired image.
Value:          0
Unit:           None
Min:            -127
Max:            127
Quant:          0
------------------------------------------------------------
Name:           compression
Title:          Compression
Description:    Selects the scanner compression method for faster scans, possibly at the expense of image quality.
Value:          JPEG
Unit:           None
String:         None
String:         JPEG
Compression:    None
------------------------------------------------------------
Name:           jpeg-quality
Title:          JPEG compression factor
Description:    Sets the scanner JPEG compression factor. Larger numbers mean better compression, and smaller numbers me
an better image quality.
Value:          10
Unit:           None
Min:            0
Max:            100
Quant:          0
------------------------------------------------------------
Name:           batch-scan
Title:          Batch scan
Description:    Enables continuous scanning with automatic document feeder (ADF).
Value:          0
Unit:           None
------------------------------------------------------------
Name:           source
Title:          Scan source
Description:    Selects the scan source (such as a document-feeder).
Value:          Flatbed
Unit:           None
String:         Flatbed
------------------------------------------------------------
Name:           duplex
Title:          Duplex
Description:    Enables scanning on both sides of the page.
Value:          <FAIL>
Unit:           None
------------------------------------------------------------
Name:           (null)
Title:          Geometry
Description:    (null)
Value:          <FAIL>
Unit:           None
------------------------------------------------------------
Name:           length-measurement
Title:          Length measurement
Description:    Selects how the scanned image length is measured and reported, which is impossible to know in advance fo
r scrollfed scans.
Value:          Padded
Unit:           None
String:         Unknown
String:         Approximate
String:         Padded
------------------------------------------------------------
Name:           tl-x
Title:          Top-left x
Description:    Top-left x position of scan area.
Value:          0.000000        (0)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            215.899994      (14149222)
Quant:          0.000000        (0)
------------------------------------------------------------
Name:           tl-y
Title:          Top-left y
Description:    Top-left y position of scan area.
Value:          0.000000        (0)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            296.925995      (19459342)
Quant:          0.000000        (0)
------------------------------------------------------------
Name:           br-x
Title:          Bottom-right x
Description:    Bottom-right x position of scan area.
Value:          215.899994      (14149222)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            215.899994      (14149222)
Quant:          0.000000        (0)
------------------------------------------------------------
Name:           br-y
Title:          Bottom-right y
Description:    Bottom-right y position of scan area.
Value:          296.925995      (19459342)
Unit:           Millimeter
Min:            0.000000        (0)
Max:            296.925995      (19459342)
Quant:          0.000000        (0)
------------------------------------------------------------
Format:         1
Last Frame:     1
Bytes per Line: 7647
Pixel per Line: 2549
Lines:          3506
Depth:          8
Scan? (y/n)
mback2k commented 9 years ago

Okay, thanks. :-)