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

How can I split this into several images: one smaller one containing the H He row, another for the Li Be ... Ne row, and so on?
It's OK if I have to specify the boundaries myself; the solution doesn't have to auto-detect them.
Manually selecting and cutting/copying in GIMP is not an option; I have way too many rows to process.