I want to generate the black box with the gaps in it. To do this, I need to know what the midpoint of the image is so I can draw rectangles that leave the correct gap. So the top left rectangle, for example, would have co-ordinates 0,0 30,[verticalmidpoint - 60]. I'm using:
Code: Select all
leftmidpoint='convert xc: -format "%[fx:h/2]" info:'
How can I get the dimensions of an image before it is written to disk? I'm using ImageMagick 7.0.7-7 on Linux. Thanks for any help!