sane-project-website/old-archive/2001-05/0071.html

98 wiersze
3.9 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: SANE API &amp; file format</TITLE>
<META NAME="Author" CONTENT="Frederik Ramm (sane@mail.remote.org)">
<META NAME="Subject" CONTENT="Re: SANE API &amp; file format">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: SANE API &amp; file format</H1>
<!-- received="Fri May 4 02:27:26 2001" -->
<!-- isoreceived="20010504092726" -->
<!-- sent="Fri, 4 May 2001 10:33:48 +0100" -->
<!-- isosent="20010504093348" -->
<!-- name="Frederik Ramm" -->
<!-- email="sane@mail.remote.org" -->
<!-- subject="Re: SANE API &amp; file format" -->
<!-- id="20010504103347.A8246@aruba.remote.org" -->
<!-- inreplyto="SANE API &amp; file format" -->
<STRONG>From:</STRONG> Frederik Ramm (<A HREF="mailto:sane@mail.remote.org?Subject=Re:%20SANE%20API%20&amp;%20file%20format&In-Reply-To=&lt;20010504103347.A8246@aruba.remote.org&gt;"><EM>sane@mail.remote.org</EM></A>)<BR>
<STRONG>Date:</STRONG> Fri May 04 2001 - 02:33:48 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0072.html">Major A: "SANE 1.0.4 on Tru64 Unix: build failure"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0070.html">Larry: "Solaris 7 setgid problem"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0045.html">shailendra mehta: "SANE API &amp; file format"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#71">[ date ]</A>
<A HREF="index.html#71">[ thread ]</A>
<A HREF="subject.html#71">[ subject ]</A>
<A HREF="author.html#71">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Shailendra,
<BR>
<P>&nbsp;&nbsp;&nbsp;if you are reasonably good at C (or C++) programming, then you
<BR>
might consider using the ImageMagick library (<A HREF="http://www.imagemagick.org/">http://www.imagemagick.org/</A>)
<BR>
to create any file format you want.
<BR>
<P>But if you prefer an &quot;easy&quot; way, I suggest that you take the code that
<BR>
generates PPM files (from the scanimage command-line frontend that
<BR>
comes with SANE), use that to generate a proper PPM file and then just
<BR>
use the &quot;system&quot; call to have some external utility convert that PPM
<BR>
file to another format. For PPM to JPEG conversion, you could use
<BR>
&quot;cjpeg&quot;, and for PPM to anything including JPEG, ImageMagick as a
<BR>
stand-alone program (available for most platforms) is an option.
<BR>
<P>Bye
<BR>
Frederik
<BR>
<P><PRE>
--
Frederik Ramm ## eMail <A HREF="mailto:frederik@remote.org?Subject=Re:%20SANE%20API%20&amp;%20file%20format&In-Reply-To=&lt;20010504103347.A8246@aruba.remote.org&gt;">frederik@remote.org</A> ## N57<35>48.10' W005<30>40.32'
<P><P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20SANE%20API%20&amp;%20file%20format&In-Reply-To=&lt;20010504103347.A8246@aruba.remote.org&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0072.html">Major A: "SANE 1.0.4 on Tru64 Unix: build failure"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0070.html">Larry: "Solaris 7 setgid problem"</A>
<LI><STRONG>Maybe in reply to:</STRONG> <A HREF="0045.html">shailendra mehta: "SANE API &amp; file format"</A>
<!-- nextthread="start" -->
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#71">[ date ]</A>
<A HREF="index.html#71">[ thread ]</A>
<A HREF="subject.html#71">[ subject ]</A>
<A HREF="author.html#71">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri May 04 2001 - 02:28:25 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>