[sane-devel] new Backenddriver

Olaf Meeuwissen paddy-hack at member.fsf.org
Wed Oct 19 12:51:37 UTC 2016

Hi Michael,

Michael Rall writes:

> Hello Everybody,
> my name is Michael Rall. I'm a freelancing Softwaredeveloper from Germany.
> For one of my projects I would like to create a SANE Backend for a 
> Web-Based ImageAquisition-Tool.
> So basically my SANE Backend needs to call a Webservice an will receive 
> an Image as result.
> What existing Backend would be the best/simplest starting point? Or 
> would a start from scratch be easier? I'm a quite experienced Developer, 
> but actually I haven't yet developed some Linux-Stuff.

You could take a peek at the pnm backend (not built by default out of
security/privacy concerns, IIRC), but if I were in your situation, I'd
start mostly from scratch as "legacy" code might get in my way.  Have a
look at the doc/backend-writing.txt file (it's a bit dated perhaps) and
the SANE API specification is required reading, of course.

The reason I mentioned the pnm backend is because it reads an image from
file.  Your web-base image acquisition scenario is basically just one
step up from a file:/// URL.  I'd have a look at implementing something
on top of a generic URL fetching library or tool and provide a backend
option to set the URL.  No idea on what other backend options you might
want to provide though.

Hope this helps (and makes any sense),
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Software                        https://my.fsf.org/donate
 Join the Free Software Foundation              https://my.fsf.org/join

More information about the sane-devel mailing list