I&#39;m not sure if I understand what you are trying to do exactly...<br>But it sounds like a PHP or Python command line script would be perfect for this job, both have GD and Image Magic libraries and functions.<br>PHP Even has a library to do OCR.<br>
Not near the investment of writing a C  application, but you get the reliability/control of a programming language!<br>I would be happy to write you a quick script because I&#39;m that nice - if you can&#39;t do it on your own let me know further details and I&#39;ll whip something together.<br>
<br><div class="gmail_quote">On Sun, May 3, 2009 at 1:22 PM, Michael Mol <span dir="ltr">&lt;<a href="mailto:mikemol@gmail.com">mikemol@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Long story short:<br>
1. I have a bunch of HTML snippets.<br>
2. I&#39;ve successfully managed to batch-convert them to PostScript using html2ps<br>
3. I can batch-convert them to PNG with ImageMagick, but I wind up<br>
with a tiny snippet of text on a much larger image.<br>
<br>
I don&#39;t need a PNG that scales out to 8.5x11, or any other constant<br>
size.  What I need is a PNG image that&#39;s just large enough to contain<br>
the text.<br>
<br>
Now, I could load each image into the GIMP and use the auto-crop tool,<br>
but as you might have guessed by now, my goal is to do everything in<br>
batches. I&#39;m also not real keen on the idea of writing an autocropper<br>
in C, but I&#39;d rather do that before delving into the GIMP&#39;s Script Fu<br>
interface.<br>
<br>
Is there an way to batch the automatic cropping of such images?<br>
<font color="#888888"><br>
--<br>
:wq<br>
_______________________________________________<br>
grlug mailing list<br>
<a href="mailto:grlug@grlug.org">grlug@grlug.org</a><br>
<a href="http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug" target="_blank">http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug</a><br>
</font></blockquote></div><br>