Shailendra,
if you are reasonably good at C (or C++) programming, then you
might consider using the ImageMagick library (http://www.imagemagick.org/)
to create any file format you want.
But if you prefer an "easy" way, I suggest that you take the code that
generates PPM files (from the scanimage command-line frontend that
comes with SANE), use that to generate a proper PPM file and then just
use the "system" call to have some external utility convert that PPM
file to another format. For PPM to JPEG conversion, you could use
"cjpeg", and for PPM to anything including JPEG, ImageMagick as a
stand-alone program (available for most platforms) is an option.
Bye
Frederik
-- Frederik Ramm ## eMail frederik@remote.org ## N57°48.10' W005°40.32'-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Fri May 04 2001 - 02:28:25 PDT