Currently it is possible for the width and height of an image during reading to be zero. This occurs because x_off or y_off will be equal to end_x or end_y. This causes a failure and an exception on the read call. We should change it so that we always have an image width and height of at least 1.
Currently it is possible for the width and height of an image during reading to be zero. This occurs because
x_off
ory_off
will be equal toend_x
orend_y
. This causes a failure and an exception on the read call. We should change it so that we always have an image width and height of at least1
.