|
List Info
Thread: Problems about Lineart mode
|
|
| Problems about Lineart mode |

|
2007-01-26 10:55:35 |
|
I scan a document with:
$ scanimage --mode Lineart --resolution 150 -x 215 -y 297 > document
, so obtaining a fine image about 250Kb big. But, the problem is that MS
Windows can't apparently see the file, and I need to send it to other people
non Linux users. On the other hand, if I omit the `--mode Lineart' option the
file comes up too big: 6Mb or so.
Can anyone suggest a way to aquire a document so that the resultant file is:
1) readable by MS Windows;
2) as small as some 200Kb?
Thanks for any help,
Rodolfo
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-request lists.alioth.debian.org
|
| Re: Problems about Lineart mode |

|
2007-01-26 12:40:10 |
|
On 1/26/07, Rodolfo Medina gmail.com> wrote:
> I scan a document with:
>
> $ scanimage --mode Lineart --resolution 150 -x 215 -y 297 > document
>
> , so obtaining a fine image about 250Kb big. But, the problem is that MS
> Windows can't apparently see the file, and I need to send it to other people
> non Linux users. On the other hand, if I omit the `--mode Lineart' option the
> file comes up too big: 6Mb or so.
by default, scanimage outputs in the format 'PNM', so if they have a
viewer for that type on windows, they can view it. if they dont, you
can easily convert it to many other formats using a wide variety of
utilities on your linux box. which one you choose depends on what the
windows users will do with the file. my suggestion:
scanimage --mode Lineart --resolution 150 -x 215 -y 297 | pnmtopng >
document.png
you will have to have the utility pnmtopng installed, it is part of
the netpbm utils package.
the files will be readable in IE.
another option instead is to use the tiff output format of scanimage
(--format tiff)
allan
--
"The truth is an offense, but not a sin"
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-request lists.alioth.debian.org
|
| Re: Problems about Lineart mode |

|
2007-01-26 16:52:21 |
|
Rodolfo Medina gmail.com> writes:
> I scan a document with:
>
> $ scanimage --mode Lineart --resolution 150 -x 215 -y 297 > document
>
> , so obtaining a fine image about 250Kb big. But, the problem is that MS
> Windows can't apparently see the file, and I need to send it to other people
> non Linux users. On the other hand, if I omit the `--mode Lineart' option the
> file comes up too big: 6Mb or so.
>
> Can anyone suggest a way to aquire a document so that the resultant file is:
> 1) readable by MS Windows;
> 2) as small as some 200Kb?
"m. allan noah" gmail.com> writes:
> by default, scanimage outputs in the format 'PNM', so if they have a
> viewer for that type on windows, they can view it. if they dont, you
> can easily convert it to many other formats using a wide variety of
> utilities on your linux box. which one you choose depends on what the
> windows users will do with the file. my suggestion:
>
> scanimage --mode Lineart --resolution 150 -x 215 -y 297 | pnmtopng >
> document.png
>
> you will have to have the utility pnmtopng installed, it is part of
> the netpbm utils package.
> the files will be readable in IE.
>
> another option instead is to use the tiff output format of scanimage
> (--format tiff)
Thanks indeed, your suggestion seems to work perfectly.
But, when I try to use `pnmtopng' alone, with:
# pnmtopng document.pnm
, the program fails: I get some messed output and nothing else.
Why?
Rodolfo
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
to sane-devel-request lists.alioth.debian.org
|
| Re: Re: Problems about Lineart mode |

|
2007-01-26 18:41:41 |
On 1/26/07, Rodolfo Medina <rodolfo.medina gmail.com> wrote:
> Rodolfo Medina <rodolfo.medina gmail.com> writes:
>
> > I scan a document with:
> >
> > $ scanimage --mode Lineart --resolution 150 -x
215 -y 297 > document
> >
> > , so obtaining a fine image about 250Kb big. But,
the problem is that MS
> > Windows can't apparently see the file, and I need
to send it to other people
> > non Linux users. On the other hand, if I omit the
`--mode Lineart' option the
> > file comes up too big: 6Mb or so.
> >
> > Can anyone suggest a way to aquire a document so
that the resultant file is:
> > 1) readable by MS Windows;
> > 2) as small as some 200Kb?
>
>
> "m. allan noah" <kitno455 gmail.com> writes:
>
> > by default, scanimage outputs in the format 'PNM',
so if they have a
> > viewer for that type on windows, they can view it.
if they dont, you
> > can easily convert it to many other formats using
a wide variety of
> > utilities on your linux box. which one you choose
depends on what the
> > windows users will do with the file. my
suggestion:
> >
> > scanimage --mode Lineart --resolution 150 -x 215
-y 297 | pnmtopng >
> > document.png
> >
> > you will have to have the utility pnmtopng
installed, it is part of
> > the netpbm utils package.
> > the files will be readable in IE.
> >
> > another option instead is to use the tiff output
format of scanimage
> > (--format tiff)
>
>
> Thanks indeed, your suggestion seems to work
perfectly.
> But, when I try to use `pnmtopng' alone, with:
>
> # pnmtopng document.pnm
>
> , the program fails: I get some messed output and
nothing else.
> Why?
pnmtopng, like most unix programs, has built-in novice
detection
seriously, it prints its output to stdout, just like
scanimage does.
stdout is attached to your terminal. so you have to redirect
it. try
this:
pnmtopng document.pnm > document.png
allan
--
"The truth is an offense, but not a sin"
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
| Re: Re: Problems about Lineart mode |

|
2007-01-26 17:02:39 |
pnm2png takes its input from the command line (your way) or
from stdin
(allan's way), and outputs the png data to stdout. what you
want is
this:
pnmtopng document.pnm > document.png
On 1/26/07, Rodolfo Medina <rodolfo.medina gmail.com> wrote:
> But, when I try to use `pnmtopng' alone, with:
>
> # pnmtopng document.pnm
>
> , the program fails: I get some messed output and
nothing else.
--
sane-devel mailing list: sane-devel lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
to sane-devel-request lists.alioth.debian.org
|
|
[1-5]
|
|