Xiang Chen
Xiang Chen

Reputation: 41

imagemagick crop large image fail,Some pictures are missing

I have a huge picture with a length of 388800 pixels and a height of 1920 pixels. I want to crop this picture horizontally into multiple small pictures of 1080*1920 pixels.

convert 1-all.png -crop 1080x1920 +repage -scene 1 doing1/1-%03d.png

What I got through the above command is only the first 20 pictures, not all 36 pictures

My original picture is as follows enter link description here

Upvotes: 1

Views: 44

Answers (1)

Mark Setchell
Mark Setchell

Reputation: 207465

Re-page your input image before you start cropping:

magick image.png +repage -crop 1080x1920 +repage -scene 1 DEBUG-%02d.png

Upvotes: 2

Related Questions