I'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'm that nice - if you can't do it on your own let me know further details and I'll whip something together.<br>
<br><div class="gmail_quote">On Sun, May 3, 2009 at 1:22 PM, Michael Mol <span dir="ltr"><<a href="mailto:mikemol@gmail.com">mikemol@gmail.com</a>></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'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't need a PNG that scales out to 8.5x11, or any other constant<br>
size. What I need is a PNG image that'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'm also not real keen on the idea of writing an autocropper<br>
in C, but I'd rather do that before delving into the GIMP'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>