don't respect document type changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Simple Scan |
Fix Released
|
Medium
|
Unassigned |
Bug Description
* run simple-scan 0.7
* select the document type "photo"
* click on the scan button
* select the document type "text"
* click on the scan button
the second scan is done in photo quality
Robert Ancell (robert-ancell) wrote : | #1 |
Changed in simple-scan: | |
status: | New → Incomplete |
Robert Ancell (robert-ancell) wrote : | #2 |
My guess is your scanner doesn't support "LineArt" mode - can you run simple-scan -d and paste the results in?
Sebastien Bacher (seb128) wrote : | #3 |
it's possible but I don't have access to the device now so it might have to wait a bit to get the information
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #4 |
The situation is even worse.
Whatever settings (color, line-art, DPI size ...) you have in simple-scan, there will be scanners out there which don't support at least one of those settings.
Possible solutions:
1. Decide the scanner/sane is crap/inconsistent (yes sane is inconsistent) and ignore the bug.
2. Make every scan setting user adjustable. But this would mean that every user has first to query 'scanimage -h' to fiddle out the required settings.
3. Have a database with scanners and the corresponding settings. But this would mean that users have to provide the required settings (unless you have a scanner park with all scanners spread over the world).
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #5 |
I've thought further on how to solve this in a 'simple' manner...
Best would be to deliver 'simple-scan' with some useful settings (means which works with most scanners), but make the settings adjustable via 'gconf', so users have the possibility to change these according to their (scanners) needs.
Naturally those who are in the unlucky mood have to use 'scanimage -h' first to get the required settings, but maybe they are keen enough to send them back, so 'simple-scan' could have them in it's documentation.
Robert Ancell (robert-ancell) wrote : | #6 |
I don't see these as big issues:
- If your scanner doesn't support the requested DPI then the largest possible is used
- If your scanner doesn't support color then grayscale is used (which will not suprise the user as they surely know their scanner doesn't do color)
- If your scanner doesn't do LineArt, then we just need to post-process the image so it looks similar to LineArt.
My assumption is the vast majority of consumer scanners out there will support all 3, if not, you need to use xsane or similar.
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #7 |
>My assumption is the vast majority of consumer scanners out there will support all 3
Really ?
My scanner is an Epson V100 (and there are lots of epson scanners used under linux, due to it's good support) and the sane epson-backend doesn't support line-art (als I've written sane is inconsistent, binary would be the right parameter with epson-scanners to get black&white)
'Just for fun' my output of scanimage -h
Options specific to device `epkowa:
Scan Mode:
--mode Binary|Gray|Color [Color]
Selects the scan mode (e.g., lineart, monochrome, or color).
--depth 8|16 [8]
Number of bits per sample, typical values are 1 for "line-art" and 8
for multibit scans.
--halftoning None|Halftone A (Hard Tone)|Halftone B (Soft Tone)|Halftone C (Net Screen) [inactive]
Selects the halftone.
--dropout None|Red|Green|Blue [inactive]
Selects the dropout.
--brightness 0..0 [inactive]
Selects the brightness.
--sharpness -2..2 [inactive]
--gamma-
Selects the gamma correction value from a list of pre-defined devices
or the user defined table, which can be downloaded to the scanner
--color-
Sets the color correction table for the selected output device.
--resolution 200|400|
Sets the resolution of the scanned image.
--x-resolution 133|200|
Sets the horizontal resolution of the scanned image.
--y-resolution 133|200|
Sets the vertical resolution of the scanned image.
--threshold 0..255 [inactive]
Select minimum-brightness to get a white point
Advanced:
--mirror[
Mirror the image.
--speed[
Determines the speed at which the scan proceeds.
--auto-
--short-
Display short resolution list
--zoom 50..200 [inactive]
Defines the zoom factor the scanner will use
--red-
--green-
--blue-
--wait-
After sending the scan command, wait until the button on the scanner
is pressed to actually start the scan process.
--monitor-
Indicates whether a button on the scanner has been pressed (read-only
option).
Color correction coefficients:
--cct-1 -2..2 [1.0878]
Controls red level
--cct-2 -2..2 [-0.0666962]
Adds to red based on green level
--cct-3 -2..2 [-0.0210876]
Adds to red based on blue level
--cct-4 -2..2 [-0.0891876]
Adds to green based on red level
--cct-5 -2..2 [1.15129]
Controls green level
--cct-6 -2..2 [-0.0621948]
Ad...
Robert Ancell (robert-ancell) wrote : | #8 |
Well, that sounds like a bug in the epson driver - there are well known names for the scan modes in saneopts.h that backends should use. I've updated simple-scan to try Lineart then Binary then Gray for text mode. Have you tried reporting this issue to SANE?
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #9 |
>Well, that sounds like a bug in the epson driver
When you have a closer look at different backends you'll find that such 'bugs' are common in sane. Even spelling is not consistent in the backends. You'll find e.g. 'color' and 'colour' and so on...
The only alternative would be to rewrite sane from scratch
>Have you tried reporting this issue to SANE?
Years ago I was in heavy discussions with some sane developers, afterwards I've decided to let Tame/2 (the sane frontend for OS/2 I've already told you, maybe you can now imagine why I named it Tame ...) use a own database with all the settings per scanner.
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #10 |
>I've updated simple-scan to try Lineart then Binary then Gray for text mode.
This won't be sufficient. Here an output from a brother MFC 8460N device
Options specific to device `brother2:
Mode:
--mode Black & White|Gray[Error Diffusion]|True Gray|24bit Color|24bit Color[Fast] [24bit Color]
Select the scan mode
--resolution 100|150|
Sets the resolution of the scanned image.
--source FlatBed|Automatic Document Feeder [Automatic Document Feeder]
Selects the scan source (such as a document-feeder).
--brightness -50..50% (in steps of 1) [inactive]
Controls the brightness of the acquired image.
--contrast -50..50% (in steps of 1) [inactive]
Controls the contrast of the acquired image.
Geometry:
-l 0..215.9mm (in steps of 0.0999908) [0]
Top-left x position of scan area.
-t 0..355.6mm (in steps of 0.0999908) [0]
Top-left y position of scan area.
-x 0..215.9mm (in steps of 0.0999908) [215.88]
Width of scan-area.
-y 0..355.6mm (in steps of 0.0999908) [355.567]
Height of scan-area.
Robert Ancell (robert-ancell) wrote : | #11 |
Fine, I've added a whole list of the bad mode names based on looking through the sane-backends source. And I've patched SANE to do it properly:
https:/
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #12 |
Great ! Both scanners I have in reach (Epson V100 - local attached, Brother MFC 8460N - network attached) are working now in both modes.
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #13 |
Here we go again ;-)
Epson 1250 (using plustek backend) works only in color mode, scan-size is TPU (not Flatbed), Text fails completly.
works in Xsane (using gray and color, lineart scans in TPU size)
BTW. this scanner is crap (needs a long time to start, I've thought several times it is defunct) and it took me some time to get it working (by editing plustek.conf)
Output of 'scanimage -h'
Options specific to device `plustek:
Scan Mode:
--mode Lineart|Gray|Color [Color]
Selects the scan mode (e.g., lineart, monochrome, or color).
--depth 8|14bit [8]
Number of bits per sample, typical values are 1 for "line-art" and 8
for multibit scans.
--source Normal|
Selects the scan source (such as a document-feeder).
--resolution 50..2400dpi [50]
Sets the resolution of the scanned image.
--preview[
Request a preview-quality scan.
Geometry:
-l 0..215mm [0]
Top-left x position of scan area.
-t 0..297mm [0]
Top-left y position of scan area.
-x 0..215mm [103]
Width of scan-area.
-y 0..297mm [76.21]
Height of scan-area.
Enhancement:
--brightness -100..100% (in steps of 1) [0]
Controls the brightness of the acquired image.
--contrast -100..100% (in steps of 1) [0]
Controls the contrast of the acquired image.
--custom-
Determines whether a builtin or a custom gamma-table should be used.
--gamma-table 0..255,... [inactive]
red, green, and blue channels simultaneously (i.e., it is an intensity
gamma table).
--red-
--green-
--blue-
Device-Settings:
--lamp-
Manually switching the lamp(s).
--lampoff-time 0..999 (in steps of 1) [0]
--lamp-
Turn off lamp when program exits
--warmup-time -1..999 (in steps of 1) [30]
Warmup-time in seconds.
--lamp-
Always switches lamp off when doing dark calibration.
--calibrati
Enables or disables calibration data cache.
--speedup-
Enables or disables speeding up sensor movement.
--calibrate [inactive]
Performs calibration
Analog frontend:
--red-gain -1..63 (in steps of 1) [-1]
Red gain value of the AFE
--green-gain -1..63 (in steps of 1) [-1]
Green gain value of the AFE
--blue-gain -1..63 (in steps of 1) [-1]
Blue gain value of the AFE
--red-offset -1..63 (in steps of 1) [-1]
Red offset value of the AFE
--green-offset -1..63 (in steps of 1) [-1]
Green offset value of the AFE
--blue-offset -1..63 (in steps of 1) [-1]
Bl...
staedtler-przyborski (staedtler-przyborski-deactivatedaccount) wrote : | #14 |
Again the epson 1250 with plustek backend...
This scanner (-driver) drive me nuts.
Today lineart (Text) worked in Simple-Scan, after tweaking plustek.conf once more.
So only wrong size in all modes (TPU size instead of Full Flatbed) remains.
There is also a non-free epsonkowa plugin (using the epsonkowa backend) but as it conflicts with the one used by my epson V100 I gave up playing around.
Happy New Year
Robert Ancell (robert-ancell) wrote : | #15 |
I'm going to close this as I think I've got all the correct mode names implemented (upstream just took my patch to make them all the same on all backends so this shouldn't be a problem in the future). If this is still occurring please open new bugs with the specific scanners that are causing the problems. Thanks!
Changed in simple-scan: | |
importance: | Undecided → Medium |
status: | Incomplete → Fix Released |
Works for me - what happens when you scan using text from startup?