Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I do not understand. You want to shift in X not Y by 1 pixel. You have said
Second crop is 256x256+0+1
. Should that not be Second crop is 256x256+1+0?
To do that you will have to write a script loop and read your input 30k times. I do not see a way to do that with one read of the input image. ImageMagick does not yet have an offset increment -define as far as I know.
You can reduce the number of reads by 256 (3000/256), by doing the 256x256 crop. Then roll the image by 1 pixel horizontally and do it again. Etc.
Sorry, yes that's correct, shifting by X not Y so +1+0.
Ok, I guess I'll have to do it with a script. I'm not quite sure what you mean by the second part. Could you give an example command? Surely if I do the 256x256 crop and then roll it I will go outside of the newly cropped area?
Hey, snibgo. I did not know you could add offsets to the equal size crops to do that. Neat! Anthony should add that to his docs at https://imagemagick.org/Usage/crop/#crop_equal. I have sent him a message to see if he will do that.
As a bonus, you can also sub-divide the image so that each tile will 'overlap' its neighbours. You do this by not only using a '@' flag but also specifying the number of pixels of overlap you want.
...
2000 to chop into up to 2000 images horizontally.
1 to chop into up to 1 image vertically (ie no vertical chopping).
255 to give a 255 pixel horizontal overlap.
Your command has asked to chop into 224 images vertically, in addition to 2000 horizontally, resulting in 2000*224 = 448,000 images. That's why it takes a long time, and I don't think you want that.