Bug 300029

Summary: image is distort
Product: [Frameworks and Libraries] libksane Reporter: Mikhail <midnighterdev>
Component: generalAssignee: Kåre Särs <kare.sars>
Status: RESOLVED UPSTREAM    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://docs.google.com/open?id=0B5ZsNJ3PibhpV3lqS0pwckJMN3M
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: distort image
SANE_DEBUG_GENESYS=16

Description Mikhail 2012-05-14 20:46:06 UTC
I try to scan with my scaner HP Scanjet G2410 and have distort image

Reproducible: Always

Steps to Reproduce:
1. run "scangui"
2. press scan button
3.
Actual Results:  
distort image

Expected Results:  
good scan image

I try to use "scanimage" with options:
[midnighter@localhost ~]$ sudo scanimage -v -d genesys:libusb:002:010 --mode color --format=tiff > image.tiff
[sudo] password for midnighter: 
[genesys] WARNING: Your scanner is not fully supported or at least 
[genesys]          had only limited testing. Please be careful and 
[genesys]          report any failure/success to 
[genesys]          sane-devel@lists.alioth.debian.org. Please provide as many
[genesys]          details as possible, e.g. the exact name of your
[genesys]          scanner and what does (not) work.
scanimage: scanning image of size 2549x3510 pixels at 24 bits/pixel
scanimage: acquiring RGB frame
scanimage: min/max graylevel value = 0/255
scanimage: read 26840970 bytes in total

it works fine and put me good quality image.
Comment 1 Kåre Särs 2012-05-15 06:00:06 UTC
Hi,

1) Can you attach a small sample of a distorted image?
2) Are all image types distorted (jpg, png,...)?
3) Do you get the same problem with Skanlite?


/Kåre
Comment 2 Mikhail 2012-05-15 09:03:54 UTC
Created attachment 71096 [details]
distort image
Comment 3 Mikhail 2012-05-15 09:06:54 UTC
I have distorted all scaned images, Skanlite have same result.
Comment 4 Kåre Särs 2012-05-15 09:58:51 UTC
OK

Lets try next things.

- How about XSane, do you get the same problem there?
- Do you get distortion also with color mode? In the screen-shot you use gray-scale mode.

- Check debug output:
   -Start kdebugdialog and enable ksane
   -Run scangui or Skanlite from the commandline and copy-paste the output here.
 
If the above does not give any thin interesting you could also add sane debugging by running scangui or Skanlite like this:

SANE_DEBUG_GENESYS=16 Skanlite
Comment 5 Mikhail 2012-05-15 10:25:04 UTC
Created attachment 71097 [details]
SANE_DEBUG_GENESYS=16
Comment 6 Mikhail 2012-05-15 10:25:47 UTC
I try scan with XSane and have same problem. I have distortion with color and gmay mode
Comment 7 Kåre Särs 2012-05-16 21:13:30 UTC
Unfortunately I can not find anything in the logs that would tell me what is wrong. As also XSane has the same problem it is more likely that the bug is in the backend. Strange tho that you get a good image with scanimage...

You could try different resolutions and modes to see if you would get any usable previews. The preview resolution can be set in Skanlite settings.

I guess the genesys backend author/maintainer can help you better. I'm going to close this as upstreams.

Thanks for taking the time to report. I hope you continue and report to sane-devel@lists.alioth.debian.org.