I am using "identify" method of ImageMagick to get size of images. I use command in format:
"identify.exe" -format "%wx%h" "