Page 2 of 2

Re: How to divide photo to X and Y pieces

Posted: 2009-12-26T08:50:26-07:00
by fmw42
note that the above -crop uses +repage (to turn off the virtual canvas) not -repage.

Re: How to divide photo to X and Y pieces

Posted: 2009-12-29T21:00:30-07:00
by fmw42
see Anthony's new additions to -crop as of IM 6.5.8-9 at http://www.imagemagick.org/Usage/crop/#crop_equal

Re: How to divide photo to X and Y pieces

Posted: 2010-03-31T00:32:04-07:00
by anthony
Update. While reviewing the above discussion, and checking my Equal-Sized Tile Cropping addition, I discovered that it can be used as an alternative to -shave and used to 'tile crop' 1 tile from an image!

Yes tile cropping one tile seems nonsensical, but the 'spacing' arguments it provides allow you to also shave the image while preserving the original images canvas size and offset, in a better way that -shave does.

See IM Examples, specifically the last example for Shave
http://www.imagemagick.org/Usage/crop/#shave

While exploring this however I did find a bug for 'paged' images, and sumbitted a fix for IM v6.6.1-0 however this bug does not effect any normal image that does not contain a 'paged' offset on a virtual canvas