<div dir="rtl"><div dir="ltr">I'm using PHPSANE (<meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://sourceforge.net/projects/phpsane/">http://sourceforge.net/projects/phpsane/</a>). It doesn't do auto crop but I can see on my browser whats the pic and with 2 clicks to decide which part to scan.</div>
<div dir="ltr"><br></div><div dir="ltr">Hetz<br><br><div class="gmail_quote">2011/5/3 Nadav Har'El <span dir="ltr"><<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I have a flatbed scanner (by HP) attached to my Linux machine, and I often<br>
need to scan rectangular items such as photographs, CD inserts, and the<br>
occasional piece of paper.<br>
<br>
At the moment, I follow a tedious manual process to do that: The scanner<br>
generates a big image of everything it sees on glass window, and then using<br>
Gimp I manually rotate the image (because I can't place it on the window with<br>
100% precision) and then crop it to the rectangle.<br>
<br>
Supposedly, Photoshop has an "Automate->Crop and Straighten Photos" feature<br>
(see <a href="http://www.photoshopessentials.com/photo-editing/crop-straighten/" target="_blank">http://www.photoshopessentials.com/photo-editing/crop-straighten/</a>)<br>
but I couldn't find such a feature in Gimp.<br>
<br>
I was really surprised that I couldn't easily find some program to do this<br>
automatically: The program would recognize (using a relatively simple algorithm)<br>
the foreground rectangle in the image, rotate it to be perfectly horizontal,<br>
and then crop the image to it.<br>
<br>
Does anyone know of such a program? Obviously, it needs to be free software<br>
running on Linux. Bonus points if it's a command line program (a la netpbm<br>
or imagemagick) and not an "integrated" GUI program. Extra bonus points if<br>
it's a pipeline of netpbm or netpbm-like tools :-) But any other sort of<br>
(free) solution would also be acceptable.<br>
<br>
Thanks,<br>
Nadav.<br>
<br>
--<br>
Nadav Har'El | Tuesday, May 3 2011, 29 Nisan 5771<br>
<a href="mailto:nyh@math.technion.ac.il">nyh@math.technion.ac.il</a> |-----------------------------------------<br>
Phone +972-523-790466, ICQ 13349191 |Sign seen in restaurant: We Reserve The<br>
<a href="http://nadav.harel.org.il" target="_blank">http://nadav.harel.org.il</a> |Right To Serve Refuse To Anyone!<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div></div><br clear="all"><br>-- <br><div dir="rtl"><div style="color:rgb(0, 0, 0);font-family:Verdana, Arial, Helvetica, sans-serif;margin-top:8px;margin-right:8px;margin-bottom:8px;margin-left:8px;background-color:rgb(255, 255, 255)">
<p dir="rtl" style="font-size:10px"><strong><span style="font-size:small"><span style="color:rgb(0, 0, 128)"><span style="color:rgb(0, 0, 0);font-weight:normal">חץ בן חמו</span><br>ח</span><span style="color:rgb(0, 0, 255)">ץ</span>-<span style="color:rgb(0, 0, 128)">ב</span><span style="color:rgb(0, 0, 255)">י</span><span style="color:rgb(51, 102, 255)">ז</span> (<span style="color:rgb(128, 0, 0)">הוסטינג</span>)<br>
</span></strong><span style="font-size:small">השכרה ואירוח של שרתים פיזיים<br></span><span style="font-size:small">השכרת שרתים וירטואליים מקצועיים וגדולים במחירים <b>קטנים</b><br>בקרו באתרנו בכתובת <a href="http://www.hetz.biz/" style="background-color:rgb(219, 216, 222)" target="_blank">hetz.biz</a> ובבלוג שלנו: <a href="http://blog.hetz.biz/" style="background-color:rgb(219, 216, 222)" target="_blank">blog.hetz.biz</a> <br>
</span><span style="font-size:small">טלפוןן: 0783333113/4/5, אימייל: <a href="mailto:sales@hetz.biz" target="_blank">sales@hetz.biz</a> <br></span><span style="font-size:small">מסנג'ר: <a href="mailto:sales@hetz.biz" target="_blank">sales@hetz.biz</a> - סקייפ: heunique</span></p>
</div></div><br>
</div>