def _validate_nonzero_image_size(self, nrows, ncols, component_index):
if nrows == <NUM_LIT:0> or ncols == <NUM_LIT:0>:<EOL><INDENT>msg = "<STR_LIT>"<EOL>msg = msg.format(component_index, nrows, ncols)<EOL>raise IOError(msg)<EOL><DEDENT>
The image cannot have area of zero.