Code: Select all
convert rose: -format "%[fx:extent]\n" info:
Code: Select all
convert logo: -format "%[fx:extent]\n" info:
Code: Select all
convert logo: rose: -format "%[fx:u.extent>v.extent?1:0]\n" info:
1
If using two images, you will get 0 or 1 two times. So at least in Unix, you can do
Code: Select all
convert logo: rose: -format "%[fx:u.extent>v.extent?1:0]\n" info: | head -n 1