Re: [sane-devel] Please: CanoScan Lide 220

2017-04-16 Thread Aaron Muir Hamilton
If you could provide the exact versions of sane-backends and sane-frontends you are using, that would be more useful. I have a Canon CanoScan LiDE 220 sitting right next to me and it is functioning quite well (I'm using scanimage to drive it). Try running $ scanimage -d genesys --format=tiff

[sane-devel] [PATCH 2/3] Add ICC profile embedding for PNG output.

2017-04-17 Thread Aaron Muir Hamilton
--- frontend/scanimage.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 77c22883..0f71422c 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -56,6 +56,7 @@ #include

[sane-devel] [PATCH 1/3] Separate ICC profile loading into a separate file.

2017-04-17 Thread Aaron Muir Hamilton
@am__quote@ diff --git a/frontend/sicc.c b/frontend/sicc.c new file mode 100644 index ..21d600d1 --- /dev/null +++ b/frontend/sicc.c @@ -0,0 +1,65 @@ +/* Load an ICC profile for embedding in an output file + Copyright (C) 2017 Aaron Muir Hamilton <aa...@correspondwith.me> + + This p

[sane-devel] [PATCH 3/3] Avoid attaching grayscale ICC profiles to rgb images, or vice-versa.

2017-04-17 Thread Aaron Muir Hamilton
If the ICC profile added does not match the colour format of the image, libpng will abort. This can leave the scanner motors in an incorrect state and possibly cause permanent damage. --- frontend/scanimage.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff

[sane-devel] [PATCH] Swap bytes in 16-bit PNGs, because PNG is big-endian.

2017-04-15 Thread Aaron Muir Hamilton
--- frontend/scanimage.c | 13 + 1 file changed, 13 insertions(+) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 77c2288..d719c4b 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -1529,6 +1529,19 @@ scan_it (FILE *ofp) for(j =

[sane-devel] [PATCH v3] Swap bytes in 16-bit PNGs, because PNG is big-endian.

2017-04-15 Thread Aaron Muir Hamilton
--- frontend/scanimage.c | 13 + 1 file changed, 13 insertions(+) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 77c2288..0925039 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -1529,6 +1529,19 @@ scan_it (FILE *ofp) for(j =

Re: [sane-devel] [PATCH v3] Swap bytes in 16-bit PNGs, because PNG is big-endian.

2017-04-15 Thread Aaron Muir Hamilton
Sorry about the volume, third time is definitely the charm. Admittedly I struggled to grasp the style rules. I noticed the PNG byte order issue fixed by this patch when using genesys with a CanoScan LiDE 220. I do not have any other supported scanners close at hand, so I hope somebody can confirm

[sane-devel] [PATCH] Include physical resolution (pHYs section) in PNG output.

2017-04-16 Thread Aaron Muir Hamilton
--- frontend/scanimage.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 77c2288..432c2ea 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -1165,9 +1165,12 @@ write_pnm_header (SANE_Frame

[sane-devel] [PATCH 2/2] Add ICC profile embedding for PNG output.

2017-04-16 Thread Aaron Muir Hamilton
--- frontend/scanimage.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 77c2288..0f71422 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -56,6 +56,7 @@ #include "../include/sane/sanei.h"

[sane-devel] [PATCH 2/2] Add ICC profile embedding for PNG output.

2017-04-16 Thread Aaron Muir Hamilton
--- frontend/scanimage.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index 77c2288..0f71422 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -56,6 +56,7 @@ #include "../include/sane/sanei.h"

[sane-devel] [PATCH 1/2] Separate ICC profile loading into a separate file.

2017-04-16 Thread Aaron Muir Hamilton
@ diff --git a/frontend/sicc.c b/frontend/sicc.c new file mode 100644 index 000..21d600d --- /dev/null +++ b/frontend/sicc.c @@ -0,0 +1,65 @@ +/* Load an ICC profile for embedding in an output file + Copyright (C) 2017 Aaron Muir Hamilton <aa...@correspondwith.me> + + This program i

[sane-devel] [PATCH 1/2] Separate ICC profile loading into a separate file.

2017-04-16 Thread Aaron Muir Hamilton
@ diff --git a/frontend/sicc.c b/frontend/sicc.c new file mode 100644 index 000..21d600d --- /dev/null +++ b/frontend/sicc.c @@ -0,0 +1,65 @@ +/* Load an ICC profile for embedding in an output file + Copyright (C) 2017 Aaron Muir Hamilton <aa...@correspondwith.me> + + This program i

Re: [sane-devel] [PATCH] Include physical resolution (pHYs section) in PNG output.

2017-04-28 Thread Aaron Muir Hamilton
Pleased to make your acquaintance, Olaf. Thank you for reviewing the patches and taking them upstream, I have an equivalent patch for JPEG output on the boil. Not to put you on the spot, but it seems like a lot of time has passed since the last release was tagged, despite there apparently being

Re: [sane-devel] Xsane does not work any more with Lide 200 and Lide220 at Ubuntu16.04LTS

2017-05-10 Thread Aaron Muir Hamilton
> Yeah! > But then we the solution?! Command line? > It Xsane is not developed? XSane is a separate project. It's not part of sane-backends or sane-frontends. I have no idea whether or not it's still developed. -- sane-devel mailing list: sane-devel@lists.alioth.debian.org

Re: [sane-devel] Possible to rename network scanner?

2017-05-21 Thread Aaron Muir Hamilton
atus = sanei_genesys_get_status (dev, ); 664 }; Pay close attention to the semicolons. As an aside, this is probably why the 1TBS is superiour to GNU-style. Aaron Muir Hamilton <aa...@correspondwith.me> writes: > Olaf Meeuwissen <paddy-h...@member.fsf.org> writes: > >> Hi

Re: [sane-devel] [janitorial] Text file style convention "enforcement"

2017-05-31 Thread Aaron Muir Hamilton
Olaf Meeuwissen writes: > Hi all, > > It's been a while since my last janitorial. Interest in contributing to > the project comes in waves. I've been preoccupied with the preparations > for the 1.0.27 release. During which, Aaron made a suggestion about how > coding

[sane-devel] [PATCH] Write density (resolution) JFIF header information with JPEG files.

2017-05-01 Thread Aaron Muir Hamilton
--- frontend/scanimage.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/scanimage.c b/frontend/scanimage.c index ffb9f105..e5562815 100644 --- a/frontend/scanimage.c +++ b/frontend/scanimage.c @@ -1213,7 +1213,7 @@ write_png_header (SANE_Frame format,

Re: [sane-devel] [PATCH 3/3] Avoid attaching grayscale ICC profiles to rgb images, or vice-versa.

2017-05-01 Thread Aaron Muir Hamilton
h 8- and 16-bit modes correctly, it should also work with the other libpng grayscale modes. > If that works fine, I'll push your patches with two fixes after merging > against master. > > Aaron Muir Hamilton writes: > > > If the ICC profile added does not match the colour format o

Re: [sane-devel] [PATCH 3/3] Avoid attaching grayscale ICC profiles to rgb images, or vice-versa.

2017-05-01 Thread Aaron Muir Hamilton
I just tried it by hacking scanimage up a bit to threshhold and convert the lines to monochrome right before writing the PNG, and change the PNG header to always be 1-bit; libpng didn't complain about attaching a grayscale profile to a 1-bit monochrome image. -- sane-devel mailing list:

Re: [sane-devel] Editing Exposure on SANE Genesys

2017-10-16 Thread Aaron Muir Hamilton
Which part are you having trouble with? Do you know how the exposure tables work, but don't know how to expose an option, or the other way around? Happy hacking. -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel

Re: [sane-devel] CanoScan LiDE 220 can't scan dpi over 1200

2017-10-07 Thread Aaron Muir Hamilton
Hmm, can confirm, it scans some portion of the image and then hangs. I think the official software on Windows doesn't support full-page scans at 2400dpi or greater. It does work if you limit the scan to an area. Not sure what should be done about this, I don't think there's a standard way to