[GRLUG] image processing question

Dave Brondsema dave at brondsema.net
Sun May 3 15:45:43 EDT 2009


Michael Mol 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?
> 

http://www.imagemagick.org/script/command-line-options.php#trim sounds
like it should work

-- 
Dave Brondsema : dave at brondsema.net
http://www.brondsema.net : personal
http://www.splike.com : programming
               <><

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: OpenPGP digital signature
Url : http://shinobu.grlug.org/pipermail/grlug/attachments/20090503/f1ffe515/attachment-0001.pgp 


More information about the grlug mailing list