<div dir="ltr"><div>I don't know specifically about the PIxma machines, but a number of scanners from different brands require the software to perform calibration scans with the lamp on and off. It is possible that one of those scanners might also be willing to move its motor at the same time. I suggest you investigate other, particularly cheaper scanners.</div><div><br></div><div>allan</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Nov 1, 2025 at 6:04 AM <<a href="mailto:jp@byjp.me">jp@byjp.me</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello,<div><br></div><div>I'm interested in driving SANE to scan twice in succession (one with the lamp on, one with the lamp off), so I can scan against a lightbox (with <i>its</i> lamp off, and on, respectively) to manufacture an alpha layer for my scanned image.</div><div><br></div><div>(I’m scanning postcards; some have unusually shaped edges, and with examples of every colour touching the edge of the card — my attempts at automating masking with alpha mattes work only some of the time)</div><div><br></div><div>I have a Pixma scanner (CanoScan LiDE 400), for which SANE doesn't declare any lamp-related options (with scanimage -A). I’m a software & firmware engineer, so I’m comfortable getting into the detail, but I wanted to learn from the community first:</div><div><br></div><div>- I’ve skimmed through the pixma backend code; it looks as though the lamp status is only ever <i>read</i> (and never written). Is anyone aware of a way to <i>set</i> the lamp status (even if currently unimplemented in SANE today) — ie. would the hardware permit this?</div><div><br></div><div>- Is there any experience in the SANE dev community around this kind of RGBA style scanning? Are there other recommended approaches? (beyond alpha mattes)</div><div><br></div><div>Many thanks,</div><div>JP</div></div></blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">"well, I stand up next to a mountain- and I chop it down with the edge of my hand"</div>