Thanks for the reply. I tried to use imagemagic. The result is like below.
# scanimage > gray.pnm # convert gray.pnm gray1.jpg ===>SUCCESS! # scanimage --mode Color > color.pnm # convert color.pnm color1.jpg convert: Unable to read image data (color.pnm) [No such file or directory]. convert: Missing an image file name. ===>ERROR! Also I tried another way to use tiff format. # scanimage --format tiff > gray.tiff # convert gray.tiff gray2.jpg convert: /tmp/magicXXXXXX: Read error on strip 3; got 2438 bytes, expected 6466. (TIFFFillStrip). ===>WARNING! but I could get gray2.jpg. # scanimage --format tiff --mode Color > color.tiff # convert color.tiff color2.jpg convert: /tmp/magicXXXXXX: Read error on strip 97;got 429459664 bytes, expected 2544. (TIFFFillStrip). ===>WARNING! but I could get color2.jpg. As a result, my problem will be solved if I use tiff format. But I would like to know how to fix above errors and warnings. Does anyone know the cause of these problems? -Yuji Oishi Frank Zago wrote: > > Use convert from imagemagick. > > On Thu, 6 Dec 2001, Yuji Oishi wrote: > > > Hello, > > > > I'm pretty new in this list. > > I just started to use sane, encountered a problem when I convert > > sane output data to some other format. > > > > Here is the description of my system: > > OS:linux kernel-2.4.7 > > SANE: sane-backends-1.0.6-2 > > Scanner: EPSON GT-8200UF > > > > What I did is like below. > > > > # scanimage > out.pnm > > # cjpeg out.pnm > out.jpg > > Not a PPM/PGM file <---- Error happen > > > > # scanimage --mode Color > out.pnm > > # cjpeg out.pnm > out.jpg > > Premature end of input file <---- Warning(But out.jpg can be seen) > > > > I want to avoid these error and warning. > > Are there any fixes for these? > > If a good(?) converter is available, I want to use it. > > > > Could someone help me? > > > > Thank you in advance, > > > > -Yuji Oishi > > _______________________________________________ > > Sane-devel mailing list > > [email protected] > > http://www.mostang.com/mailman/listinfo/sane-devel > >
