possible bugs with subsection and cropping IM 6.4.2-4
Posted: 2009-05-11T10:15:07-07:00
IM 6.4.2-4 Q16 Mac OSX Tiger
I ran into these issues when trying to extract the last row and column from an image, BUT using the wrong offset that was one pixel outside the bounds of the image. I expected an error message and no image to be generated. I do not know if these are what you would expect or want to have happen, but I thought I would pass this on.
identify rose:
rose:=>ROSE ROSE 70x46 70x46+0+0 8-bit DirectClass 9.45kb
Try to get bottom row, but actually +46 is one row past the bottom
convert rose:[70x1+0+46] rose_bottom.png
convert: No IDATs written into file `rose_bottom.png' @ png.c/PNGErrorHandler/1412.
The above produces an image that cannot be opened
Try to get right column, but actually +70 is one column past the right side
convert rose:[1x46+70+0] rose_right.png
The above does not give an error and produces and image identical to the original
Thus I am getting somewhat inconsistent kinds of error/results
I ran into these issues when trying to extract the last row and column from an image, BUT using the wrong offset that was one pixel outside the bounds of the image. I expected an error message and no image to be generated. I do not know if these are what you would expect or want to have happen, but I thought I would pass this on.
identify rose:
rose:=>ROSE ROSE 70x46 70x46+0+0 8-bit DirectClass 9.45kb
Try to get bottom row, but actually +46 is one row past the bottom
convert rose:[70x1+0+46] rose_bottom.png
convert: No IDATs written into file `rose_bottom.png' @ png.c/PNGErrorHandler/1412.
The above produces an image that cannot be opened
Try to get right column, but actually +70 is one column past the right side
convert rose:[1x46+70+0] rose_right.png
The above does not give an error and produces and image identical to the original
Thus I am getting somewhat inconsistent kinds of error/results