I am quite helpless after digging in the online-references, so I try to ask the experts here.
What I already have is a windows-commandline for "convert.exe" which trims my JPGs.
But what I need additionally is to square the picture without destroying the aspect-ratio.
The size of the square has to be the height or the width of the trimmed picture, depending on which dimension is bigger.
I already tried and tried using extending and padding syntax, but I did not get it.
I added some samples for you (original, trimmed, squared):






I hope you understand me and my needs.
Thanks in advance,
Atze