First I run this command
read width height < <(identify -format "%w %h" images/1.jpg); echo $width $height
It gives me the wi