Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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