I found the 
-format %h 
switch for identify that only outputs the height. 
There should be something similar for the width.