Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-20 Thread m. allan noah
Ok, that's better. The yellow cast along the edge looks like a calibration problem. It exists in all resolutions under 300 because this scanner only has 300 and 600 dpi modes in the X direction. The sane backend creates all the lower resolutions. The sane backend also does the coarse and fine

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-19 Thread m. allan noah
I have attached another patch. We will have to remove the first one, and add this new one to the source code directory you made before: 1. Change into the source directory (update name as required) cd sane-backends-gitXX/ 2. Remove the old patch (update location as required, perhaps also

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-19 Thread m. allan noah
Did you install libusb-devel before you compiled sane-backends? allan On Wed, Mar 16, 2016 at 9:29 AM, el-ti wrote: > All right, I’m pretty sure I got everything right, but surprisingly the > scanner is not detected anymore... ("scanimage -L" only gives back the > internal

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-19 Thread m. allan noah
Yes, the patch changed something, you can look at it and see what it did, it is fairly small. The problem is that I don't think it should have changed 240, so if you are seeing a behavior change there, we need to do further investigation. So, I will be more explicit: Please make another set of

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-19 Thread el-ti
Hmmm, but the patch changed something, didn’t it? Without the patch 300dpi was wrong colors, now 300dpi is good. Unfortunately now 240dpi is wrong. If it’s too much work to get it running, It’s maybe okay, I normally do color scans with 300dpi. But I would probably consider getting rid of this

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-19 Thread el-ti
Hello Allan, I’m afraid, the cdr-55b didn’t change anything – although I don’t understand this. I also double checked: first I followed your instructions, but thenI unpacked the backends.tar.gz again to apply cdr-55b on the fresh files, because I wanted to make sure, I did not make a mistake.

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-19 Thread m. allan noah
My patch did not change anything about 240dpi, since you said that was already working. I think perhaps there is something else going on here. Can you power cycle the scanner after each test? allan On Wed, Mar 16, 2016 at 1:45 PM, el-ti wrote: > Oh! Mea culpa – I missed that

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-18 Thread m. allan noah
1. Download sane-backends-git snapshot from: http://www.sane-project.org/snapshots/ 2. In a terminal, cd to the directory where you downloaded the file (perhaps ~/Downloads) cd ~/Downloads 3. Extract the file (update name as required) tar xzf sane-backends-git.tar.gz 4. Change into the

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-16 Thread el-ti
Thank you very much for your work. Unfortunately, I have no experience with patching something like this so far. I did some research, though – seems to be quite doable. I’m familiar with the terminal etc. As I understand this, I have to apply the diff-file on the original file with the patch

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-15 Thread m. allan noah
I have attached a patch for the sane-backends source code. This attempts to provide alternate color de-interlacing for your scanner. It does not attempt to fix any edge cropping issues. Let me know if you need more instructions. allan On Tue, Mar 15, 2016 at 7:59 PM, m. allan noah

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-15 Thread m. allan noah
Canon scanners often have this variable interlacing at different resolutions, so I am not surprised to see this. However, this particular scanner has the weirdest interlacing that canon does. If you can compile from source, I can send you some patches to try. See

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-15 Thread el-ti
Unfortunately, yes. I uninstalled "cndrvsane-drc125" and restartet the system. The color shift is still there. And there is also the problem, that there is a 1/2 cm cut on the long edge of the scanned page (the "duplex-offset" option only handles the short edge) – but I guess this is another

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-15 Thread m. allan noah
If you uninstall the Canon "DR-C125 Driver for Linux V1.0 (v1.0)" software, does this color shift still happen? allan On Tue, Mar 15, 2016 at 7:37 AM, el-ti wrote: > The system is using the libsane version from the PPA: 1.0.26-git20160305-wily0 > > It was installed above the

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-15 Thread el-ti
The system is using the libsane version from the PPA: 1.0.26-git20160305-wily0 It was installed above the one from Ubuntu’s repositories, when I added the PPA. el-ti Am 15.03.2016 um 12:22 schrieb m. allan noah: > You have installed both sane-backends, and canon's driver? Which one > are you

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-15 Thread m. allan noah
You have installed both sane-backends, and canon's driver? Which one are you using? Assuming you are actually using sane-backends, we will have to modify the code to control the color descrambling. allan On Tue, Mar 15, 2016 at 6:08 AM, el-ti wrote: > Hello, > > I have an

Re: [sane-devel] Canon DR-C125: Wrong colors when scanning Duplex

2016-03-15 Thread el-ti
Hello, I have an appendix to make – maybe someone has a hint for me, why the scanner behaves really strange: Depending on the scanning resolution, the shifting on the color range is different! I used the following command to test this: scanimage --batch --source "ADF Duplex" --page-width 210