![]() In that example the "-extent" crops the input image to an exact aspect ratio of 3:4 so when you crop it into 3 pieces by 4 pieces they'll all be squares.īoth examples will produce output images with sequentially numbered file names like "out01.png", "out02.png", etc. convert in.png -gravity center -extent 3:4 -crop out%02d.png To crop the image into a 3x4 grid you'll use a command more like this. That "-extent" crops the input to the largest possible square so when it's cut into a 3x3 grid the finished images are square, too. convert in.png -gravity center -extent 1:1 -crop out%02d.png A command like this will start by cropping an input image into an exact square, then crop that square into a 3x3 grid of smaller squares. To make any image into a grid of squares with ImageMagick you need to decide the number of units in advance. If you are cropping into lots of smaller parts, you are better using a zero-padded tile name like this so that they occur listed in order if you wish to re-assemble them.: magick input.jpg -crop tile-%04d.png ![]() You can divide it into a grid, 3 tiles wide by 2 high like this: magick input.jpg -crop tile-%d.pngĪnd here are the 6 tiles: 1 mark staff 62199 2 Jun 16:26 1 mark staff 75180 2 Jun 16:26 1 mark staff 69615 2 Jun 16:26 1 mark staff 108443 2 Jun 16:26 1 mark staff 121714 2 Jun 16:26 1 mark staff 121384 2 Jun 16:26 tile-5.png I have no idea what an Instagram grid is or what size constraints it might have, but if you have an image like this:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |