I just started working with ImageMagick. I'm currently trying to convert an image from a file size of almost square size (1411 x 1486) or similar sizes to a square shape, for example, 1024x1024, unfortunately, the resize function does not change the size of the canvas, so I continue to get the number as 1024x982. I am wondering if in any case it is possible to convert a non-square image into a square image using their C ++ libraries.
The reason they are not square is because I convert the GPS positions to UTM and get a square shape, but unfortunately, due to the curved land, they are usually about 400 m from the square ... you may be surprised .
source
share