Page 2 of 2

Re: Equally sized crop problem

Posted: 2011-12-04T22:04:24-07:00
by anthony
I have backed out your patch and put in my own. It should be released now.

However I now remember why the original delta calculation was changed. When small images were involved, for example when the image was smaller than the number of tiles requested, we were getting crop failures (you can't crop a zero sized image!)

I have now added a minimum delta condition for the next release, so that if the image is smaller than the number of requested tiles, you will get a reduced number of tiles (one pixel dimension)

For example.. trying to get 3 tiles from a two pixel image!

Code: Select all

convert -size 3x1 xc: -crop 3x1@ info:
xc:[0] XC 1x1 2x1+0+0 16-bit DirectClass 0.000u 0:00.000
xc:[1] XC 1x1 2x1+1+0 16-bit DirectClass 0.000u 0:00.000