On 22/04/12 15:54, emw wrote:
A small script that hooks into GIMP API methods is
used to tidy up PNGs
output by the PyMOL molecular visualization program. The PyMOL images are
originally output with a lot of extraneous whitespace. Specifically, the
script takes in a PNG and outputs an autocropped image with 50 pixels of
whitespace around the subject -- e.g.
http://en.wikipedia.org/wiki/File:Protein_FOXP2_PDB_2a07.png. The script:
https://code.google.com/p/pdbbot/source/browse/trunk/crop-and-pad-pdb.scm.
That seems simple. In worst case, it could be provided as a script and
we could look into a different alternative for that.
ImageMagick seems like it might also have the ability
to programmatically
autocrop an image and add a certain padding around the subject. I'll look
into that and substitute an ImageMagick script for the GIMP one if
possible.
Yes, ImageMagick seems like a more suited solution.