[GRLUG] image processing question
Ben DeMott
ben.demott at gmail.com
Sun May 3 13:56:49 EDT 2009
I'm not sure if I understand what you are trying to do exactly...
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.
PHP Even has a library to do OCR.
Not near the investment of writing a C application, but you get the
reliability/control of a programming language!
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.
On Sun, May 3, 2009 at 1:22 PM, Michael Mol <mikemol at gmail.com> wrote:
> Long story short:
> 1. I have a bunch of HTML snippets.
> 2. I've successfully managed to batch-convert them to PostScript using
> html2ps
> 3. I can batch-convert them to PNG with ImageMagick, but I wind up
> with a tiny snippet of text on a much larger image.
>
> I don't need a PNG that scales out to 8.5x11, or any other constant
> size. What I need is a PNG image that's just large enough to contain
> the text.
>
> Now, I could load each image into the GIMP and use the auto-crop tool,
> but as you might have guessed by now, my goal is to do everything in
> batches. I'm also not real keen on the idea of writing an autocropper
> in C, but I'd rather do that before delving into the GIMP's Script Fu
> interface.
>
> Is there an way to batch the automatic cropping of such images?
>
> --
> :wq
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shinobu.grlug.org/pipermail/grlug/attachments/20090503/9fe1c219/attachment.htm
More information about the grlug
mailing list