# Re: SANE API & file format

From: Frederik Ramm (sane@mail.remote.org)
Date: Fri May 04 2001 - 02:33:48 PDT

- Next message: Major A: "SANE 1.0.4 on Tru64 Unix: build failure"
  - Previous message: Larry: "Solaris 7 setgid problem"
  - Maybe in reply to: shailendra mehta: "SANE API & file format"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  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

  - Next message: Major A: "SANE 1.0.4 on Tru64 Unix: build failure"
  - Previous message: Larry: "Solaris 7 setgid problem"
  - Maybe in reply to: shailendra mehta: "SANE API & file format"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Fri May 04 2001 - 02:28:25 PDT