If I have an image with a table containing several rows, say like the periodic table:

alt text

Are there any tool I can use to split this into one smaller image with the H He row, another image for the Li Be ... Ne row, etc?

The tool does not have to detect the row borders by itself, specifying a start offset + row height in pixels is ok.

Manually selecting and cutting/copying in gimp is not an option, I have way to many rows to process.

link|improve this question

80% accept rate
feedback

1 Answer

up vote 1 down vote accepted

ImageMagick, specifically the convert command with the crop option, should be able to help you. Check out the docs at http://www.imagemagick.org/script/command-line-options.php#crop

Note this line:

If the x and y offsets are omitted, a set of tiles of the specified geometry, covering the entire input image, is generated.

I think you might have to add more options to start at the correct offset.

link|improve this answer
I ended up writing a perl script to print out a sequence of crop commands with an increasing y offset. – hlovdal May 20 '10 at 18:25
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.