identify
Command line utility of Image Magick project to describe the format and characteristics of one or more image files.
TLDR
Collect dimensions of all jpeg files under current directory
$ identify -format "%f,%w,%h\n" *.[jpg] > [filelist.csv]